index.php:
form action=x.php method=postchoice your gender
input type=radio name=gender value=male male
input type=radio name=gender value=femalefemale
input type=submit
/form
x.php:
?php
if($gender=='')
echo choice the gender;
if($gender==male)
echo you are male;
At 14:36 22-2-2003, you wrote:
index.php:
form action=x.php method=postchoice your gender
input type=radio name=gender value=male male
input type=radio name=gender value=femalefemale
input type=submit
/form
x.php:
?php
if($gender=='')
echo choice the gender;
if($gender==male)
echo you are
] what's the matter?
index.php:
form action=x.php method=postchoice your gender
input type=radio name=gender value=male male
input type=radio name=gender value=femalefemale
input type=submit
/form
x.php:
?php
if($gender=='')
echo choice the gender;
if($gender==male)
echo you
At 15:03 22.02.2003, Chris Hayes said:
[snip]
Since PHP 4.1 form data are not automatically available as variables in the
followup file.
http://nl.php.net/release_4_1_0.php explains it all, for now it's enough
to say
- either turn register_globals on in
4 matches
Mail list logo