I'm trying to pass a value from an HTML <SELECT> list to an "Authorize.net" "Weblink" payment form.
The <select> list has two options,and I can assign any value to the first option "trial" and it's passed to the payment form,but if the second option is selected ,that value is not passed.Here's what I have,my very first attempt at "PHP" :
<select name="price">
<option value="trial">some text
<option value="year">some text
<?php
switch ($price)
{
case $trial:
$price="49.95" ;
break;
case $year:
$price="99.95" ;
break ;
}
?>
</select>
Then the value of $price is passed to the following element of the payment form :
<input type="hidden" name="x_Amount" value="<?php echo ($price); ?>">