Re: [PHP] location= Construct Doc

2003-11-11 Thread Eugene Lee
On Tue, Nov 11, 2003 at 01:46:33PM -0800, Mark wrote: : > : > > --- Lee Stewart <[EMAIL PROTECTED]> wrote: : > > : > >>Here's a *working* section of code... Note the : > >> location = "browse.php"; : > >>on line 23 : : In v4.3.2, it throws a "Parse error: parse error, unexpected '=' in : /

Re: [PHP] location= Construct Doc

2003-11-11 Thread Mark
--- Lee Stewart <[EMAIL PROTECTED]> wrote: > It's version 4.0.3 > Lee In v4.3.2, it throws a "Parse error: parse error, unexpected '=' in /path/to/file/test.php on line 23". > > Chris Shiflett wrote: > > --- Lee Stewart <[EMAIL PROTECTED]> wrote: > > > >>Here's a *working* section of code... N

Re: [PHP] location= Construct Doc

2003-11-10 Thread Marek Kilimajer
Lee Stewart wrote: Hi... I'm looking at an existing application that uses a number of statements like: location = "page2.php"; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? This would generate parse error in php, but

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
It's version 4.0.3 Lee Chris Shiflett wrote: --- Lee Stewart <[EMAIL PROTECTED]> wrote: Here's a *working* section of code... Note the location = "browse.php"; on line 23 How does that not generate a parse error? I must be missing something. It seems to me that either a dollar sign

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart <[EMAIL PROTECTED]> wrote: > Here's a *working* section of code... Note the > location = "browse.php"; > on line 23 How does that not generate a parse error? I must be missing something. It seems to me that either a dollar sign is missing, or the line is intended to def

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
Here's a *working* section of code... Note the location = "browse.php"; on line 23 $errmsg = ''; if( isset($username) ) { require_once('Connections/mySql.php'); mysql_select_db($database_mySql, $mySql); $rs = mysql_query("select * from employee where initials = '" . strtoupper($us

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart on Monday, November 10, 2003 12:42 PM said: > It's not $location = xxx, just > location = "page.php"; > And it seems to work as a redirect... But not part of the header > fuction, and not just setting a variable... Hmm.. Never seen that before an

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart <[EMAIL PROTECTED]> wrote: > It's not $location = xxx, just location = "page.php"; So the dollar sign is missing? Can you show us all of the code in question? (Or did I miss it?) > And it seems to work as a redirect... But not part of the header > fuction, and not just setting

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
It's not $location = xxx, just location = "page.php"; And it seems to work as a redirect... But not part of the header fuction, and not just setting a variable... Lee Chris W. Parker wrote: Lee Stewart on Monday, November 10, 2003 12:18 PM said: I see the Locati

RE: [PHP] location= Construct Doc

2003-11-10 Thread Chris W. Parker
Lee Stewart on Monday, November 10, 2003 12:18 PM said: > I see the Location: of the Header function there, but what I see in > the code is just a location = and a page name... No header > function... > > Is it the same thing? $location = "page.php"; is nothing m

Re: [PHP] location= Construct Doc

2003-11-10 Thread Chris Shiflett
--- Lee Stewart <[EMAIL PROTECTED]> wrote: > I'm looking at an existing application that uses a number of > statements like: > > location = "page2.php"; > > I thought I'd seen it somewhere in the PHP doc, but can't find it > now.. Can anyone point me to where it's written up? The HTTP header itse

Re: [PHP] location= Construct Doc

2003-11-10 Thread Lee Stewart
I see the Location: of the Header function there, but what I see in the code is just a location = and a page name... No header function... Is it the same thing? Lee Jay Blanchard wrote: [snip] I'm looking at an existing application that uses a number of statements like: location = "page2.php";

RE: [PHP] location= Construct Doc

2003-11-10 Thread Jay Blanchard
[snip] I'm looking at an existing application that uses a number of statements like: location = "page2.php"; I thought I'd seen it somewhere in the PHP doc, but can't find it now.. Can anyone point me to where it's written up? [/snip] http://www.php.net/header -- PHP General Mailing