[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
RE: Persistent SELECT SELECTED in Forms.
****** message to minivend-users from "Thompson-Jordan" <Thompson-Jordan@mindspring.com> ******
> ****** message to minivend-users from Steve Cockwell
> <stevec@sierra.lazarus.ca> ******
>
> I would really like to use SELECT for the State/Province field in the
> checkout.html file, but after the form is refreshed (by doing anything
> with the State field) the SELECT box changes back to the default.
>
> This is not surprising.
>
> However, I noted that in the Credit Card Month/Year area we have this:
>
> <SELECT name="mv_credit_card_exp_year">
> <OPTION VALUE=98 [selected mv_credit_card_exp_year 98]> 1998
> <OPTION VALUE=99 [selected mv_credit_card_exp_year 99]> 1999
> </SELECT>
>
> Now, this looks to me like Minivend uses the [selected] tag to
> dynamically select the appropriate option based on the current value in
> mv_credit_card_exp_year...
>
> However, I can't for the life of me get this to work with "state" such
> as:
>
> <SELECT name="state">
> <OPTION VALUE="California" [selected state "California">
> California
> <OPTION VALUE="New York" [selected state "New York"> New York
> </SELECT>
>
Your example is missing closing ]'s. I assume a typo. You should read the
section "Checks and Selections" in the docs carefully again. I glanced at
it (3.12) and it looks like is should be something like:
<SELECT name="state">
<OPTION [selected name="state" value="california"]>California
<OPTION [selected name="state" value="new york"]>New York
</SELECT>
On the shopping cart it would be:
<SELECT name="[modifier-name state]">
<OPTION [selected name="[modifier-name state]"
value="california"]>California
<OPTION [selected name="[modifier-name state]" value="new york"]>New York
</SELECT>
> I've tried subing in numbers for the values such as:
>
> <OPTION VALUE=1 [selected state 1> California
>
> But even that doesn't help. So I'm left with the conclusion that:
>
> 1. Minivend treats the mv_credit_card_exp_year/month variables special
> (I doubt and hope that this is not the case)
> 2. I need to define this elsewhere in some other part of Minivend.
>
> If anyone else has SELECT working with [selected variable value] in
> mvend, please point me in the right direction.
>
> Cheers!
>
> .src
> -
> To unsubscribe from the list, DO NOT REPLY to this message.
> Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to
> Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list