1st Time Trying a Session
Posted: Sun Mar 16, 2008 8:12 pm
Hi,
I am trying to construct one script with a form that registers sessions with a radio button, a check box and a dropdown select.
I have never used a session before and I am just try to echo out the session values. Any help would be greatly appreciated.
Here is what I have so far. I believe this form is ready to add a session?
I am trying to construct one script with a form that registers sessions with a radio button, a check box and a dropdown select.
I have never used a session before and I am just try to echo out the session values. Any help would be greatly appreciated.
Here is what I have so far. I believe this form is ready to add a session?
Code: Select all
<body><form action="session.php" method="post">Enter Your Name<br/><input type="text" name = "name"><br/>Do you have a purpose here?<br/><input type="checkbox" name="purpose" value="YES" />YES<br />Your Gender?<br/><input type="radio" name = "gender" value="male">Male<br/><input type="radio" name = "gender" value="female">Female<br/>Select your favorite programming language.<br/><select name="language" > <option value="">------------</option> <option value="php">PHP</option> <option value="javascript">JavaScript</option></select><input type = "submit" value = "Remember Me!"></form>Register your FULL session!</body></html>