Forum Moderators: coopster
fintan.
Let's say that page1 sends usr+psw to page2
Page 2 will to whatever, and this page will call the
page3 passing the usr+psw+whatever to page3.
(at least that's what I have understood on your request)
So page2 could call page3 in:
. JavaScript onLoad="..." function that will submit your form. But this makes no javascript people away. (hotmail does too)
. <META HTTP-EQUIV=Refresh CONTENT="0; URL=http://site.com/page3.php?var1=123&var2=123">
The bas side of this is that variables are then seen in the url field. But a hashing of them, or even encrytion can solve that issue.
. header("Location: [site.com...] This will work in all browsers, but has the same problem as above.
And finally, another sollution is to use cookies. Then page 3 will read them. This makes the use to have cookies support.
Hope it helps.
Regards, Ethan.
I was thinking of using a header redirect or something similar so I could avoid the whole javascript issue and I can't use get method because the thrid page won't accept the varibles. Is there another way?
something like...
<form name="gateway" action="page3.php" method="POST">
<input type="hidden" name="var1" value="123">
<input type="hidden" name="var2" value="123">
<input type="hidden" name="var3" value="123">
<noscript>
<input type="submit" value="continue to login">
</noscript>
</form>
add the event to body.. onLoad="document.gateway.submit();"
And this should run transparently for javascript users, and still usable for non javascript ones.
Good luck ;)