Reply
dreamweaver
Old 12-08-2004, 10:55 PM dreamweaver
Novice Talker

Posts: 10
I am trying to use dreamweaver to build my new site. First of all I am having trobule using forsm. Like the one template comes with place to enter user name and password, and then a an arrow button. How do I make it all work so I can link it a staff only page?

Matt
msett is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 12-09-2004, 10:01 AM
theshiznit's Avatar
Registered User

Posts: 215
try doing using JavaScript!

Code:
function login()
{
var pass = document.forms.f.pass.value.setLowerCase();
var user  =  document.forms.f.user.value.setLowerCase();

if (( user == "msett" ) && ( pass == "msett" )) window.location = "staff.html";
else {
alert ( "Password or username is incorrect");

document.forms.f.pass.value = "";
document.forms.f.user.value = "";
    }
}


now in HTML write.....

<input type="text" name="user">
<br><br><input type="password" name="pass">
<br><br><input type="button" name="submit" value="login" onClick="login(this.form)"
theshiznit is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to dreamweaver
 

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

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


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11307 seconds with 12 queries