Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 10
Trades: 0
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
 
 
Register now for full access!
Old 12-09-2004, 10:01 AM
theshiznit's Avatar
Registered User

Posts: 214
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





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



Page generated in 0.34097 seconds with 12 queries