By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,967 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,967 IT Pros & Developers. It's quick & easy.

Issue in $_POST

P: 2
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.


Expand|Select|Wrap|Line Numbers
  1. <form method="POST"
  2. action="postExample.php">
  3. <p>Enter name:<input type="text" name="name" size="20" maxLength="20" value><input type="submit" value="Submit" name="B1"></p>
  4. </form>

2. postExample.php

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. if (isset($_POST['name']))
  3. echo 'success';
  4. else
  5. echo 'failure';
  6. ?>

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.
May 6 '12 #1
Share this Question
Share on Google+
4 Replies

P: 1,059
its because something may be wrong with your http.conf. if it is ok then check all the .htaccess files
May 7 '12 #2

P: 2
Could you please tell me where does these files reside & what could be the possible problem ?
http.conf and .htaccess files

Thanks very much,
May 7 '12 #3

P: 2
yes something wrong with ur config
May 8 '12 #4

P: 4
you can change the name="name" to name="something else"
May 8 '12 #5

Post your reply

Sign in to post your reply or Sign up for a free account.