Script for recieving email address and details, then forward to webpage

N

NZed

I have an application where people wishing to enter my site and wish to
download software or in other cases simply enter my website to gain
information.

1 To download software
2 To enter a specific page....it could be pricing.

These are two different applications for different websites.

I have seen on other sites where you can click on a link and be asked to
fill in details before you can enter the webpage.
eg

Name
email address etc

I am interested in two options
After a fill in page comes up and details filled in....

1 to send them a password or take them to the webpage directly
I can see the benefit of a password as they have to check there email to
recieve the password...ie no false email addresses.

2 simply take their details and take them directly to the webpage.

Any suggestions welcome.

Looking forward to your replies.

NZed
 
T

Thomas A. Rowe

Option 1 can be handled with FP forms, where the user completes the form,
then you take them to a custom confirmation page which give them access to
the files to download, etc.

Option 2 requires a custom written application using a service-side
scripting language such as ASP, ASP.net, PHP, etc. to accomplish.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
J

Jim Buyens

This requires more code than I can explain in a newsgroup
message, but if you have Microsoft Office FrontPage 2003
Inside Out, I suggest you look at Insider Extra 14, which
is on the Companion CD. This includes:

o A set of ASP self-registration pages that don't
require an e-mail response.
o A set of ASP.NET self-registration pages that do
require an e-mail response.

This Insider Extra includes all the Web pages and source
files, as well as explanations of how they work and how
to install them.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
N

NZed

Jim ...interesting responce
Do I have to have FP 2003 ?
I have PF 2002
But considering the option of upgrading.

Inside Extra 14.......on the companion CD.
Can I download this off the net and use FP2002 ?

Thanks for your responce.
NZed
 
N

NZed

Thanks for your reply Thomas.
Option 1 is probably my quick fix option..
can you give me a basic outline or a link to do this.
in the meantime I will have a play.

The option 2...as you probably know ...I am not familiar enough with ASP
yet.

Building webpages started as a hobby and is now building into more of a
requirement for our business.

Any recomendations for a place to start learning ASP ? For a real beginner !

Thanks again
NZed
 
T

Thomas A. Rowe

1. File Menu | New | Page | Form Wizard or feedback form, under the Form
Options you can indicate a custom confirmation page, they you can design and
add any links, etc.

2. I have also found http://www.asp101.com Samples to be helpful.

--

==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, Forums, WebCircle,
MS KB Quick Links, etc.
==============================================
 
N

NZed

Thanks Thomas for your swift reply.
As I have been busy for a while ...I will be getting back into developing
my website. Hence you will probably see more of me on line with more
questions.
ASP is one project I will have to work on.
THanks
NZed
 
J

Jim Buyens

NZed said:
Jim ...interesting responce
Do I have to have FP 2003 ?
I have PF 2002
But considering the option of upgrading.

Inside Extra 14.......on the companion CD.
Can I download this off the net and use FP2002 ?

You use FP2002 to work with the ASP version, but I'm not so sure
about the ASP.NET version. FP2002 is usually OK with ASP.NET
code but I wouldn't want to make any firm promises.

As to downloads, no, you have to buy the book.

If you have Microsoft FrontPage Version 2002 Inside Out, you
can find an earlier version of the ASP-based self-registration
system in Chapter 39, which is part of the Bonus material on the
companion CD.

Both ASP and ASP.NET have a Session object where you can
temporarily store information about each current visitor. So:

o Your login page does whatever it does to validate the user,
and then it sets Session("LoggedIn") ="Y" or whatever.

o Each page you want to secure will need to be an ASP page,
and it will need to check the Session("LoggedIn") variable.
If that Session variable is anything but "Y", some code
redirects the visitor to the login page.
Typically, you would write this code once, and then use an
SSI Include to add it to each secure Web page.

o The login page, of course, matches the username and password
that the visitor supplies against a database. If there's a match,
it sets Session("LoggedIn") = "Y" and then the visitor can
access secure pages.

o If the login page can't match the username and password that
the visitor supplies, it repeats the prompt. Usually, at this
point, you also provide a way for the visitor to create
their own database record (that is, to self-register).

o If you want a mail-back verification, you add the database
record, but with a status code that means "unconfirmed". You
also pick a large random number, a GUID, or some other oddball
string that the visitor needs to submit. Then, you send the
visitor a piece of mail containing a URL like
http://www.yoursite.com/yourweb/verify.asp?cnf=789349780123.
When the verify.asp page, runs, it looks up the cnf= value
and changes the status of that login record from "unconfirmed"
to "confirmed".

For more info, try:
MSKB article 301464
HOW TO: Use Simple ASP Code to Password Protect Your ASP Pages
http://support.microsoft.com/default.aspx?scid=kb;en-us;301464

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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

Top