I'm working on a rating system. The user can rate an item with the dropdown menu:
<select name = "theRating">
<option>Select...</option>
<option>1 Star</option>
<option>2 Stars</option>
<option>3 Stars</option>
<option>4 Stars</option>
<option>5 Stars</option>
</select>
In the same document, just a few lines later, I want to send the selected option in a url via
<form action="', $scripturl, '?action=rateThisThing?rating=',$_POST['theRating'],'" method="post">
<input type="submit" value="Rate this"></form>
Why doesn't this work? $_POST['theRating'] seems to be empty [or at the very least, it's not showing up in the URL upon redirection...]
method="get"so after submit it goes likepage.php?theRating=1, from there you use$_GETbut not sure how you want to handle the value afterwards.