I have one variable already set (received through GET, too). I want to pass it, together with the variables of the form. The problem is that the new page takes only the variable from the from.
This is the code:
$insertion_type=$_GET['insertion_type'];
echo "<form action='index.php?insertion_type=".$insertion_type."&' method='get'>";
echo "Number of registrations<br /><input type='text' name='insertion_count'><br />";
echo "<input type='submit' value='Submit'>";
echo "</form>";
I am expecting to get this url after the submit:
index.php?insertion_type=somenumber&insertion_count=somenumber
but I get in place
index.php?insertion_count=somenumber
Please help. Thank you.