home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Website Question

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2791
Discussions: 200,969, Posts: 2,379,698, Members: 246,334
Old March 9th, 2005, 07:55 PM   Digg it!   #1 (permalink)
Member
 
redfoxstorm's Avatar
 
Join Date: Feb 2005
Posts: 386
Talking
Website Question

What does it take to make a login page that will allow access to other pages on a website? Alot, a lil? Should I just forget about it?
__________________
For the Emperor, there were the Jedi. For the Evil Empire of Microsoft, there is a penguin.
redfoxstorm is offline   Reply With Quote
Old March 9th, 2005, 08:09 PM     #2 (permalink)
Ultimate Member
 
FatalException's Avatar
 
Join Date: Jun 2004
Location: Indianapolis, Indiana
Posts: 1,398
Depends on what you are trying to restrict. If you just want to restrict access to a photo, an HTML document, or a file of some other sort, it is easy. If you're trying to build something like TechIMO's forums pages where things are customized for each user, things can be a bit more difficult.
__________________
Logic shall prevail.
FatalException is offline   Reply With Quote
Old March 9th, 2005, 08:15 PM     #3 (permalink)
Member
 
redfoxstorm's Avatar
 
Join Date: Feb 2005
Posts: 386
yeah, I don't want to do something like a forum just yet. I would like to. But I would like to just to have a login for documents and my personal files that I store on the web.
redfoxstorm is offline   Reply With Quote
Old March 9th, 2005, 11:28 PM     #4 (permalink)
Member
 
Join Date: Jul 2002
Location: Australia-Brisbane
Posts: 39
Code:
<!-- TWO STEPS TO INSTALL HTACCESS LOGIN:

  1.  Copy the coding into the HEAD of your HTML document
  2.  Add the last code into the BODY of your HTML document  -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<!-- Based on FTP log in by:  Reinout Verkerk -->
<!-- Original:  Gordon Hudson (sales@hostroute.com) -->
<!-- Web Site:  http://www.hostroute.com/ -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function 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>

<!-- STEP TWO: Copy this code into the BODY of your HTML document  -->

<BODY>

<!-- The hidden form field "server" needs to be the
     address of your password protected directory. -->

<form name=login>
<input type="hidden" name="server" value="www.domain.com/secure/">
Username:
<input type=text name=username size=20>
<br><br>
Password:
<input type=password name=password size=20>
<input type=button value="Login!" onClick="Login(this.form)" name="button">
</form>

<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>

<!-- Script Size:  1.58 KB -->
source: http://javascript.internet.com/navig...ess-login.html

or : http://www.evolt.org/article/Creatin...HP_4/17/19661/
Razgo is offline   Reply With Quote
Old March 10th, 2005, 12:23 AM     #5 (permalink)
Member
 
redfoxstorm's Avatar
 
Join Date: Feb 2005
Posts: 386
Thanks Man
redfoxstorm is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
need logo help! freakster Graphic Design and Digital Photography 160 January 8th, 2008 05:38 PM
AMD 939 pci-e carajean206 Motherboards 8 December 3rd, 2004 06:23 PM
www.wordofmouth.com Arjay13 Security and Privacy Issues 31 May 20th, 2004 10:04 AM
how to create a website??? Zidane General Tech Discussion 14 January 15th, 2003 02:45 PM
Page refreshing? Zehhc Webmastering and Programming 10 October 5th, 2002 03:50 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3032)
Forty-six years ago today (12)
The disrespect of Obama by Russian .. (47)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
windows vista security holes (17)
Internet Lost (5)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
radeon x850xt platinum & shader.. (6)
HIS HD5770 graphic card question (15)
Recent Discussions
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Delete an OS (9)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
Nvidia GTX 260 problem (2)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)
EVGA 9800 gtx help with finding a goo.. (11)
Regular Build (11)


All times are GMT -4. The time now is 05:25 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28