/    Sign up×
Community /Pin to ProfileBookmark

Unique issue with passing the text of a pulldown option

Alright. So, I’m a total newbie given a task to create a small site to collect some user inputed info and pass it to an email. I found some really good examples online and basically took a few of them and mashed them into something that works 99%. the one last % is killing me. The site takes basic info, name, email etc, and a pulldown for different configuration options. When the pulldown is selected, it loads a html file containing all the details and a picture into an iframe. I’m using a perl script I found online to collect all the data and dump it to a email when the form is submitted. That works great except for one problem. I need to pull the txt in the pulldown, but I seem to be only able to pull the value, which is the html file being shown in the iframe. Here is the code from my Pulldown:

<select onchange=”window.open(this.options[this.selectedIndex].value,’iframe’);this.selectedIndex=text;”choice=config” name=”config”>
<option value=”instructions.html”> Configuration Options </option>
<option value=”option1.html”> 12311 with Dual 50″ Plasma </option>
<option value=”option2.html”> 12312 with 50″ Plasma </option>
<option value=”option3.html”> 12313 with 42″ Plasma </option>
<option value=”option4.html”> 12314 with 32″ Plasma </option>
</select>

and my iframe code:

<iframe name=”iframe” src=”instructions.html” align=”top” height=”460″ width=”760″></iframe>

So I don’t really understand what the majority of the java does, I just know it works 99% of the way I need it to. I can pass the “optionN.html” when i collect the value of the pulldown using Perl, but I need to pass the “12311 with Dual 50″ Plasma” text in the pulldown itself. Any help would be appreciated.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@BruciferauthorApr 03.2008 — I just renamed the html files to this big long sentence and removed the .html

it still displays and kicks the filename back, which happens to be huge

work around FTW!
×

Success!

Help @Brucifer 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.19,
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,
)...