what's the matter?
| From: | X | Date: | Sat, 22 Feb 2003 13:36:44 +0000 |
| Subject: | what's the matter? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136621@lists.php.net to get a copy of this message | ||
index.php:
<form action="x.php" method="post">choice your gender
<input type="radio" name="gender" value="male"> male
<input type="radio" name="gender" value="female">female
<input type="submit">
</form>
x.php:
<?php
if($gender=='')
echo "choice the gender";
if($gender=="male")
echo "you are male";
if($gender=="female")
echo "you are female";
?>
but at last it said that the gender had not been defined???
help me!
thank u!~