implode function not working
Hello,
I am trying to combine multiple values in a string to be submitted to a shopping cart. However, I can only get one of the two values to pass through to the cart. Any suggestions? Thanks in advance!
<?php
if(isset($_POST['part'])) {
$checkbox = $_POST['part'];
$string = implode("^",$checkbox);
echo $string;
}
?>
<form name='CartItem' action='https://www.ram-mount.com/RamCart/CartPutItem.php' method='POST'>
<input type='checkbox' name='part' value='RAM-VB-162'>
<input type='checkbox' name='part' value='RAM-VB-154'>
<input type='submit' value='Add To Cart'>
</form>
|