[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-07-2005, 12:39 PM   #1 (permalink)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,731
78.50 NP$ (Donate)

Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold


VBScript Login Page Help!

OK, ive just added a members section on my site (its a wip, dont expect good code) and ive made a simple login form and vbscript page that validates the user, there are 3 problems,
1: Document.Write dosnt work in firefox so if possible use a different command
2: When you click login you get taken to a white page and nothing happenes
3: If you could make a .mdb database for the users that would be great, ATM there is only 1 username/password combination.

OK, heres the form code (on index.htm):
Code:
<form method="GET" action="verify.htm">
<p>
<font size="1" face="Verdana">Username:
<input type="text" name="uname" size="20" style="font-family: Verdana; font-size: 1em"> <br>
Password:&nbsp;
<input type="text" name="pword" size="20" style="font-family: Verdana; font-size: 1em">
</font>
</p>
<p>
<font face="Verdana" size="1">
<input type="submit" value="Login" style="font-family: Verdana; font-size: 1em"></font></p>
</form></p>
and heres the VBScript page code (on verify.htm):
Code:
<script language = "vbscript">
	dim username
	dim password
	dim username2
	dim password2

	username = "username"
	password = "password"
	username2 = Request.QueryString("uname")
	password2 = Request.QueryString("pword")


	if password2 == password then
		if username2 == username then
			document.write("<p align="center">Username and Password accepted!</p><p align="center"><a href='http://www.walkerweb.tk/MembersArea/Main/index.htm'>Continue to the Members Area</a>.</p>")
		else 
			document.write("<p align="center">Username or Password incorrect!</p><p align="center"><a href='http://www.walkerweb.tk/MembersArea/Login/index.htm'>Return to Login Page</a>.</p>")
		end if
	else 
		document.write("<p align="center">Username or Password incorrect!</p><p align="center"><a href='http://www.walkerweb.tk/MembersArea/Login/index.htm'>Return to Login Page</a>.</p>")
	end if
</script>
can anyone help me? as you can see the only username password combo ATM is "Username" and "Password", if you could make a .mdb to fix that it would be great but mainly I would like it to work in Firefox and just work in general. Please make a .ZIP of the fixed files and tell me the URL, either that or just post the code here. Please help.

I just copied this from the 'Web Development' forum because i noticed this forum, hopefully I will get some help.
Barrucadu is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A little better login script (with MySQL) - and page protection with session controls mholt Programming 9 08-08-2005 12:00 PM
Login page help! Barrucadu Website Development 0 08-07-2005 12:19 PM
Good Article: An SEO Checklist Ferman Search Engines 2 05-28-2005 10:51 AM
Page Rank 5 Site with Banner and Text Links!! MUCH MORE! High Traffic Sites ebizcraftsman Advertising & SEO Services 0 12-09-2004 09:43 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 02:55 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85