Jump to content

[SOLVED] Hidden input actually needs to be hidden


marmite

Recommended Posts

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>

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.