Fwd: [PHP] Password Protecting a page and email notification

2008-06-17 Thread Philip Thompson
I forgot about the mail thing... Begin forwarded message: From: Philip Thompson <[EMAIL PROTECTED]> Date: June 17, 2008 6:52:15 PM CDT To: PHP-General List Subject: Re: [PHP] Password Protecting a page and email notification On Jun 17, 2008, at 5:33 PM, R.C. wrote: I'm going to

Re: [PHP] Password Protecting a page and email notification

2008-06-17 Thread Philip Thompson
On Jun 17, 2008, at 5:33 PM, R.C. wrote: I'm going to ask you PHP gurus if someone can give me a hand in trying to get this resolved. I'm fairly new to PHP and learning as I go. I've got two page "login.php" and video.php. Video.php is supposed to be protected i.e. if someone clicks on th

[PHP] Password Protecting a page and email notification

2008-06-17 Thread R.C.
I'm going to ask you PHP gurus if someone can give me a hand in trying to get this resolved. I'm fairly new to PHP and learning as I go. I've got two page "login.php" and video.php. Video.php is supposed to be protected i.e. if someone clicks on the direct link or brings up the page in a browser

Re: [PHP] Password Protecting

2007-03-20 Thread Shafiq Rehman
visit http://www.softswot.com/Form1Password.php On 3/21/07, Kevin <[EMAIL PROTECTED]> wrote: Hello Everyone! I am new to PHP but I am hoping you guys can help me. I would like to have my users go to a page that looks like http://f4.zittle.com/admin, or even just a drop down window or somet

Re: [PHP] Password Protecting

2007-03-20 Thread Richard Lynch
On Wed, March 21, 2007 12:11 am, Kevin wrote: >I am new to PHP but I am hoping you guys can help me. I would like > to have my users go to a page that looks like > http://f4.zittle.com/admin, or even just a drop down window or > something whre they can enter a username and password. Depending

[PHP] Password Protecting

2007-03-20 Thread Kevin
Hello Everyone! I am new to PHP but I am hoping you guys can help me. I would like to have my users go to a page that looks like http://f4.zittle.com/admin, or even just a drop down window or something whre they can enter a username and password. Depending on the username, and of course assum

Re: [PHP] password protecting files, only allowing authorized users

2007-01-11 Thread Chris
Dave wrote: Hello, I'm using php and apache2 on a freebsd box. I know about .htaccess that the web server can provide, but i'm looking for something php can do, i want it to pop up a page when a user requests certain files, asking for a username and password. http://www.php.net/features.h

Re: [PHP] password protecting files, only allowing authorized users

2007-01-11 Thread Casey Chu
This is impossible with only PHP. You might need a combination of PHP and AJAX [Javascript]. On 1/11/07, Dave <[EMAIL PROTECTED]> wrote: Hello, I'm using php and apache2 on a freebsd box. I know about .htaccess that the web server can provide, but i'm looking for something php can do, i want

[PHP] password protecting files, only allowing authorized users

2007-01-11 Thread Dave
Hello, I'm using php and apache2 on a freebsd box. I know about .htaccess that the web server can provide, but i'm looking for something php can do, i want it to pop up a page when a user requests certain files, asking for a username and password. If those are valid the user is taken to a pa

Re: [PHP] password-protecting with PHP, help plz

2004-09-21 Thread Chris Dowell
And after that - go and try to find out a little on your own - contrary to a common misconception, it's not the sole purpose of members of this list to write all your code for you. The old favourites RTFM and STFW would serve you well here - there are thousands of PHP tutorials that will tell y

RE: [PHP] password-protecting with PHP, help plz

2004-09-21 Thread Dan Joseph
Hi, > Thanks for the input, but unfortunately I have no idea how to do that, > though > I do have a MySQL server for my site. I'm still trying to learn basic PHP, > I > haven't moved on to PHP and MySQL connections and stuff yet. If you're talking about authentication, there are two metho

