need to create a redirect.....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jmas49
Forum Newbie
Posts: 2
Joined: Tue Sep 29, 2009 1:12 pm

need to create a redirect.....

Post 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.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

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

Post by requinix »

You need a PHP page to receive the form. It then validates the code and redirects.
raysance
Forum Newbie
Posts: 5
Joined: Tue Sep 29, 2009 1:25 pm

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

Post by raysance »

you can create a form with a textfield and then using post and header('Location:'), you can easily call the desired page.
jmas49
Forum Newbie
Posts: 2
Joined: Tue Sep 29, 2009 1:12 pm

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

Post 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.
Post Reply