Using client-side script, you can accomplish this, but be very, very certain
that you want to rely on this instead of creating a server-side solution...
<html>
<body>
<form id="x" method="post" action="default.asp">
<select name="s"
onchange="document.getElementById('x').action=this .value;">
<option value="default.asp">Select Payment Type</option>
<option value="cc.asp">Credit Card</option>
<option value="check.asp">Check</option>
</select>
</form>
Test it:
<input type="button" onclick="alert(document.getElementById('x').action );"
value="Show Form Action" />
</body>
Ray at work
"SA SA" <su*******@gmail.comwrote in message
news:11**********************@e3g2000cwe.googlegro ups.com...
Is this possible? I have three items in drop down "Select Payment
Type", "Credit Card" and "Check". if user select Credit card then i
need to post the form variables to different URL than check selecting.
Thanks for your help in advance.
suresh
...... Method="POST", Action= & url ........
IF (dropdown.index =1)
{
url = "http://somebank.com/1/post.asp"
}
IF (dropdown.index =2)
{
url = "http://somebank.com/2/post.asp"
}