Click to See Complete Forum and Search --> : Changing the url action value depending list value....


thedream
10-27-2003, 10:07 AM
Hi there,

here is my problem:
I have a form that once submitted go to the invoice recapitulation with the form value in it.
The trick is I have to make a second page for the French people.
I have a list in my form like:

<select name="lc" class="textfield" id="lc" onChange="readform(this.form)">
<option selected value="" <?php if (!(strcmp("", $row_rsForm['lc']))) {echo "SELECTED";} ?>>Choose a Country</option>
<option value="AL" tel="355" <?php if (!(strcmp("AL", $row_rsForm['lc']))) {echo "SELECTED";} ?>>ALBANIA</option>

etc...

What I want is the ability to change the url(N°2) of the action value inside the <form> tag if the value of the textfield "lc" is "FR".
Else having the normal url1.

How can I do this?

Sincerely yours,

Marc-André
:confused: