Here's my code:
mysql_query("INSERT INTO val_variations (
variation_val, variation_num, variation_detail, variation_ins, variation_cost)
VALUES(
[B]'".$_GET["val"]."',[/B] '".$_POST["varnum"]."', '".$_POST["vardetail"]."', '".$_POST["varins"]."', '".$_POST["varcost"]."') ")
or die(mysql_error());
echo "Variations submitted.<br><br>Please wait...";
The URL I use ends like this:
add.php?action=valuation_step2&val=9
I manage to retrieve the 'action' using get fine, but for some reason, this query does not retrieve the 'val' figure. Does anyone know what I'm doing wrong?