----- Original Message -----
From: "tmallan"
> This form allows a customer to choose a shipping option. While it
> submits the form, no matter which button is selected, the same value
> is always submitted.
> Thanks for any help.
>
> The code:
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> <script language="JavaScript" type="text/javascript">
> function Ship_Option(Form, Value) {
> Form.service.value = Value;
> Form.submit();
> }
> </script>
>
> <form method="post" action="ship.html">
> <input type="radio" name="service" value="9"
> onfocus="Ship_Option(this.form, 9)">UPS Ground<br>
> <input type="radio" name="service" value="10"
> onfocus="Ship_Option(this.form, 10)">UPS 3 Day Select<br>
> <input type="radio" name="service" value="11"
> onfocus="Ship_Option(this.form, 11)">UPS 2 Day Air
> </form>
Hi tmallan,
This group doesn't seem to be very active of lately, though there seems to be
quite a few group members.
I'm a newbie at javascript myself, but when I tried your code, it didn't pass
any value at all, for me. I was using PHP to get the $_POST['service'] value
passed.
I guess you are trying to do this without using a Submit button, which would be
nice.
Hope some more experienced members can help you.
Regards, Bob E.