I have a form with three radio buttons and a submit button.
<FORM name ='form1' method ='post' action ='cd.php?id=$id'>
<Input type = 'Radio' Name ='sort' value= 'name'>
<Input type = 'Radio' Name ='sort' value= 'length'>
<Input type = 'Radio' Name ='sort' value= 'number'>
<Input type = "Submit" Name='sort' VALUE = "Sort this!">
</FORM>
I would like the submit button to add the "sort" value to the cd.php URL
example: cd.php?id=0&sort=length
how do i do this?
I dont know how to check which radio button is checked
<FORM name ='form1' method ='post' action ='cd.php?id=$id'>
<Input type = 'Radio' Name ='sort' value= 'name'>
<Input type = 'Radio' Name ='sort' value= 'length'>
<Input type = 'Radio' Name ='sort' value= 'number'>
<Input type = "Submit" Name='sort' VALUE = "Sort this!">
</FORM>
I would like the submit button to add the "sort" value to the cd.php URL
example: cd.php?id=0&sort=length
how do i do this?
I dont know how to check which radio button is checked