hansolo Posted July 2, 2010 Share Posted July 2, 2010 I have this code below in a notepad++.i have tried to open the file with internet explorer. Instead of the file opening a pop up box opensand asks if i want to save th file. There is a second box with preloader downloading the file <?php?><html><head></head><body><form action="<?php echo $_server["PHP_SELF"]; ?>" method="get"<input type="text" name="q"/> <input type="submit" name="submit btn" value="submit form"></form></body></html> Link to comment Share on other sites More sharing options...
Ingolme Posted July 2, 2010 Share Posted July 2, 2010 PHP has to run on a PHP-enabled server. You can't run PHP files on your computer. Link to comment Share on other sites More sharing options...
hansolo Posted July 2, 2010 Author Share Posted July 2, 2010 i have a wamp server maybe i ahave to put the files in the www folder sorry i forgot Link to comment Share on other sites More sharing options...
boen_robot Posted July 2, 2010 Share Posted July 2, 2010 Not only that, but you need to open them by typing http://localhost/ in your browser's address bar. So, if the PHP file is right in the "www" folder and is called, say, "test.php", you need to access it with http://localhost/test.php Link to comment Share on other sites More sharing options...
hansolo Posted July 3, 2010 Author Share Posted July 3, 2010 Cheers i have been doing that. it does clarify to me now i definitley need to write the address you have wrote. I wont forget now thanks alot Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.