> Is there a way to have a form with two  images as buttons, but will send
> the
> form fields to a different url.

> i.e. you have two form fields
> Username
> Password

> and image A and Image B
> If you hit image A the form is posted to www.a.com
> and if you hit image B the form is posted to www.b.com

> the JavaScript to submit the form is simple but can you control the
> "action" location.

> Any help would be great.

You can set the action with javascript, i.e.

onclick="this.form.action='http://www.a.com';"

I would recommend an alternative approach ... If possible, give both of the
image fields name/value pairs, with the value being the domain it should go
to, then on the action page redirect to the appropriate site with
cflocation. Of course this assumes you can pass the login variables to
either site through a url string, which you may not be able to do if the
login scripts use fully qualified form variables ... Does cflocation allow
fully qualified url's now? I have some vague recollection of it not allowing
them in the past...

Isaac Dealey

www.turnkey.to
954-776-0046
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to