Current location: Hot Scripts Forums » General Community » Script Requests » Redirection script using a code or password?


Redirection script using a code or password?

Reply
  #1 (permalink)  
Old 03-13-04, 11:30 AM
PiXie_MeaT PiXie_MeaT is offline
New Member
 
Join Date: Jan 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question Redirection script using a code or password?

I need a script which will redirect and allow the user to view a single page by entering a 6digit code, which has been emailed to them in a form box on the home page..

e.g. they they the code "366542" into the textbox and press enter to be directed to http://www.homepage.com/pages/366542.html

anyone know of such a script?
Reply With Quote
  #2 (permalink)  
Old 03-13-04, 05:58 PM
dcooldude_1's Avatar
dcooldude_1 dcooldude_1 is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Sidney
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
try this

function doPassCheck()
{
codenum = prompt('Input your 6 digit code here:','123456');
window.location = "http://www.where.ever.com/somefolder/"+codenum+".html";
}

if you need more help, let me know.....
__________________
===================================
Dcooldude_1

Site 1: http://ih.sidneyps.com/hs/spokesman/
Site 2: http://www.webhex.net/

Go to http://www.chatzy.com/?132627185966 this is my chat area...
the password is: progtalk
===================================
Reply With Quote
  #3 (permalink)  
Old 03-17-04, 11:32 AM
COAD COAD is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Script

Replace the "Page" with the page u want it to redirect to.
<?php
$pass = $_GET["password"]; // Retrieve $pass variable from HTTP's GET array
if ($password == "pass") include("page3.php");
if ($password == "pass") include("page2.php");
if ($password == "pass") include("page1.php");

?>

Hope this helps
Reply With Quote
  #4 (permalink)  
Old 07-02-04, 04:33 AM
Seben Seben is offline
New Member
 
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I am totally new to all this.
Where would I enter a piece of code like that?

This sounds like something i am looking for
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
script to generate random username, password, etc. mangled Script Requests 1 01-19-04 07:15 PM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM
perl/cgi newbie. hangman.cgi script adding html-like code on web and other trouble Arowana Perl 12 11-13-03 02:24 PM


All times are GMT -5. The time now is 10:58 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.