/    Sign up×
Community /Pin to ProfileBookmark

calling a command with combined strings from drop down box

I would like to be able to use drop down boxes and take the values assigned by them to construct a character string to input into the form action code. This doesn’t necessarily need to be done even remotely similar to the way i have started it… i assume that the gist of what i am attempting is understood and i’ll do it anyway possible.

Example code:

<form method=”post” action=”<!–#ystore_order id=”ITEM_ID_GOES_HERE” –>”>

<p>

<select size=”1″ name=”APP”>

<option value=”21-402″>90-93 Acura Integra All</option>

<option value=”21-401″>94-01 Acura Integra Non VTEC</option>

</select>

<select size=”1″ name=”COLOR”>

<option value=”b”>Blue</option>

<option value=”r”>Red</option>

<option value=”c”>Clear</option>

<option value=”p”>Polished</option>

</select>

<input type=”submit” value=”Order”>

</p>

</form>

So ideally I want the user to be able to select “90-93 Acura Integra All” then “Blue”…..so when that’s the case I need the APP and COLOR to be combined into “ITEM_ID_GOES_HERE” portion of the thing as “21-402b”. I really hope there is some way of doing this….and it seems like it would be really simple.

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@BoooozeDec 06.2003 — i think you should be posting this in the javascript section
×

Success!

Help @roblanning spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...