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
Expand|Select|Wrap|Line Numbers
- <form method="POST"
- action="postExample.php">
- <p>Enter name:<input type="text" name="name" size="20" maxLength="20" value><input type="submit" value="Submit" name="B1"></p>
- </form>
2. postExample.php
Expand|Select|Wrap|Line Numbers
- <?php
- if (isset($_POST['name']))
- echo 'success';
- else
- echo 'failure';
- ?>
Note:
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.