I have some problems with this code.
I’m trying to POST some values from the Select box and the Options to another page called “cart.php”
Here is the code:
[php]
<select name="sizetable" id="sizetable">
<option value="<?php echo $size_1;?>"><?php echo $size_1;?></option>
<option value="<?php echo $size_2;?>"><?php echo $size_2;?></option>
<option value="<?php echo $size_3;?>"><?php echo $size_3;?></option>
<option value="<?php echo $size_4;?>"><?php echo $size_4;?></option>
</select>
[/php]
-------------------------------
In the cart.php I have this code:
[php]if (isset($_POST[‘pid’])) {
$pid = $_POST[‘pid’];
$pd = $_POST[“sizetable”];
$pd1 = $_POST[“colsel”];
}[/php]
I’m able to get the value from [php]$_POST[‘pid’][/php], but the other two values gives me nothing.
Can any one of you tell me what i’m doing wrong!
Regards Benny