|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Re: Tutorial
Hi
you need to add that code in register.asp file Cheers Jayesh Jain |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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> |
|
#5
|
|||
|
|||
|
Did you give it a .asp extension and put it on a webserver (either PWS or IIS)?
|
|
#6
|
||||
|
||||
|
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, |
|
#7
|
|||
|
|||
|
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...
![]() |
|
#8
|
|||
|
|||
|
I still need help with the members area tut...
Last edited by Fusion : October 18th, 2002 at 06:06 PM. |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
Here's the login page. Just change the extension to .asp
|
|
#11
|
|||
|
|||
|
Here's the register page. Just change the extension to .asp
Last edited by aspnewbie : December 29th, 2002 at 12:39 PM. |
|
#12
|
|||
|
|||
|
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. |
|
#13
|
|||
|
|||
|
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..... |
|
#14
|
|||
|
|||
|
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. |
|
#15
|
|||
|
|||
|
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. |
|
#16
|
|||
|
|||
|
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.
|
|
#17
|
|||
|
|||
|
Quote:
check out brinkster.com, if they r still running? |