PDA

View Full Version : Registration Database and restricted access


snowblitzing
06-18-2003, 03:44 AM
Hi I am very new to programming and had a few questions I currently am learnig Frontpage 2k3 and also how to read code my problem is 1. I have set up a registration page but I am unsure of the extact code to give it to send it to a database that is retrevable later for the restricted access pages(upon entering as a member. 2. Building the login to pull from that database to get to the member only pages her is some code I currently have. It is very simple: Any suggestions would be most helpful thanks
snow
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Member registration</title>
<meta name="Microsoft Theme" content="audioconnects1 1011">
<meta name="Microsoft Border" content="tlb, default">
</head>

<body>

<p>
<!--webbot bot="PurpleText" preview="NOTE - For security reasons, some web servers do not allow self-registration. When you save this page to a Web site, FrontPage will test for this capability, and show the file in the Component Errors summary in Report View if there is a problem. Self registration also is not allowed on Microsoft web servers that use Windows 2000 or Windows NT accounts to establish Web site permissions." --></p>
<p>
<!--webbot bot="PurpleText" preview="User Registration Form - When this page is configured properly and saved in a Root Web site on a web server, this form will allow users to register themselves as valid users of a FrontPage sub site on the same web server. The target sub site must exist when users submit this form. To configure this page, first edit the form's properties to set the name of the target sub site. Then use the Search/Replace feature to change all instances of the text [Name of your sub site] on this page with the title of the target sub site, such as &quot;New Ideas Web&quot; or &quot;Employee Discussion Web&quot;. Save this page in the Root Web site. Next, change the permissions for the target sub site using the Server command on the Tools menu. Make the permissions unique for the target sub site, and change the User access controls so that only registered users may enter." --></p>
<h1>AudioConnects User Registration</h1>
<hr style="color: #000000">
<p>You can automatically register yourself to be a user of [MembersHome] by filling out and submitting this form. Only registered users are allowed
into [MembersHome]. Choose a username for yourself (such as your last
name) and make sure this username contains no spaces. Also create a private
password. Together these will be your &quot;key&quot; into [MembersHome] from
now on. This information will be kept in a registration database that is
accessible only to the webmaster, not to ordinary users.</p>
<p>One of the main benefits of having a restricted access Web site like [MembersHome] is that authorized users don't have to keep typing their names
into form fields, such as when submitting an article to a discussion group,
because the web server already knows who they are. Similarly, other users can be
reasonably sure that you really sent the articles and postings attributed to
you, and that someone else didn't pretend to be you when posting. </p>
<p>After you are successfully registered, your web browser will ask you to type
in your username and password the first time you try to access [MembersHome]. The browser will remember this information for as long as it continues to
run, so you can access any document in [MembersHome] without being
asked for it again.</p>
<hr style="color: #000000">
<form method="POST" action="--WEBBOT-SELF--" onSubmit="">
<!--webbot bot="Registration" startspan S-Builtin-Fields="REMOTE_NAME HTTP_USER_AGENT" S-Service="MembersHome" U-Failure-URL="fail.htm" S-Username-Fields="Username" S-Password-Fields="Password Congrats" I-Password-Min-Length="6" B-Check-Password-Against-User="TRUE" U-File="formreg.htm" S-Format="HTML/BR" S-Label-Fields="TRUE" B-Reverse-Chronology="FALSE" U-Confirmation-Url="MembersHome/membershome.asp" -->
<!--webbot bot="Registration" endspan i-checksum="96" -->&nbsp;<h2>
Form Submission</h2>
<p>Make up a username:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ZipCode<br>
<input type="text" size="25" maxlength="256" name="Username"> <em>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="text" name="ZipCode" size="20"></em><br>
Make up a password:<br>
<input type="password" size="25" maxlength="256" name="Password"> <br>
Enter password again:<strong><br>
</strong>
<input type="password" size="25" maxlength="256" name="PasswordVerify"> <br>
Enter email address:<strong><br>
</strong><input type="text" size="25" maxlength="256" name="EmailAddress">
-- <em>used only for contact via.customers</em></p>
<h2><input type="submit" value="Register Me">
<input type="reset" value="Reset"></h2>
</form>
<hr style="color: #000000">
<h5>Author information goes here.<br>
Copyright © 2001 [OrganizationName]. All rights reserved.<br>
Revised: <!--webbot bot="TimeStamp" s-type="EDITED" s-format="%m/%d/%y" -->.</h5>

</body>

</html>

Kodo
06-18-2003, 07:21 AM
I really don't want to sound rude, but your best bet is to get rid of FP2003 if you want to get into more sophisticated functions in ASP. If you do code in ASP with something like Ultra-Edit or Editplus in the future, NEVER open those files up with FP2003, it WILL wreck the code.

Explaining to you what needs to be done would take more understanding of ASP then probably what you have after using FP2003.

I would like to suggest Beginning ASP by Wrox Press
and a nice primer set of lessons here
http://www.haneng.com/Lessons.asp

this should help you get the base that you need to accomplish your task without someone writing the whole thing for you.

Good Luck!:cool:

snowblitzing
06-18-2003, 04:41 PM
Thanks for the suggestions I will look into both of those programs and also the web site you gave me. I am a quick learner but yes I do know FP is not the best tool to use but I was using it mostly as a starting point. I have been doing more research on the question today went out to the bookstore and found some stuff on it as well as ASP thanks again snow:D