View Single Post
Old 03-13-2009, 05:08 PM   #3 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Thanks Tony,

I will take a look at your code and see what I could possibly use.

I was actually looking for a javascript. Hoping that there was some kind of javascript/ajax way of doing it. I know that this is possible somehow because I've seen it at various sites. When I look at my post, I don't think I was entirely clear of what I wanted to do so I will try to add more to what I wrote.

The login page has username and password as the input fields
with a submit button.

Basically the main page, let's call it: index.html is the login page. There's a drop down with only 2 options.

You can put in your username/password combo and whichever dropdown you select takes you to either page1.html or page2.html.

By default, the first option goes to page1.html and obviously if you choose the 2nd option, it takes you to page2.html...



So somehow based on what you select in the dropdown box, your typical "form" tag will change the "action" page that it will go to. I just can't seem to figure that part out since it seems it needs to be dynamic and I'm not very good at javascript...

I will try out your code though, hey, if it works, then it works...and I will be eternally greatfull!
allworknoplay is offline  
Reply With Quote