daveh33 Posted October 28, 2007 Share Posted October 28, 2007 echo "<form method=\"post\" action=\"?rid=$rid\"> Message: <input type=\"text\" name=\"message\" length=\"80\"><p> Send to : <select name=\"to\"> <option value=\"All\"><selected>All</selected>"; while($row = mysql_fetch_array( $result1 )) { $users = $row['username']; echo "<option value=\"users\">$users</option>"; } echo "</select> <input type=\"hidden\" value=\"$rid\" name=\"rid\"> <input type=\"hidden\" value=\"$rid\" name=\"submitted\"> <input type=\"submit\" value=\"Send Message!\" name=\"submit\"><P>   <p>"; why would $_POST['to'] no get the result of the drop down menu??? Link to comment https://forums.phpfreaks.com/topic/75096-solved-problems-with-_post-from-drop-down-menu/ Share on other sites More sharing options...
AndyB Posted October 28, 2007 Share Posted October 28, 2007 ... unless it's because the form never had a closing tag, there's no obvious reason. Check the actual generated HTML that your code produces. That might help. Link to comment https://forums.phpfreaks.com/topic/75096-solved-problems-with-_post-from-drop-down-menu/#findComment-379803 Share on other sites More sharing options...
daveh33 Posted October 28, 2007 Author Share Posted October 28, 2007 Yes the </form> was missing - thanks Link to comment https://forums.phpfreaks.com/topic/75096-solved-problems-with-_post-from-drop-down-menu/#findComment-379805 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.