RE: [PHP] Open New URL window

2007-09-20 Thread Andrew Prostko
Ok, so I started using the header code that was suggested: And I get this error: Parse error: parse error, unexpected '{' in /home/char-lee/public_html/beta/1.php on line 3 This is the code: --- ?php if ($_POST['pw'] != burgers { header(Location:

Re: [PHP] Open New URL window

2007-09-20 Thread Don Read
On Thu, 20 Sep 2007 02:52:19 -0400 Andrew Prostko said: Ok, so I started using the header code that was suggested: And I get this error: Parse error: parse error, unexpected '{' in /home/char-lee/public_html/beta/1.php on line 3 This is the code: --- ?php if

RE: [PHP] Open New URL window FINAL ANSWER

2007-09-20 Thread Andrew Prostko
Wow, it really must be late, Thank you for pointing out that missing parenthesis ... 330am and now I can go to bed happy... TY VM Ending Code for anyone listening: Get PW from another .php page using: form action=passwordcheck.php method=post br / What is the Password?: input type=text name=pw

Re: [PHP] Open New URL window

2007-09-20 Thread Stut
Andrew Prostko wrote: Ok, so I started using the header code that was suggested: And I get this error: Parse error: parse error, unexpected '{' in /home/char-lee/public_html/beta/1.php on line 3 This is the code: --- ?php if ($_POST['pw'] != burgers You'll be wanting to

Re: [PHP] Open New URL window FINAL ANSWER

2007-09-20 Thread Chris
Andrew Prostko wrote: Wow, it really must be late, Thank you for pointing out that missing parenthesis ... 330am and now I can go to bed happy... TY VM Ending Code for anyone listening: Get PW from another .php page using: form action=passwordcheck.php method=post br / What is the Password?:

[PHP] Open New URL window

2007-09-19 Thread Andrew Prostko
I am new to PHP and to email lists so I apologize in advance. What I am trying to do is to take a password from user input, check it to make sure it is == to something, say “burgers” My problem is, I do not know how to make the Else statement... How do I

Re: [PHP] Open New URL window

2007-09-19 Thread Jim Lucas
Andrew Prostko wrote: I am new to PHP and to email lists so I apologize in advance. What I am trying to do is to take a password from user input, check it to make sure it is == to something, say “burgers” My problem is, I do not know how to make the Else

Re: [PHP] Open New URL window

2007-09-19 Thread Richard S. Crawford
On Wednesday 19 September 2007 15:50:08 Andrew Prostko wrote: My problem is, I do not know how to make the Else statement... How do I get it to open a new url? I want it IF yes open this page, else open this page Andrew, try the header() function: ?php if ($_POST['pw'] != $password)