For some reason this code is not working.
I think it has to do with the way the variables are used in the POST lines. I am trying to combine some text with a variable. so that colorid$colorcheck becomes colorid1, colorid2, etc...
I've tried lots of different ways...probably hitting all around it...
I think it has to do with the way the variables are used in the POST lines. I am trying to combine some text with a variable. so that colorid$colorcheck becomes colorid1, colorid2, etc...
I've tried lots of different ways...probably hitting all around it...
Code:
$color2 = mysql_query('SELECT * FROM color') or die(mysql_error()); while($color3 = mysql_fetch_array( $color2 )) { $colorcheck = $color3['color_id']; echo"$colorcheck<br>"; if( ! empty($_POST['colorid$colorcheck'])) { $coloridf = $_POST['colorid$colorcheck']; echo"wasup{$coloridf}"; $color_option_cost = $_POST['color_option_cost{$colorcheck}']; $youth = $_POST['youth{$colorcheck}']; $adult = $_POST['adult{$colorcheck}']; $XL2 = $_POST['2x{$colorcheck}']; $XL3 = $_POST['3x{$colorcheck}']; $XL4 = $_POST['4x{$colorcheck}']; $XL5 = $_POST['5x{$colorcheck}']; $XL2cost = $_POST['2xcost{$colorcheck}']; $XL3cost = $_POST['3xcost{$colorcheck}']; $XL4cost = $_POST['4xcost{$colorcheck}']; $XL5cost = $_POST['5xcost{$colorche
Comment