Forum Moderators: coopster

Message Too Old, No Replies

Redirect Script Needed

Redirect Script Needed

         

scottdev

6:45 pm on Oct 19, 2003 (gmt 0)



I need a simple php script that would redirect users to a web location based upon a number they put into a one (1) field mail form.

Ideally, the script would be able to reach out and read a flat-file table (the certificate number and the redirect location) that would store variables to determine where the redirect goes:


Company Name:

Certificate Number:

Date Issued:

Date Expired:

Certificate Value:

Redirect Location: http:www.someplace.com/some_directory/

Any help in locating such a script would be helpful.

Scott

jatar_k

8:40 pm on Oct 20, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld scottdev,

I don't know of a free script for that but there aren't to many steps involved. www.php.net is the best resource for php. Try hotscripts.com for ready made scripts.

For accessing posted variables

HTTP POST variables: $_POST [ca.php.net]

For working with files

Filesystem functions [ca.php.net]
fopen [ca.php.net]
fclose [ca.php.net]
fwrite [ca.php.net]
fread [ca.php.net]

for redirecting
header [ca.php.net]