I am taking values from radio buttons with the following form:
<form method="post" name="form1" action="">
<label class="heading">First value </label><br>
<input name="v1" type="radio" value="v1text1">Value 1 - Option 1<br>
<input name="v1" type="radio" value="v1text2">Value 2 - Option 1<br>
<br/>
<label class="heading">Second value </label><br>
<input name="v2" type="radio" value="v2text1">Value 2 - Option 1<br>
<input name="v2" type="radio" value="v2text2">Value 2 - Option 2<br>
<input name="v2" type="radio" value="v2text3">Value 2 - Option 3
<input name="submit" type="submit" value="Submit">
</form>
Now I want to pass those values to a php script after clicking on Submit button, so I have created another form with GET like this:
<form action="script.php" method="get">
<input name="submit" type="submit" value="Submit">
</form>
However, the values are not being sent to the script.php.
I also tried by putting the second form inside of the first one, but also without success.
Where is the error?
action="script.php"to the first form and all is fine.