is a custom form handler what I need

J

JMc..

HI - I'm looking for a way to make a page with a form on it so that when you submit with a predefined correct answer, you go to a "correct" page, or to an "incorrect" page if your form input does not match.

I'm doing this to add a layer of security to a personal website so that only people who know me can access certain pages. I thought I try to do this by reffering to a page with a few questions in a form on it.

When they click sumbit, I'd like for the server to check to see if the answers match up to the correct values. If they match up, I'd send them to another page in a subdirectory. If the are incorrect, they would be sent to a "sorry, but..." kind of page.

Anyone have any thoughts if a form and custom form handler is the easiest way to handlel this? I have a web site hosted by a comercial web hosting company.

thanks much,
 
K

Kevin Spencer

A custom form handler is the ONLY way to implement this. Unfortunately, it
does not fall within the bounds of what wold be considered "common" or
"widespread" functionality. The good news is, it would be a fairly simple
ASP solution, assuming that your web is hosted on a Windows server. You can
find some beginner-level articles and tutorials for ASP on my web site:
http://www.takempis.com.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

JMc.. said:
HI - I'm looking for a way to make a page with a form on it so that when
you submit with a predefined correct answer, you go to a "correct" page, or
to an "incorrect" page if your form input does not match.
I'm doing this to add a layer of security to a personal website so that
only people who know me can access certain pages. I thought I try to do
this by reffering to a page with a few questions in a form on it.
When they click sumbit, I'd like for the server to check to see if the
answers match up to the correct values. If they match up, I'd send them to
another page in a subdirectory. If the are incorrect, they would be sent to
a "sorry, but..." kind of page.
Anyone have any thoughts if a form and custom form handler is the easiest
way to handlel this? I have a web site hosted by a comercial web hosting
company.
 
A

Andrew Murray

What platform are you hosted on?

Unix/Linux?
Windows?

There are free serverside form handler scripts around that have both the "OK"
page and the "Not OK" page.
Thing is not all the "OK" pages allow for listing the details a person just
submitted (in a similar way to the Frontpage confirmation page) All they are in
most circumstances is a "thanks, your data has been submitted" and nothing more.

Note these form handlers are mostly (if not all) designed only to send the
contents of the form to an email address.

A good site to start with is www.hotscripts.com they have scripts from most
popular types eg ASP, Perl, PHP, ASP.Net, ASPX etc.


However, your solution is a little more complex.

You're saying you want a 'question and answer survey' type thing to verify who a
person is etc.... you could simplify this and just make a log on page or
something for the users you allow.

www.webwizard.com has a password script that is simple enough to set up.
www.frontpagewiz.com (detailed FP tutorial site) actually has details
instructions for this script specifically.

If you're going for the 'question and answer' type thing as a security measure
you'll have to have a script that compares preset values in the database with the
values entered by the user. (using ASP and access database for the simplest set
up or MYSQL or something for a more secure set up - depending on how 'critical'
the pages are you want to protect.

You could use sub-webs or something in Frontpage and password protect
these.....this might be too simple for your purposes - I don't knw.

In the end you may need to write your own or obtain a custom written script for
the platform you're hosted on.


JMc.. said:
HI - I'm looking for a way to make a page with a form on it so that when you
submit with a predefined correct answer, you go to a "correct" page, or to an
"incorrect" page if your form input does not match.
I'm doing this to add a layer of security to a personal website so that only
people who know me can access certain pages. I thought I try to do this by
reffering to a page with a few questions in a form on it.
When they click sumbit, I'd like for the server to check to see if the answers
match up to the correct values. If they match up, I'd send them to another page
in a subdirectory. If the are incorrect, they would be sent to a "sorry, but..."
kind of page.
Anyone have any thoughts if a form and custom form handler is the easiest way
to handlel this? I have a web site hosted by a comercial web hosting company.
 
Top