Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Anron #1
Simple one person password portected page
I am clueless... I have built a web site but I want the home page to be
password protected, but I only want one person to have access to it. I will
give them the user name and password. I don't want to create a registration
page, but all the tutorials I have seen say I must make one. I just want one
person to have the password and user name. How do I do this??
Anron Guest
-
How to do a person to person webcam chat without FCS?
Hi, Is it not possible to do streaming audio or audio/video between two Flash clients without going through FCS? Or, are there alternatives to FCS?... -
How can I tell when other person modifies a page?
I use Dreamweaver, and I recently set my boss up with Contribute so he can make simple changes when he needs to. My question is how do I know when... -
How to password protect a page?
I have a set of bulletins in a new site that the client wants protected. He wants the visitor to enter a password to access the bulletin index page... -
Automatically insert last person/time to edit page
We're encouraging our users to (at present manually) update the footer of the page with their email address and the date they last updated a page. ... -
Warning Page Has Expired, I need to turn it OFF for a simple search page
You can't turn it off. If you understand the reason for it, then you know that the Back button or Refresh button of a browser makes a new request... -
Singularity.co.uk #2
Re: Simple one person password portected page
Anron
Create a login page with the form action set back to the login page.
Then place the following code at the top of the login page, with UserName
and Password the names of the text boxes in the login form.
<%
If Len(Request("UserName")) > 0 Then
Dim CorrectUserName, CorrectPassword
CorrectUserName = "TestName"
CorrectPassword = "TestPass"
If Trim(Request("UserName")) = CorrectUserName And Trim(Request("Password"))
= CorrectPassword Then
Session("CorrectUser") = CorrectUserName
Response.Redirect("Homepage.asp")
End If
End If
%>
Then on the homepage put the following code at the top:
<%
If Session("CorrectUser") <> "TestName" Then
Response.Redirect("LoginPage.asp")
End If
%>
Hope this helps (and works) as I havent tried it out or tested it.
Brendan
"Anron" <webforumsuser@macromedia.com> wrote in message
news:dclsta$633$1@forums.macromedia.com...will> I am clueless... I have built a web site but I want the home page to be
> password protected, but I only want one person to have access to it. Iregistration> give them the user name and password. I don't want to create aone> page, but all the tutorials I have seen say I must make one. I just want> person to have the password and user name. How do I do this??
>
Singularity.co.uk Guest
-
Anron #3
Re: Simple one person password protected page
The only thing I don't understand is the part when you said " with UserName
and Password the names of the text boxes in the login form."
I haven't ever messed with the forms in dreamweaver b4 so I am a huge newbe
when it comes to forms.
Anron Guest
-
Singularity.co.uk #4
Re: Simple one person password protected page
On page use something like:
<form name="frmLogin" id="frmLogin" action="LoginPage.asp" method="post">
<table align="center">
<tr>
<td>UserName</td>
<td><input name="UserName" type="text"></td>
</tr>
<tr>
<td>Password</td>
<td><input name="Password" type="text"></td>
</tr>
<tr>
<td></td>
<td><input name="btnSubmit" type="submit" id="btnSubmit"
value="Login"></td>
</tr>
</table
</form>
Again, this might not be 100% correct as I have just done it off the top of
my head.
"Anron" <webforumsuser@macromedia.com> wrote in message
news:dco2af$bfc$1@forums.macromedia.com...UserName> The only thing I don't understand is the part when you said " withnewbe> and Password the names of the text boxes in the login form."
> I haven't ever messed with the forms in dreamweaver b4 so I am a huge> when it comes to forms.
>
Singularity.co.uk Guest
-
Anron #5
Re: Simple one person password protected page
ok thanks I will give it a try tonight when I get home. I will let you know how it goes.
Anron Guest
-
Anron #6
Re: Simple one person password protected page
ok I have a really big Newbie question. Where do I insert the asp script.
Could you please tell me how and where to insert the script. I know I can copy
and paste but I don't know where to copy and paste too. Is there a specific
location I have to paste it in? And I save it as an .asp right? Or do I create
a new dynamic page under the file new menu?
Anron Guest
-
Anron #7
Re: Simple one person password protected page
Ok I don't think the code you gave me worked cuz I found this code in the
dreamweaver help <p>This page was created at <b>
<%= Time %>
</b> on the computer running ASP.</p>
and it worked just fine.
When I try the code you posted, the page won't display I get the http page
won't display page.
Anron Guest
-
Singularity.co.uk #8
Re: Simple one person password protected page
Anron
Try looking at one of the following tutorials:
[url]http://www.macromedia.com/support/ultradev/building/login_page/[/url]
[url]http://www.webthang.co.uk/tuts/tuts_dmx/dmxf_4/dmx4_1.asp[/url]
Brendan
"Anron" <webforumsuser@macromedia.com> wrote in message
news:dcv0f6$d9b$1@forums.macromedia.com...page> Ok I don't think the code you gave me worked cuz I found this code in the
> dreamweaver help <p>This page was created at <b>
> <%= Time %>
> </b> on the computer running ASP.</p>
>
>
> and it worked just fine.
> When I try the code you posted, the page won't display I get the http> won't display page.
>
Singularity.co.uk Guest
-
Anron #9
Re: Simple one person password protected page
I read the links that you posted. They talk about creating a registration page
and a database. I just want to create a simple one user and one password login
system. I haven't been able to find anything that simple yet.
Anron Guest
-
Singularity.co.uk #10
Re: Simple one person password portected page
Anron
Have you an email address where I can send you two files demonstrating what
you need?
If so, when you are posting it, use something like below to stop your email
address being grabbed by email bots:
AnronATmysiteDOTCOM
Brendan
"Anron" <webforumsuser@macromedia.com> wrote in message
news:dclsta$633$1@forums.macromedia.com...will> I am clueless... I have built a web site but I want the home page to be
> password protected, but I only want one person to have access to it. Iregistration> give them the user name and password. I don't want to create aone> page, but all the tutorials I have seen say I must make one. I just want> person to have the password and user name. How do I do this??
>
Singularity.co.uk Guest
-
Anron #11
Re: Simple one person password portected page
Cool thanks, anron_EATtyahooDotCom lol strange never looked at my email that way b4 looks kinda funny apparently I like to eat Dotcoms lol.
Anron Guest
-
Singularity.co.uk #12
Re: Simple one person password portected page
Is there supposed to be a letter t between EAT and yahoo???
"Anron" <webforumsuser@macromedia.com> wrote in message
news:dd7rnk$o1n$1@forums.macromedia.com...email that way b4 looks kinda funny apparently I like to eat Dotcoms lol.> Cool thanks, anron_EATtyahooDotCom lol strange never looked at my
Singularity.co.uk Guest
-
Anron #13
Re: Simple one person password portected page
I got it. I will test it next monday, I am gone to pittsburg to visit family so I will let you know on monday how things turn out. Thanks again.
Aaron
Anron Guest



Reply With Quote

