|
Posted by Michael Hulse on 12/10/05 09:23
On Dec 9, 2005, at 11:07 PM, matt VanDeWalle wrote:
> I am wanting to forward a user on a signup or similar page (based on a
> few of their answers) and so far i have it split into basically a
> two-step process where i have on the first part, an option list with 4
> choices, they hit continue or some such labled link, and then having
> passed all the session variables and making the decision in the next
> script it would forward them to the right page automatically, do I
> have to use meta tags to do this or is there some simple way e.g,
> "url=http://rightpage.php?SID" of course without the "'s except for in
> the actual url
Well, off the top of my head, you could have your "next script" do some
checking (if/switch statement) and then use a header-redirect that
would be based-upon one of the four user choices?
[PAGE 01] ---> [NEXT SCRIPT] (what did user choose? Using $_REQUEST)
---> header refresh ---> ([URL 01] || [URL 02] || [URL 03] || .... )
---> [URL --]
Just point your form to the script that does the checking, and then use:
header("Refresh: 0; URL=http://www.yourDomain.com/index.php?page=$var");
Does that make sense?
Of course, how you do the refresh all depends on how your site is
setup...
I am sure there are better ways though... :)
Micky
--
¸.·´¯`·.¸¸><(((º>`·.¸¸.·´¯`·.¸¸><((((º>
·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·..¸¸><((((º>
`·.¸¸><((((º>¸.·´¯`·.¸¸><((((º>
Navigation:
[Reply to this message]
|