SanDinPur Posted May 6, 2012 Share Posted May 6, 2012 Hi,When executing the first file FORM1.HTM, it displays the form. After the value IS entered in the form, the page directly displays just the plain (full) code of "postExample.php", instead of executing that php file. Please refer the following 2 files. 1. FORM1.HTM Enter name:2. postExample.phpNote: 1. We are using phpDesigner 8. 2. We are using APACHE server and running the files on localhost.3. We also changed the register_globals to 'on' in php.ini file. Please help us in getting this issue resolved. Link to comment Share on other sites More sharing options...
Jaepee Posted May 6, 2012 Share Posted May 6, 2012 Could you show us your code that you're using/writing? In the menu area right above the text area there is a button that looks like --> <> click on it then copy and paste your code there. Then we can all see your code and give any input. Thanks jp p.s. try $_POST not $_Post 1 Link to comment Share on other sites More sharing options...
HartleySan Posted May 7, 2012 Share Posted May 7, 2012 Jaepee, you're right, "$_POST", not "$_Post", is correct. However, I think that this "error" is a result of Larry's forum auto-capitalizing the words in topic titles, not a typo on the original poster's part. SanDinPur, your issue sounds like some sort of issue with your server environment. If you run a simple script like the following, does it execute properly? <?php phpinfo(); ?> Link to comment Share on other sites More sharing options...
Edward Posted May 7, 2012 Share Posted May 7, 2012 Hi,When executing the first file FORM1.HTM, it displays the form. After the value IS entered in the form, the page directly displays just the plain (full) code of "postExample.php", instead of executing that php file. Please refer the following 2 files. 1. FORM1.HTM Enter name:2. postExample.phpNote: 1. We are using phpDesigner 8. 2. We are using APACHE server and running the files on localhost.3. We also changed the register_globals to 'on' in php.ini file. Please help us in getting this issue resolved. If the php code is showing it means your server is not running, therefore you need to get the Apache server up and running, otherwise the php code cannot be processed and you will just see the actual code rather than the interpreted code the engine will produce. What server are you running, XAMPP, MAMP or LAMP? You should be able to load up the server control panel in their there are check boxes for switching Apache and MySQL on and off, switch them both on. Link to comment Share on other sites More sharing options...
Larry Posted May 7, 2012 Share Posted May 7, 2012 SanDinPur, I don't know why you reported this thread after creating it, but don't ever do that again. Link to comment Share on other sites More sharing options...
Recommended Posts