creating a forum
#31
Posted 24 November 2005 - 12:45 PM
#32
Posted 24 November 2005 - 01:47 PM
#33
Posted 24 November 2005 - 01:54 PM
<HEAD>
<script language="JavaScript">
<!--hide
var password;
var pass1="password";
password=prompt('You need to enter a password to view this page.',' ');
if (password==pass1)
alert('Password right! Click OK to enter.');
else
{
window.location="[site to go to if password is wrong]";
}
//-->
</SCRIPT>
</HEAD>
add this code to the head of the page, and a box will come up prompting the user for the password. in this example, "password" is the password. you can guess where to put the message in the prompt. put a url to a site you want the user to go to if the password is wrong, in the place where "[site to go to if password is wrong]". hope this helps. (hope it works, lol!) didnt test it.
#34
Posted 24 November 2005 - 03:11 PM
#35
Posted 24 November 2005 - 04:26 PM
You CAN use the above code if you don't have important things on the password protected page... but don't barrier your life on thta page
You can learn PHP at:
http://www.php.net/manual/en/
Also, check here for a nice PHP password protection script after you've installed PHP from the manual above:
http://www.hotscripts.com/
#36
Posted 24 November 2005 - 05:48 PM
#37
Posted 24 November 2005 - 05:56 PM
#38
Posted 24 November 2005 - 05:57 PM
#39
Posted 25 November 2005 - 12:15 PM
#40
Posted 02 December 2005 - 11:17 PM
thanx
#41
Posted 03 December 2005 - 04:10 AM
Then you could export it as an swf and then add that to your page?
#42
Posted 03 December 2005 - 08:31 AM
Similar Topics
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users