Code to redirect based on form field entry

M

MarkB

Have a unix server site and would like to have a login page that will
redirect to a specific page based on the input (e.g. a username) into a
form. Purpose being that when a client enters their username, they will be
directed to a page that is in a password protected folder which will cause
the site login/password prompt to appear before they can proceed. We have a
limited number of users, (less than 10) so we don't need to maintain a
database, we could just redirect off of a limited list in the code if
possible.

How best to setup this user input field to redirect as above?
 
M

MarkB

I didn't see anything there but along those lines. If anyone knows of
anything to accomplish this task please let me know.
 
E

e

create a button using this HTML:
<input type="button" onCLICK= <% Response.Redirect("[address of page]") %>
/>
 
S

Stefan B Rusynko

OP is on a Unix server which does not support ASP

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| create a button using this HTML:
| <input type="button" onCLICK= <% Response.Redirect("[address of page]") %>
| />
| "MarkB" <[email protected]> escreveu na mensagem
| | >I didn't see anything there but along those lines. If anyone knows of
| >anything to accomplish this task please let me know.
| >
| > | >> Try looking at some of the scripts here http://www.scriptarchive.com and
| >> here http://cgi.resourceindex.com/
| >>
| >>
| >> | >>> Have a unix server site and would like to have a login page that will
| >>> redirect to a specific page based on the input (e.g. a username) into a
| >>> form. Purpose being that when a client enters their username, they will
| >>> be directed to a page that is in a password protected folder which will
| >>> cause the site login/password prompt to appear before they can proceed.
| >>> We have a limited number of users, (less than 10) so we don't need to
| >>> maintain a database, we could just redirect off of a limited list in the
| >>> code if possible.
| >>>
| >>> How best to setup this user input field to redirect as above?
| >>>
| >>
| >>
| >
| >
|
|
 
E

e

Try getting a free server like in here, to host PHP.
http://9999mb.com/
In there, register. Then, put in the server a file named redir.php, with
ONLY this code:

<?php
header( 'Location: [page to redirect to]' ) ;
?>

Access your normal server, and in the redirect page, put this: <script
src="[address where is the php page located]" />
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top