Thanks for the reply.

I really am not sure what the real problem is here.

Orginally I created a single html form which had the embed perl in it.  the
logic was such
that the user would select a button on the screen and the related div tag
would then display.  the 
user then would make a selection and select the next page button.  the next
page button called a
java script which then in turned called the document.form.submit().  the
forms action was blank so that
the form would submit to itself.  the intent was then i would pull off the
values from the just completed 
form and use some of the values to look up data in other tables.  for some
reason the value of the select
is always the first choice, unless of course I save the selected value to a
hidden field.

now,  i changed my approach to this whole thing and created individual pages
and guess what, the perl
code now sees the selected value using fdat.

if you do not mind, I am going to send you a copy of the code that I am
using, maybe you can take a look at
it and determine what I am doing work with.  otherwise I think I will go
with the new design (users won't know).
..


-----Original Message-----
From: Luiz Fernando B. Ribeiro [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 10:44 AM
To: Boyd, David
Subject: Re: Help with Select/option


Hi David,

Reply:

BD> The problem I am haveing is that I have a form in which I want to submit
BD> back to itself.  this form is a bunch of DIVs in which I walk the user
BD> through.

BD> On the first div I ask the user to select a client name, code example:

BD> <select name="cmbClientKey" id="cmbClientKey"
BD> onChange="cmbClientKey_OnChange(this.value)">
BD>   <option value='[+ $cmbClientKeyValue[$row] +]'>[+
$cmbClientKeyText[$row]
BD> +]</option>
BD> </select>

BD> Being new to mod_perl, I am sure that I have not tried everything, but I
BD> have wasted 2 days trying what I know.  Can you provide solution or
BD> directions so I can get this solved.

I've been using Embperl and selects a lot with no problems.
You have to split the $fdat value this way:

@selected_values = split /\t/, $fdat{cmbClientKey};

I don't know if this is the point on your question...

bye,

Luiz Fernando B. Ribeiro
----------------------------
At Home - Design e Internet
[EMAIL PROTECTED]
[EMAIL PROTECTED]

New_Incident_2.phtml

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to