MiniVend Akopia Services

[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 "Russ" <russ@khouse.org>     ******

-------------------
<SELECT name="state">
	<OPTION VALUE="California" [selected state "California"> California
	<OPTION VALUE="New York" [selected state "New York"> New York
</SELECT>
-------------------

If this is the exact code you're using I'd suggest this:
-------------------
<SELECT name="state">
	<OPTION VALUE="CA" [selected state CA]> California
	<OPTION VALUE="NY" [selected state NY]> New York
</SELECT>
-------------------

Add the right bracket at the end of the [selected] statement.  Use 2 letter
state codes to avoid strings with spaces.

There's probably a better way with a lookup such as the way the country
drop-down works.

Russ



-----Original Message-----
From: owner-minivend-users@minivend.com
[mailto:owner-minivend-users@minivend.com]On Behalf Of Steve Cockwell
Sent: Tuesday, March 23, 1999 7:22 AM
To: minivend-users@minivend.com
Subject: Persistent SELECT SELECTED in Forms.


******    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>

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


Search for: Match: Format: Sort by: