ScrewLooseSalad Posted April 17, 2013 Share Posted April 17, 2013 My drop down input doesn't pass the value to the next page correctly echo " <select name='NexternalStocker'> <option value='NULL'>Select</option> <option value='NULL'>-----</option>"; while ($row2 = mysql_fetch_assoc($result2)) { echo "<option value='$row2[external_Stocker]'>$row2[external_Stocker]</option>"; } echo " </select>"; Despite the drop down menu item appearing correctly on the page, "$_POST['Nexternal_Stocker'];" won't retrieve anything on the next page... can anyone give me any pointers? Link to comment https://forums.phpfreaks.com/topic/277053-value-from-drop-down-not-passing-to-next-page/ Share on other sites More sharing options...
mac_gyver Posted April 17, 2013 Share Posted April 17, 2013 the name of your select menu - name='NexternalStocker' isn't the same as what you are using in the php code - $_POST['Nexternal_Stocker] Link to comment https://forums.phpfreaks.com/topic/277053-value-from-drop-down-not-passing-to-next-page/#findComment-1425340 Share on other sites More sharing options...
ScrewLooseSalad Posted April 17, 2013 Author Share Posted April 17, 2013 the name of your select menu - name='NexternalStocker' isn't the same as what you are using in the php code - $_POST['Nexternal_Stocker] wow lame, I was certain I had checked that.... Thanks Link to comment https://forums.phpfreaks.com/topic/277053-value-from-drop-down-not-passing-to-next-page/#findComment-1425342 Share on other sites More sharing options...
seandisanti Posted April 17, 2013 Share Posted April 17, 2013 Don't forget you can always print_r($_POST) on the receiving page to confirm names and values when you think you have a discrepancy like this. Link to comment https://forums.phpfreaks.com/topic/277053-value-from-drop-down-not-passing-to-next-page/#findComment-1425500 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.