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, 05:32 PM
Fusion Fusion is offline
Junior Member
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, 08: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: 8
Re: Tutorial

Hi

you need to add that code in register.asp file

Cheers
Jayesh Jain

Reply With Quote
  #3  
Old October 18th, 2002, 07:47 AM
Fusion Fusion is offline
Junior Member
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, 10:21 AM
Fusion Fusion is offline
Junior Member
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, 01: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: 8
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, 02: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: 8
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, 04:35 PM
Fusion Fusion is offline
Junior Member
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, 05:02 PM
Fusion Fusion is offline
Junior Member
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 06:06 PM.

Reply With Quote
  #9  
Old October 18th, 2002, 05: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: 8
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 10:43 AM.

Reply With Quote
  #10  
Old October 18th, 2002, 05: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: 8
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, 460 views)

Reply With Quote
  #11  
Old October 18th, 2002, 05: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: 8
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, 404 views)

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

Reply With Quote
  #12  
Old October 18th, 2002, 06:12 PM
Fusion Fusion is offline
Junior Member
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 06:30 PM.

Reply With Quote
  #13  
Old October 18th, 2002, 08: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: 8
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, 08: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: 8
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 02:45 PM.

Reply With Quote
  #15  
Old October 19th, 2002, 08:26 AM
Fusion Fusion is offline
Junior Member
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, 12: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: 8
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, 10: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


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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 7 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek