| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2005 Location: East Yorkshire, England
Posts: 2,689
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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: <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> 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> ????: NamePros.com http://www.namepros.com/programming/113480-vbscript-login-page-help.html I just copied this from the 'Web Development' forum because i noticed this forum, hopefully I will get some help. |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
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 01:00 PM |
| Login page help! | Barrucadu | Website Development | 0 | 08-07-2005 01:19 PM |
| Good Article: An SEO Checklist | Ferman | Search Engines | 2 | 05-28-2005 11:51 AM |
| Page Rank 5 Site with Banner and Text Links!! MUCH MORE! High Traffic Sites | ebizcraftsman | Advertising & SEO Services | 0 | 12-09-2004 10:43 PM |
| Prime .INFO Sale - Part Five - 122 Domains Including StockResearch.info | Duke | Domains For Sale - Make Offer | 2 | 02-22-2004 06:07 PM |