eduard Posted May 24, 2012 Share Posted May 24, 2012 To combine the insert.php + index.html do I have to make a new file (index.php) or can I add index.html to insert.php or v. v.? Link to comment Share on other sites More sharing options...
justsomeguy Posted May 24, 2012 Share Posted May 24, 2012 You can do either, but it needs to be a PHP file if you want to run PHP code. Link to comment Share on other sites More sharing options...
eduard Posted May 24, 2012 Author Share Posted May 24, 2012 (edited) You can do either, but it needs to be a PHP file if you want to run PHP code. Thanks! But I cannot rename my index.html into index.php? And then I´ve to run it from my webserver? Edited May 24, 2012 by eduardlid Link to comment Share on other sites More sharing options...
justsomeguy Posted May 24, 2012 Share Posted May 24, 2012 But I cannot rename my index.html into index.php?Why? And then I´ve to run it from my webserver?Yes Eduard, you run web pages from a web server. Link to comment Share on other sites More sharing options...
Guest So Called Posted May 25, 2012 Share Posted May 25, 2012 Actually you can rename a .HTM or .HTML file to .PHP and it should work every time. The PHP processor starts out rendering .PHP files in HTML mode until it encounters <?php tag. But I have no idea what you're trying to do Eduard because you don't seem to ask very good questions. But don't worry, most people don't ask very good questions. The most common shortcoming is not providing sufficient information in the OP. Link to comment Share on other sites More sharing options...
eduard Posted May 25, 2012 Author Share Posted May 25, 2012 What do I have to write for form action because the html form amd insert.php`are in the index.php. So. insert.php is not possible!index.php? Link to comment Share on other sites More sharing options...
Ingolme Posted May 25, 2012 Share Posted May 25, 2012 Read about the action attribute and what it does here: http://w3schools.com/php/php_forms.asp Link to comment Share on other sites More sharing options...
Guest So Called Posted May 25, 2012 Share Posted May 25, 2012 What do I have to write for form action because the html form amd insert.php`are in the index.php. So. insert.php is not possible!index.php?You're still not asking the right question. You're telling us you want to combine two web pages. Okay: Copy a + b > c (or something like that) Tell us instead what you are trying to accomplish. Are you trying to display some data or something? From your database? I'm pretty near being done with attempting to answer questions of this type. Nobody but you knows what your insert.php file is. It's not like everybody has an insert.php on their site and like we could answer general questions about how to make insert.php work. Ask better questions. Link to comment Share on other sites More sharing options...
eduard Posted May 25, 2012 Author Share Posted May 25, 2012 Read about the action attribute and what it does here: http://w3schools.com/php/php_forms.asp Ok, I´ll Link to comment Share on other sites More sharing options...
eduard Posted May 25, 2012 Author Share Posted May 25, 2012 You're still not asking the right question. You're telling us you want to combine two web pages. Okay: Copy a + b > c (or something like that) Tell us instead what you are trying to accomplish. Are you trying to display some data or something? From your database? I'm pretty near being done with attempting to answer questions of this type. Nobody but you knows what your insert.php file is. It's not like everybody has an insert.php on their site and like we could answer general questions about how to make insert.php work. Ask better questions. Better questions? You gave the perfect thing I wanted to do! What else can I do with an index.html and a insert.php? Link to comment Share on other sites More sharing options...
eduard Posted May 25, 2012 Author Share Posted May 25, 2012 (edited) Better questions? You gave the perfect thing I wanted to do! What else can I do with an index.html and a insert.php?Why do you need the content of my insert.php (I did that a while ago - it works!). It´s not necessary for the question!The reply of Ingolme is very clear to me! Edited May 25, 2012 by eduardlid Link to comment Share on other sites More sharing options...
Guest So Called Posted May 25, 2012 Share Posted May 25, 2012 The reply of Ingolme is very clear to me!Good! I'm glad that Ingolme is so much more helpful than me. I'm putting him in charge of all your future support. Link to comment Share on other sites More sharing options...
thescientist Posted May 25, 2012 Share Posted May 25, 2012 Good! I'm glad that Ingolme is so much more helpful than me. I'm putting him in charge of all your future support. is that a promise or a threat Link to comment Share on other sites More sharing options...
Guest So Called Posted May 25, 2012 Share Posted May 25, 2012 is that a promise or a threat Yes! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now