VBScript Login Page Help!

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
NamecheapNamecheap
Watch

Barrucadu

Established Member
Impact
64
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: 
<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.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Member card: see how many threads a member started
The member card now shows a Threads number, right after Posts. The member card is the box that opens when you point at a name. Profile...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back