marmite Posted April 26, 2007 Share Posted April 26, 2007 I have a form in a table, which takes users to the cart. I want to pass the image information (which is image_link, not shown here) onto the cart using POST (below) but without displaying the image on the initial form. Using input=hidden still shows the image. I can only think to put it in a <td> tag 0 px wide or something, but it seems a bit scrappy! Thanks... <tr> <td class='dataleft'><input type="hidden" id='cart_image<? echo "_".$c; ?>' name='cart_image<? echo "_".$c; ?>' value="<? echo $image; ?>"><? echo $image; ?></td> <td class='dataleft'><input type="hidden" id='cart_pkg<? echo "_".$c; ?>' name='cart_pkg<? echo "_".$c; ?>' value="<? echo $row['packaging_desc']; ?>"><? echo $row['packaging_desc']; ?></td> <td class='dataleft'><input type="hidden" id='cart_msg<? echo "_".$c; ?>' name='cart_msg<? echo "_".$c; ?>' value="<? echo $row['packaging_message']; ?>"><? echo $row['packaging_message']; ?></td> <td class='datacenter'><input type="hidden" id='cart_qty<? echo "_".$c; ?>' name='cart_qty<? echo "_".$c; ?>' value="<? echo $row['packaging_quantity']; ?>"><? echo $row['packaging_quantity']; ?></td> <td class='datacenter'><input type="hidden" id='cart_cello<? echo "_".$c; ?>' name='cart_cello<? echo "_".$c; ?>' value="<? echo $row['packaging_cello']; ?>"><? echo $row['packaging_cello']; ?></td> <td class='datacenter'>£<input type="hidden" id='cart_prc<? echo "_".$c; ?>' name='cart_prc<? echo "_".$c; ?>' value="<? echo $row['packaging_price']; ?>"><? echo number_format($row['packaging_price'],2,'.',''); ?></td> <td class='datacenter'><input name='qty<? echo "_".$c; ?>' type="text" id='qty<? echo "_".$c; ?>' size="3"></td> </tr> Link to comment https://forums.phpfreaks.com/topic/48758-solved-hidden-input-actually-needs-to-be-hidden/ Share on other sites More sharing options...
taith Posted April 26, 2007 Share Posted April 26, 2007 ... your images are outside of the input fields... youd need to have... <td style="display:none; visibility:hidden;"> Link to comment https://forums.phpfreaks.com/topic/48758-solved-hidden-input-actually-needs-to-be-hidden/#findComment-238960 Share on other sites More sharing options...
marmite Posted April 26, 2007 Author Share Posted April 26, 2007 Thankyou thankyou! Link to comment https://forums.phpfreaks.com/topic/48758-solved-hidden-input-actually-needs-to-be-hidden/#findComment-238965 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.