Page 1 of 1

need to create a redirect.....

Posted: Tue Sep 29, 2009 1:16 pm
by jmas49
Hello Folks!

I need to create a redirect page that will allow someone to enter a reference code in a form, and when they click submit, the reference code will be appended to a specific website address and the page will open.

Example:

the reference code is: ABCD1234

the website address is: http://www.[SITE].com

the appended address is: http://www.[SITE].com/ABCD1234

When they enter the code and click submit, the appended address will open.

Any ideas?

All help will be greatly appreciated.

Re: need to create a redirect.....

Posted: Tue Sep 29, 2009 1:37 pm
by requinix
You need a PHP page to receive the form. It then validates the code and redirects.

Re: need to create a redirect.....

Posted: Tue Sep 29, 2009 2:08 pm
by raysance
you can create a form with a textfield and then using post and header('Location:'), you can easily call the desired page.

Re: need to create a redirect.....

Posted: Tue Sep 29, 2009 2:26 pm
by jmas49
One other thing.

The website page link needs to be hidden from view
(not "fishy" reason, I just prefer that it be that way!),
so I'm thinking I need to have the "calculations" done
on a php page that doesn't appear to the user.