using input to redirect to another URL

  • Thread starter Thread starter traderrik
  • Start date Start date
T

traderrik

I'm using FP 2003, and my site is hosted on a Linux server with FP extension
installed. Once at my main site, I'd like for a visitor to be able to enter
an alphanumeric code and have it redirect to another URL - depending on the
code entered. Any suggestions on the best way to accomplish this will be
much appreciated!

rick
 
: I'm using FP 2003, and my site is hosted on a Linux server
with FP extension
: installed. Once at my main site, I'd like for a visitor
to be able to enter
: an alphanumeric code and have it redirect to another URL -
depending on the
: code entered. Any suggestions on the best way to
accomplish this will be
: much appreciated!

Any more information?

Is the code part of (or could be part of) the target URL?
-A simple script can do this one

A couple of codes?
-Again a simple script with hard coded codes/targets

Lots codes?
-database
 
Thanks, Mike. Yes, the code can be the subfolder name of the target web;
e.g. inputting the code "id1001" or "ID1001" should direct to
myweb.com/id1001

And there will be at least 100 codes & corresponding URLs. At this time,
the idea of using script(s) appeals to me more than a database.

rick
 
I should also mention that my hosting Linux server uses cgi scripts ( i had
a choice of cgi OR asp servers.)

Thanks again,
rick
 
You can do it w/ either ASP or CGI
- in both cases using hand coded server side script
(or painfully w/ client side script)

IMHO
a DB w/ ASP server side code will be easier to maintain

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


|I should also mention that my hosting Linux server uses cgi scripts ( i had
| a choice of cgi OR asp servers.)
|
| Thanks again,
| rick
|
|
| | > Thanks, Mike. Yes, the code can be the subfolder name of the target web;
| > e.g. inputting the code "id1001" or "ID1001" should direct to
| > myweb.com/id1001
| >
| > And there will be at least 100 codes & corresponding URLs. At this time,
| > the idea of using script(s) appeals to me more than a database.
| >
| > rick
| >
| > | >> | >> : I'm using FP 2003, and my site is hosted on a Linux server
| >> with FP extension
| >> : installed. Once at my main site, I'd like for a visitor
| >> to be able to enter
| >> : an alphanumeric code and have it redirect to another URL -
| >> depending on the
| >> : code entered. Any suggestions on the best way to
| >> accomplish this will be
| >> : much appreciated!
| >>
| >> Any more information?
| >>
| >> Is the code part of (or could be part of) the target URL?
| >> -A simple script can do this one
| >>
| >> A couple of codes?
| >> -Again a simple script with hard coded codes/targets
| >>
| >> Lots codes?
| >> -database
| >>
| >>
| >>
| >
| >
|
|
 
I agree that a db would be preferred, and that db technology
could be extended to track usage etc. This would also reduce
the chances of guessing someone else's codes.

However, if the id is part of the url, it could be done w/o
a database- even using clientside javascript.


: You can do it w/ either ASP or CGI
: - in both cases using hand coded server side script
: (or painfully w/ client side script)
:
: IMHO
: a DB w/ ASP server side code will be easier to maintain
:
: --
:
: _____________________________________________
: SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
: "Warning - Using the F1 Key will not break anything!" (-;
: _____________________________________________
:
:
: |I should also mention that my hosting Linux server uses
cgi scripts ( i had
: | a choice of cgi OR asp servers.)
: |
: | Thanks again,
: | rick
: |
: |
: | : | > Thanks, Mike. Yes, the code can be the subfolder name
of the target web;
: | > e.g. inputting the code "id1001" or "ID1001" should
direct to
: | > myweb.com/id1001
: | >
: | > And there will be at least 100 codes & corresponding
URLs. At this time,
: | > the idea of using script(s) appeals to me more than a
database.
: | >
: | > rick
: | >
message
: | > : | >> : | >> : I'm using FP 2003, and my site is hosted on a Linux
server
: | >> with FP extension
: | >> : installed. Once at my main site, I'd like for a
visitor
: | >> to be able to enter
: | >> : an alphanumeric code and have it redirect to
another URL -
: | >> depending on the
: | >> : code entered. Any suggestions on the best way to
: | >> accomplish this will be
: | >> : much appreciated!
: | >>
: | >> Any more information?
: | >>
: | >> Is the code part of (or could be part of) the target
URL?
: | >> -A simple script can do this one
: | >>
: | >> A couple of codes?
: | >> -Again a simple script with hard coded codes/targets
: | >>
: | >> Lots codes?
: | >> -database
: | >>
: | >>
: | >>
: | >
: | >
: |
: |
:
:
 
Back
Top