Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Multiple password/redirect script
Old 09-05-2007, 04:46 AM Multiple password/redirect script
Skilled Talker

Posts: 90
Trades: 0
Hey all,

I'm looking for a way to have one simple form field on a page and when a person enters a password, it redirects them to a site I decide. But the catch is I'd like to have multiple passwords and each one sends the person to a different page.

Any ideas?

Thanks.
msaz87 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-05-2007, 04:19 PM Re: Multiple password/redirect script
Super Talker

Posts: 130
Trades: 0
I would set up a database table with 3 fields. A unique id, password, redirection url. Then when the user submits the password, sanitize the post and select the url where password equals the submitted password. The use the header() function to redirect the user to the page you wish.
__________________
flann

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
flann is offline
Reply With Quote
View Public Profile
 
Old 09-05-2007, 05:44 PM Re: Multiple password/redirect script
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
nice 'n' easy!

if you want i could script this for you easy!

just drop me a PM or a email or just vhat to me on msn
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Multiple password/redirect script
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11124 seconds with 12 queries