Following is the script thats needs to be placed in a if statment.
<input type="hidden" name="order" value="<?php echo $_POST['itemNum']; ?>----<?php if($shopDesc) {print"$shopDesc";} else {print"$line1";} ?>----<?php if(($color == "ColorAdd") || ($size == "SizeAdd") || ($style == "StyleAdd")) {
echo "0.00";
} else {
echo $price;
} ?>----2----1">
The if statement will be:
if($diffitemnum==blank) { above script }
If the $diffitemnum==anything else it will recreate the hidden field elsewhere which I could do it once this is completed.
Variables:
$diffitemnum = drop down menu
itemNum = input field
$shopDesc = input field
$line1 = input field
$color = drop down menu
$size = drop down menu
$style = drop down menu
$price = input field
There are two files auto.html thats passes the varialbles to the php script, automate.php
Thanks for any help in advance