sjk1000 Posted December 2, 2008 Share Posted December 2, 2008 Hi all Can anyone see a problem with the form below - the hidden arrays just aren't getting to where they're supposed to be. The submit works and I land at the right function following an IF ISSET but the hidden portion just doesn't follow it. Any ideas before I go totally nuts staring at this? Thanks, Steve print ("<form action='http://www.boardgameco.co.uk/catalog/index.php?main_page=seller_confirmation' method='post'>"); print ("<div style='float:right' > <input class='mybtn' SIZE='5' type='submit' name='confirm_db_update' value='Confirm'/> </div>"); print ("<input type=hidden name='productid[]' id='productid' value= ".$productid. "/>"); print ("<input type=hidden name='qty[]' id='quantity' VALUE = ".$qty. "/>"); print ("<input type=hidden name='price[]' id='price' VALUE =".$price. "/>"); print ("<input type=hidden name='shipping[]' id='shipping' VALUE =".$shipping. "/>"); print ("<input type=hidden name='sdprice[]' id='sdprice' VALUE =".$sdprice. "/>"); print ("</form>"); Link to comment https://forums.phpfreaks.com/topic/135158-form-problems-arrays-not-being-passed-help-needed-please/ Share on other sites More sharing options...
PFMaBiSmAd Posted December 2, 2008 Share Posted December 2, 2008 Have your done a "view source" of the form in your browser to make sure the value="..." parameters have something it them? There is nothing wrong with the form code itself, post your php code, there is likely something wrong with it. Link to comment https://forums.phpfreaks.com/topic/135158-form-problems-arrays-not-being-passed-help-needed-please/#findComment-703933 Share on other sites More sharing options...
PFMaBiSmAd Posted December 2, 2008 Share Posted December 2, 2008 Edit to the above. There is a minor problem with the HTML, but it won't prevent the form from working - you need some quotes around the actual values in the value=... parameters to make proper HTML. Link to comment https://forums.phpfreaks.com/topic/135158-form-problems-arrays-not-being-passed-help-needed-please/#findComment-703950 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.