I was wondering if it would be possible to set a session variable from a radio button. This is what I have so far:
<form action="process.php" method"post">
<input type="radio" name="number" id="number" value="1" /> 1
<input type="radio" name="number" id="number" value="2" /> 2
<input type="radio" name="number" id="number" value="3" /> 3 <br />
<input type="submit" name="Submit" value="Submit" />
</form>
And then for my process.php:
<?php
session_start();
session_register ("number");
$_SESSION['number'] = $_POST['number'];
echo "Number = ". $_SESSION['number'];
?>
I have the echo "Number = " in there just to test and make sure the variable is being set, but it still seems to be coming back blank.
I am really confussed. Thank you for your help :-)