Jump to content

Calculate new value and echo


imimin

Recommended Posts

Should this work the same way if I set it up like this (see approximately line 12):

 

<?php
				$item_selected_style = $_GET['item_selected_style'];
				$item_prod_name = $_GET['item_prod_name'];
				$item_retail = $_GET['item_retail'];
				$item_weight = $_GET['item_weight'];
				$item_img = $_GET['item_img'];

				echo "
				<INPUT TYPE=HIDDEN NAME=name VALUE='$item_prod_name'>
				<INPUT TYPE=HIDDEN NAME=price VALUE='$item_retail*.75'>
				<INPUT TYPE=HIDDEN NAME=sh VALUE='$item_weight'>
				<INPUT TYPE=HIDDEN NAME=img    VALUE='https://secure.impact-impressions.com/poj/includes/img_resize3.php?src=$sitelocation$item_img&width=100&height=100&qua=50'>
				<INPUT TYPE=HIDDEN NAME=img2 VALUE=''>
				<INPUT TYPE=HIDDEN NAME=return VALUE='http://www.patternsofjoy.com'>
				<INPUT TYPE='RADIO' NAME='custom20' VALUE='Style: $item_selected_style' CHECKED='CHECKED' style='display:none'>
				<B>Garment Style: </B>$item_selected_style
				<BR>"
				?>

 

I tried this and it did not pass the value?

Try it like this:

 <?php
echo "<INPUT TYPE=HIDDEN NAME=name VALUE='$item_prod_name'>
<INPUT TYPE=HIDDEN NAME=price VALUE='";
echo $item_retail*.75;
echo "'>
<INPUT TYPE=HIDDEN NAME=sh VALUE='$item_weight'>
<INPUT TYPE=HIDDEN NAME=img    VALUE='https://secure.impact-impressions.com/poj/includes/img_resize3.php?src=$sitelocation$item_img&width=100&height=100&qua=50'>
<INPUT TYPE=HIDDEN NAME=img2 VALUE=''>
<INPUT TYPE=HIDDEN NAME=return VALUE='http://www.patternsofjoy.com'>
<INPUT TYPE='RADIO' NAME='custom20' VALUE='Style: $item_selected_style' CHECKED='CHECKED' style='display:none'>
<B>Garment Style: </B>$item_selected_style
<BR>"
?>

Yes I broke it up more than is probably necessary.

  • 2 weeks later...

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.