- Impact
- 7
I've written a handful of short articles on PHP things .. they're on my website: http://www.ooer.com/ .. they might help you get started. Or not.Coolprogram said:Can someone help me? Or can you give me an example too work off? If soo thank you very much. If not that is okay 2.
if (<input type="radio" name="cool" value="radio"> <code>)
echo "Right"
}
else (<input type="radio" name="cool" value="radio"> <cose>)
{
if ($beer == 'good')
{ echo "Drink beer"; }
elseif ($beer == 'bad')
{ echo "Don't drink beer"; }
else { echo "give me beer"; }
<html>
<body>
<form>
<input type="radio" name="sex" value="male"> Male
<br>
<input type="radio" name="sex" value="female"> Female
<br>
<input type="submit" name="submit" value="Submit">
</form>
<?php
if($_POST['submit'])
{
$sex = $_POST['sex'];
if($sex == "male")
{
echo 'You are male.';
}
else
{
echo 'You are female.';
}
}
?>
</body>
</html>

