sundance1980
MIS
Hello this might be a simple question:
I have a form with two radio buttons and a submit button. I am trying to incorportate a form action based on the radio selection. I was thinking of doing something like
If radio1 is selected the do action=\"search1.php\"
If radio2 is selected the do action=\"search2.php\"
Do I have the right idea with this? I am confused on how I would tell the form action on what search page to use. Any ideas would help me out a lot. Thanks guys.
I have a form with two radio buttons and a submit button. I am trying to incorportate a form action based on the radio selection. I was thinking of doing something like
If radio1 is selected the do action=\"search1.php\"
If radio2 is selected the do action=\"search2.php\"
Do I have the right idea with this? I am confused on how I would tell the form action on what search page to use. Any ideas would help me out a lot. Thanks guys.
Code:
<form action=\" \" method=\"post\">
<input type=\"text\" name=\"search_value\" size=\"15\">
<input type=\"radio\" name=\"group1\" value=\"radio1\" checked> Radio button 1
<input type=\"radio\" name=\"group1\" value=\"radio2\"> Radio Button 2
<input type=\"submit\" value=\"Search\" style=\"font-family: Verdana; font-size: 10px\">