RE: [PHP-WIN] form to php
| From: | PHP MySQL | Date: | Thu, 29 Jul 2004 09:30:08 +0000 |
| Subject: | RE: [PHP-WIN] form to php | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-24280@lists.php.net to get a copy of this message | ||
hi,
1) The lines in the form are in the correct order.
2)i tried using HTTP_POST['age']; ?> , but it still displays the entire code.
Not quite sure wht u meant by "AUTOGLOBAL ON|OFF setting"..... If u meant register_globals
in php.ini file, then it is set to on.
3) Regarding action.php:
phpinfo();
?>
It still only displays the code.
I ran action.php by itself and looked at the info page and i couldnot any entries for
$HTTP_POST['name'] or $ _POST['name'] or
$HTTP_POST['age'] or $_POST['age']
Please help.
penjo
grgk2 <grgk2@yahoo.gr> wrote:
Hi
1) Line " form action="action.php" method="post">
Your name: [input] type="text" name="name" />
Your age: [input] />
[input]
should read
"
Your name: [input] name="name" />
Your age: [input]
[input]
"
assuming that is correct
2) Try .You are $HTTP_POST['age']; ?>
REASON - php.ini - AUTOGLOBAL ON|OFF setting
3) If that doesn't work try
4) action.php:
phpinfo();
?>
Try to locate entries for $HTTP_POST['name'] or $ _POST['name'] or
$HTTP_POST['age'] or $_POST['age']
See if they carry any values.
REASON - php.ini - Other settings
And resubmit to the list with your results.
Best regards,
Grgk2
Yahoo! India Matrimony: Find your life partneronline.