Jump to content

Form problems - arrays not being passed - help needed please


sjk1000

Recommended Posts

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?  :o

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>");

 

 

 

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.