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.ph p", instead of executing that php file.
Please refer the following 2 files.
1. FORM1.HTM
2. postExample.php
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_global s to 'on' in php.ini file.
Please help us in getting this issue resolved.
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.ph p", instead of executing that php file.
Please refer the following 2 files.
1. FORM1.HTM
Code:
<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
Code:
<?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_global s to 'on' in php.ini file.
Please help us in getting this issue resolved.
Comment