<?php
extract($HTTP_POST_VARS);
if($gender=='')
 echo "choice the gender";
if($gender=="male")
 echo "you are male";
if($gender=="female")
 echo "you are female";
?>         


----- Original Message ----- 
From: "X" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 22, 2003 7:36 AM
Subject: [PHP] what's the matter?


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!~



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to