Sry guys,
im newbies for PHP,
Just want to learn how to..
i got problem with checkboxs .
my .html code
<html>
<head>
<title>
Retrive form using get method
</title>
</head>
<body>
<form action="details.php" method="GET">
Name: <input type ="text" name="name">
<p>
Address: <input type ="text" name="address">
<p>
Hobbies :
Cooking <input type ="checkbox"name="cooking" value="1"/>
Reading <input type ="checkbox"name="reading" value="2"/>
Listen to Music <input type ="checkbox"name="listen" value="3"/>
<p>
Email: <input type ="text" name="email">
<input type="submit" value="Submit">
<input Type="reset" value="Reset">
</form>
</body>
</html>
And this is my Php
<html>
<body>
<?php
$name = $_GET ['name'];
$address = $_GET ['address'];
$hobbies = $_GET ['cooking'];
$email = $_GET ['email'];
echo " <br> Hi $name";
echo " <br> Your address is $address";
echo " <br> Your hobbies are $hobbies";
echo " <br> I will contact you at $email";
?>
</html>
</body>
my checkbox wont work,,
gld if you guys can help me.
:queasy: