|
|
| Author |
Message |
khrath
RealPoor Master of Posts

Joined: 11 Oct 2002 Posts: 8750
|
Posted: 03/29/05 - 07:53 Post subject: html question, mix redirect and post?
|
|
|
I have a page I log in to on a standard html form, username, password, that uses POST function to log in to a site.
I can make an html page with the values already populated in the html, where I only have to hit submit, but I want it to go directly to the page I use all the time, instead of making me push the submit button.
Is there a trick where you can do that?
|
|
|
Back to top
|
|
|
|
 |
motherface
RealPoor Guru

Joined: 12 Mar 2003 Posts: 3407
|
Posted: 03/29/05 - 09:55 Post subject:
|
|
|
|
You could probably use javascript to do an "Onload='form.submit()'" type thing when the page loads. Klunky but I've seen it work.
|
|
|
Back to top
|
|
|
|
 |
kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 03/29/05 - 10:23 Post subject:
|
|
|
|
so you have a authenticate protected page and you want to be able to come back to that page without having to click something or log in? cookies if you have control of the code
|
|
|
Back to top
|
|
|
|
 |
Spiritz
RealPoor Sensei

Joined: 11 Oct 2002 Posts: 1969
Location: Huntington Beach, CA
|
Posted: 03/29/05 - 14:42 Post subject:
|
|
|
|
Kireol is correct. Only way to bypass authentication would be to either remove it, or set a cookie and then have your code check for it. Same idea as "remember me" checkboxes (ala Realpoor Sign In).
|
|
|
Back to top
|
|
|
|
 |
|
|