RE: form to php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx> 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.

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux