ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old October 17th, 2002, 06:32 PM
Fusion Fusion is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 Fusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question members area tutorial

Hi,
I'm fairly new to ASP, and tried that ASP tutorial. After the inc_dbconnection.asp file, you create the registration form. What do you save it as? Where do add the stuff after it says 'Of course, this is plain html. Let's add some asp...'????

Thanks in advance,
Rich

Reply With Quote
  #2  
Old October 17th, 2002, 09:33 PM
JayeshJain JayeshJain is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Auckland,New Zealand
Posts: 31 JayeshJain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Re: Tutorial

Hi

you need to add that code in register.asp file

Cheers
Jayesh Jain

Reply With Quote
  #3  
Old October 18th, 2002, 08:47 AM
Fusion Fusion is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 Fusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I'm confused... Could somebody please give me the register.asp and the form code, so that I can work with it. Also, what is the form saved as?

Thanks,
Rich

Reply With Quote
  #4  
Old October 18th, 2002, 11:21 AM
Fusion Fusion is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 Fusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What's going on!? I created a very simple ASP script, which just displayed the time. I don't see any problem with it, but all it does is show non-asp text. All it shows is "Date Time Now Month Month Name Day Year Weekday Weekdayname Hour Minute Second

Here it is:

<HTML>
<BODY>
Date <% =date %>

Time <% =time %>

Now <% =now %>

Month <% =month(now) %>

Month Name <% =monthname(month(now)) %>

Day <% =day(now) %>

Year <% =year(now) %>

Weekday <% =weekday(now) %>

Weekdayname <% =weekdayname(weekday(now)) %>

Hour <% =hour(now) %>

Minute <% =minute(now) %>

Second <% =second(now) %>

<% =weekdayname(weekday(now)) %> <% =monthname(month(now)) %> <% =day(now) %> <% =year(now) %>

</BODY>
</HTML>

Reply With Quote
  #5  
Old October 18th, 2002, 02:58 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
Did you give it a .asp extension and put it on a webserver (either PWS or IIS)?

Reply With Quote
  #6  
Old October 18th, 2002, 03:24 PM
adurstew's Avatar
adurstew adurstew is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Charlotte, NC
Posts: 114 adurstew User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 33 sec
Reputation Power: 16
Send a message via AIM to adurstew Send a message via Yahoo to adurstew
back track.

Enter one variable at a time and run the script after each one you enter. once it won't run anymore you found your problem.

hth,
__________________
Andrew J Durstewitz
ASP.NET,VB.NET,SQL Developer

http://madashellnc.blogspot.com

Reply With Quote
  #7  
Old October 18th, 2002, 05:35 PM
Fusion Fusion is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 Fusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Okay, I took them all away except the first one. It displays 'Date' that's all! It's as though it isn't recognising the asp... and yeah my host does allow it...

Reply With Quote
  #8  
Old October 18th, 2002, 06:02 PM
Fusion Fusion is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 Fusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I still need help with the members area tut...

Last edited by Fusion : October 18th, 2002 at 07:06 PM.

Reply With Quote
  #9  
Old October 18th, 2002, 06:23 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
I ran your script on my PWS and this is what I got:

Date 18/10/02 Time 6:36:45 PM Now 18/10/02 6:36:45 PM Month 10 Month Name October Day 18 Year 2002 Weekday 6 Weekdayname Friday Hour 18 Minute 36 Second 45FridayOctober182002

so it's not your code.

Stupid question, but just trying to rule out the obvious problems first. You are typing in http:// pathtoyourfile.asp right as opposed to just opening your script in your web browser?

As for the tut, he seems to give you the full script for the register.asp and login.asp pages. He adds some vbscript to the register form and saves it as register.asp (so there is no separate html page). He does the same thing for the login form. The other page that you have to create is the default.asp page.

Not seeing the error - can you give me the line number? It's on the login page???

Last edited by aspnewbie : October 19th, 2002 at 11:43 AM.

Reply With Quote
  #10  
Old October 18th, 2002, 06:45 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
Here's the login page. Just change the extension to .asp
Attached Files
File Type: txt login.txt (2.6 KB, 747 views)

Reply With Quote
  #11  
Old October 18th, 2002, 06:47 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
Here's the register page. Just change the extension to .asp
Attached Files
File Type: txt register.txt (3.1 KB, 676 views)

Last edited by aspnewbie : December 29th, 2002 at 01:39 PM.

Reply With Quote
  #12  
Old October 18th, 2002, 07:12 PM
Fusion Fusion is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 Fusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Hey thanks alot, ... But I'm still confused... I'm sorry to be so much trouble, but could you give me every file please? Thank you for helping me out so much.

Just one more question... PWS. I have been reading about it for ages, and get loads of information... yet no download! I want it for XP, seeing as I can't use it on my windows me pc.

I think it's called IIS as well, but I still can't find the download! Any help would be GREATLY appreciated

Last edited by Fusion : October 18th, 2002 at 07:30 PM.

Reply With Quote
  #13  
Old October 18th, 2002, 09:40 PM
fakker fakker is offline
The calm b4 the storm
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Manchester, UK
Posts: 404 fakker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 16
Send a message via Yahoo to fakker
u should have IIS already with XP??

It's in Control Panel, then "Administrative Tools" then "Internet Information Services" ...

...you can set up all your localserver stuff from there.....
__________________
Matt 'Fakker' Facer

mattfacer.com

Reply With Quote
  #14  
Old October 18th, 2002, 09:56 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
Personal Web Server came with Windows 98 and IIS with Windows 2000 and Windows XP, I believe.

PWS wasn't part of the typical install in my case. I had to go back and stick in the cd and specifically install it. Same with installing IIS for Windows 2000. I don't know about Windows XP, but I would think it would be similar.

Once you get it up and running, you save your files in the C:\inetpub\wwwroot folder and then type in http://localhost/name of your file.asp to run your asp files.

By the way, another great article that really helped me learn asp was one about building an FAQ database with MS Access http://www.webmasterbase.com/article/536.

The other page is the default.asp page and it simply consists of the following. Just cut and paste and save as default.asp

Code:

<% 
If Session("loggedin") <> True Then 
Response.Redirect "login.asp" 
%> 

<html> 
<head> 
<title>Members Area</title> 
</head> 

<body> 
<h1>Members Area</h1> 
<p>Welcome to our members area!</p> 
</body> 
</html> 



That's it! There's just the three pages.

Last edited by aspnewbie : October 19th, 2002 at 03:45 PM.

Reply With Quote
  #15  
Old October 19th, 2002, 09:26 AM
Fusion Fusion is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 7 Fusion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Talking

Hey,
Thanks for all your help

Rich

PS: Does anybody know of a webhost, that hosts for free, or cheap, allows ASP, and gives over 30 MB of space? Cheers.

Reply With Quote
  #16  
Old December 29th, 2002, 01:42 PM
aspnewbie aspnewbie is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: The Great White North
Posts: 361 aspnewbie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 58 m 50 sec
Reputation Power: 16
Send a message via MSN to aspnewbie
I was just going over the tutorial again myself and noticed that the register.asp page is the same as the login.asp page! I have now got the correct code for the register.asp page from developerfusion.com and have replaced the earlier register.txt file with the correct code. Sorry, Fusion for any confusion! Will alert devarticles too to the mistake in their article.

Reply With Quote
  #17  
Old December 30th, 2002, 11:48 PM
Ben Rowe
Guest
Dev Articles Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Quote:
Originally posted by Fusion
Hey,
Thanks for all your help

Rich

PS: Does anybody know of a webhost, that hosts for free, or cheap, allows ASP, and gives over 30 MB of space? Cheers.


check out brinkster.com, if they r still running?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > members area tutorial


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap