This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Microsoft Publisher > March 2007 > how can i restict access to a web page created in Publisher 2003?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
how can i restict access to a web page created in Publisher 2003?
|
|
| gordon 2007-03-13, 11:17 pm |
| built a website and then realized i needed to have 'members only' page, with
password, but it looks like Publisher doesn't do that. any ideas. i can code
a little, but would rather use an add-in or something if there is one..
| |
| Mike Koewler 2007-03-14, 4:15 am |
| First, check with your web host - many of them offer password protection
as part of their package.
Second, do a Google search for htaccess. It makes it easy to password
protect a directory. You would, though, need to put your page(s) in a
particular folder and create a link to it - Pub won't automatically do
absolute links (AFAIK).
Three - check Dynamic Drive dot com for a script.
Mike
gordon wrote:
> built a website and then realized i needed to have 'members only' page, with
> password, but it looks like Publisher doesn't do that. any ideas. i can code
> a little, but would rather use an add-in or something if there is one..
| |
| MIchaeldane 2007-03-14, 11:15 pm |
| Try this script.
Description: A simple login and password script. Login is JavaScript,
password is Kit. To change this information, simply go into the script and
change it. Be sure to also change the target page (Location).
<script language="javascript">
<!--//
/*This Script allows people to enter by using a form that asks for a
UserID and Password*/
function pasuser(form) {
if (form.id.value=="JavaScript") {
if (form.pass.value=="Kit") {
location="page2.html"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}
//-->
</script>
<center>
<table bgcolor="white" cellpadding="12" border="1">
<tr><td colspan="2"><center><h1><i><b>Login
Area</b></i></h1></center></td></tr>
<tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input
name="id" type="text"></td></tr>
<tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass"
type="password"></td></tr>
<tr><td><center><input type="button" value="Login"
onClick="pasuser(this.form)"></center></td><td><center><br><input
type="Reset"></form></td></tr></table></center>
"gordon" wrote:
> built a website and then realized i needed to have 'members only' page, with
> password, but it looks like Publisher doesn't do that. any ideas. i can code
> a little, but would rather use an add-in or something if there is one..
| |
| gordon 2007-03-15, 7:17 pm |
| Wonderful! Thank you!!!
"MIchaeldane" wrote:
[color=darkred]
> Try this script.
>
> Description: A simple login and password script. Login is JavaScript,
> password is Kit. To change this information, simply go into the script and
> change it. Be sure to also change the target page (Location).
>
>
>
> <script language="javascript">
> <!--//
> /*This Script allows people to enter by using a form that asks for a
> UserID and Password*/
> function pasuser(form) {
> if (form.id.value=="JavaScript") {
> if (form.pass.value=="Kit") {
> location="page2.html"
> } else {
> alert("Invalid Password")
> }
> } else { alert("Invalid UserID")
> }
> }
> //-->
> </script>
>
> <center>
> <table bgcolor="white" cellpadding="12" border="1">
> <tr><td colspan="2"><center><h1><i><b>Login
> Area</b></i></h1></center></td></tr>
> <tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input
> name="id" type="text"></td></tr>
> <tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass"
> type="password"></td></tr>
> <tr><td><center><input type="button" value="Login"
> onClick="pasuser(this.form)"></center></td><td><center><br><input
> type="Reset"></form></td></tr></table></center>
>
>
> "gordon" wrote:
>
| |
| Don Schmidt 2007-03-15, 7:17 pm |
| This is some information offered by my ISP and may be of value to you. I
use this method and it works very well.
Read number 32 and/or 33
http://www.iinet.com/support/faqlis...t=web%20hosting
--
Don
Vancouver, USA
"gordon" <gordon@discussions.microsoft.com> wrote in message
news:B6927BFE-5B83-491E-8716-0B58C094678C@microsoft.com...
> built a website and then realized i needed to have 'members only' page,
> with
> password, but it looks like Publisher doesn't do that. any ideas. i can
> code
> a little, but would rather use an add-in or something if there is one..
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|