Re: [PHP] password-protecting with PHP, help plz

2004-09-21 Thread AceZero2790
Thanks for the input, but unfortunately I have no idea how to do that, though I do have a MySQL server for my site. I'm still trying to learn basic PHP, I haven't moved on to PHP and MySQL connections and stuff yet. -Andrew

Re: [PHP] password-protecting with PHP, help plz

2004-09-20 Thread John Nichel
Burhan Khalid wrote: [snip] And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in

Re: [PHP] password-protecting with PHP, help plz

2004-09-20 Thread Burhan Khalid
[snip] And here is the action page, testing2.php. if ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') { echo "Welcome, Andrew."; } And (shocker!) I got a blank page. So I turned out display errors and got this: Parse error: syntax error, unexpected T_BOOLEAN_AND in c:\TSW\pages\testing

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread John Taylor-Johnston
Parse error: syntax error, unexpected T_BOOLEAN_AND in c:\TSW\pages\testing2.php on line 3 My code should do what you want? It uses authenticate? Any how :) I think you are missing acouple of brackets? if ( ($_POST['user'] == 'Andrew') && ($_POST['pass'] == 'pass') ) { echo "Welcome, Andrew."; }

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread AceZero2790
Now moving on to using password protecting with more than one factor. I'm trying to figure out how to password protect with more than two factors: username and password. Here's the form: http://www.thesonicworld.net/pages/testing2.php";> Username: http://www.thesonicworld.net/pages/testing2.php

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread John Taylor-Johnston
Try this. Add it to the very beginning. [EMAIL PROTECTED] wrote: > You were right, my display_error function was turned off. I turned it on and > get this: > > Parse error: syntax error, unexpected T_IS_EQUAL in c:\TSW\pages\testing2.php > on line 3 > > So it isn't working. How do I get to let

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread Janet Valade
[EMAIL PROTECTED] wrote: You were right, my display_error function was turned off. I turned it on and get this: Parse error: syntax error, unexpected T_IS_EQUAL in c:\TSW\pages\testing2.php on line 3 So it isn't working. How do I get to let me make comparisons between the post data and somethi

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread AceZero2790
You were right, my display_error function was turned off. I turned it on and get this: Parse error: syntax error, unexpected T_IS_EQUAL in c:\TSW\pages\testing2.php on line 3 So it isn't working. How do I get to let me make comparisons between the post data and something else? I figure if I ca

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread Janet Valade
[EMAIL PROTECTED] wrote: I appreciate the help, but unfortunately it still doesn't work. I changed testing2.php, the action page to do this: if ($_POST['user']) == me { echo "Andrew"; } else { echo "not me"; } ?> I still get a blank page. What's more I turned on Display Errors and resta

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread AceZero2790
I appreciate the help, but unfortunately it still doesn't work. I changed testing2.php, the action page to do this: I still get a blank page. What's more I turned on Display Errors and restarted the server, but still got no error message. I don't know what the problem is, maybe there is somet

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread Jason Wong
On Sunday 19 September 2004 21:47, [EMAIL PROTECTED] wrote: > I'm trying to password protect a page with PHP, using forms and $_POST data > and all that stuff. I strongly suggest you search out a few tutorials on this subject. google > php authentication tutorial would be a good start. -- J

Re: [PHP] password-protecting with PHP, help plz

2004-09-19 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED]: > > This page shows up ok, with the form generating just fine. The problem is > when I get to the action page, testing2.php. Here is that: > > > if ($_POST['user']) == me { > > echo "it's me!"; > > } else { > > echo "not me"; > > ?> You have a parse error,

[PHP] password-protecting with PHP, help plz

2004-09-19 Thread AceZero2790
Hello, I'm trying to password protect a page with PHP, using forms and $_POST data and all that stuff. However, I'm running into problems setting it so that if the POST is equal to a certain thing, it'll do this or that (using if...else commands) and also problems with just getting blank pages w