Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old December 19th, 2001, 05:41 AM
tjmcgrath tjmcgrath is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Durham, UK
Posts: 20 tjmcgrath User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 21 sec
Reputation Power: 0
Send a message via MSN to tjmcgrath
.htaccess login

Hello i am trying to use this script for .htaccess login but after i added a image button it does not seem to login can you help please. you can login with

test : 12345

<!-- Beginfunction Login(form) {
var username = form.username.value;
var password = form.password.value;
var server = form.server.value;
if (username && password && server) {
var htsite = "http://" + username + ":" + password + "@" + server;
window.location = htsite;
}
else {
alert("Please enter your username and password.");
}
}
// End -->
</script>
</HEAD>
<BODY>
<form name=login><p align="left"><input type="hidden" name="server" value="impulsetech.co.uk/admin/"><font face="Arial" size="2"><input type=text name=username size=11 style="background-color: #FFFFFF; color: #BCBCE6; border: 1 solid #BCBCE6"><br>
<input type=password name=password size=11 style="background-color: #FFFFFF; color: #BCBCE6; border: 1 solid #BCBCE6"><input type="image" src="impulsetech.co.uk/images/go_button.gif" value="Login!" onClick="Login(this.form)" name="button" width="24" height="24"></font>
</form>

Thanks Tim

Reply With Quote
  #2  
Old January 1st, 2002, 07:02 PM
Jonathon's Avatar
Jonathon Jonathon is offline
T-Shirt Tragic
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2001
Location: Melbourne, Australia
Posts: 836 Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level)Jonathon User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 8 h 16 m 15 sec
Reputation Power: 215
Send a message via Skype to Jonathon
rewrite your form tag like this :-

<form name="login" onsubmit="return false">

hope this works for you.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > .htaccess login


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway