mitchell
11-06-2007, 03:54 PM
i am planning to make a user on sign-up have a choice what he wants of something which he can only pick one off.
and then it passes onto the database feild either the number,1,2,3,4,5 depending which one of the 5 choices he picks.
i know how to do all the database stuff but im trying to do the form, and how i can put "this button means value 1 etc." this is what i have so far
echo ("<TR>
<TD>pick your land</TD>
<TD><INPUT TYPE = "radio" NAME="Q1" VALUE = "1">option 1<TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "2">option 2</TD>
<TD><INPUT TYPE = "radio" NAME="Q1" VALUE = "3">option 3<TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "4">option 4</TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "5">option 5<TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "6">option 6</TD>
</TR>");
how can i do it so the user can only pick one plus what do i need to do so it passes on the value the user picks in the database.
this i confusing me a lot but any help is appreciated
if your woundering the submit button at the bottom of the page is this:
<input name=\"register\" type=\"submit\" value=\"Register\">
and then it passes onto the database feild either the number,1,2,3,4,5 depending which one of the 5 choices he picks.
i know how to do all the database stuff but im trying to do the form, and how i can put "this button means value 1 etc." this is what i have so far
echo ("<TR>
<TD>pick your land</TD>
<TD><INPUT TYPE = "radio" NAME="Q1" VALUE = "1">option 1<TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "2">option 2</TD>
<TD><INPUT TYPE = "radio" NAME="Q1" VALUE = "3">option 3<TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "4">option 4</TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "5">option 5<TD>
<INPUT TYPE = "radio" NAME="Q1" VALUE = "6">option 6</TD>
</TR>");
how can i do it so the user can only pick one plus what do i need to do so it passes on the value the user picks in the database.
this i confusing me a lot but any help is appreciated
if your woundering the submit button at the bottom of the page is this:
<input name=\"register\" type=\"submit\" value=\"Register\">