Re: [PHP] How New Is HERE?

2003-12-27 Thread [EMAIL PROTECTED]
Message: - From: Olwen Williams [EMAIL PROTECTED] Date: Sat, 27 Dec 2003 18:25:00 +1300 To: [EMAIL PROTECTED] Subject: Re: [PHP] How New Is HERE? Comment out line 11 to checkj it's the cause of the proble. If the error goes away then retype the line. I just tested this code and got

Re: [PHP] How New Is HERE?

2003-12-27 Thread Olwen Williams
: - From: Olwen Williams [EMAIL PROTECTED] Date: Sat, 27 Dec 2003 18:25:00 +1300 To: [EMAIL PROTECTED] Subject: Re: [PHP] How New Is HERE? Comment out line 11 to checkj it's the cause of the proble. If the error goes away then retype the line. I just tested this code and got

RE: [PHP] How New Is HERE?

2003-12-27 Thread Grant Walters
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, 27 December 2003 20:56 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] How New Is HERE? By comment[ing] out line 11, I take it you mean making a comment of line 11. I just did

Re: [PHP] How New Is HERE?

2003-12-27 Thread David T-G
Steve -- From your private reply to me, we know that ripping out the HERE stuff makes no difference, so it has nothing to do with that. I would also be inclined to rip out all of the bare HTML to make sure you don't have anything funky in there, too, especially since it comes before the error.

Re: [PHP] How New Is HERE?

2003-12-27 Thread [EMAIL PROTECTED]
Okay, everyone, here's some real progress. I retyped the file from scratch. I'm both attaching it--it's not a big file--and printing it below: html head titlepersistence demo/title /head body h1Persistence Demo/h1 form ?php $txtBoxCounter = $_POST['txtBoxCounter']; $hdnCounter =

Re: [PHP] How New Is HERE?

2003-12-27 Thread Asegu
It looks like your form tag is missing some attributes needed to point your browser to the script as to where to submit the data. if you were to try with your form tag as form action=___SCRIPT_ITSELF_FILENAME___ method=post ?? Andrew. ps: if that doesn't work, may I recommend inserting

Re: [PHP] How New Is HERE?

2003-12-27 Thread [EMAIL PROTECTED]
Bingo! Thanks, everyone! And thanks especially to Andrew! You were right: I needed the action and method attributes. And then it does increment. My last question on this episode: Why did it work before this for some of you trying it out for me? I mean, the code is the code, right? And either

Re: [PHP] How New Is HERE?

2003-12-27 Thread Olwen Williams
It incrementeted for me only after I changed $_POST to $_GET, but never gave errors. [EMAIL PROTECTED] wrote: Bingo! Thanks, everyone! And thanks especially to Andrew! You were right: I needed the action and method attributes. And then it does increment. My last question on this episode: Why

[PHP] How New Is HERE?

2003-12-26 Thread [EMAIL PROTECTED]
Okay, for everyone took a break for Christmas, and to update Jasper and Jeremy--who've tried big-time to help me--here's again the sitch and where I stand as of now. I'm on a Macintosh PowerBook running OS X.2.1 and PHP 4.3.0. I'm tryning to run the following code: html head title persistence

Re: [PHP] How New Is HERE?

2003-12-26 Thread Cesar Cordovez
Change: $txtBoxCounter = $_POST['txtBoxCounter] $hdnCounter = $_POST['hdnCounter] to $txtBoxCounter = $_POST['txtBoxCounter']; $hdnCounter = $_POST['hdnCounter']; (Notice the ' at the end of txtBoxCounter and hdnCounter. Merry X'mas [EMAIL PROTECTED] wrote: Okay, for everyone took a break for

Re: [PHP] How New Is HERE?

2003-12-26 Thread [EMAIL PROTECTED]
Thanks very much, and Merry Christmas to all--rather rude of me to've been whining for help all this time and not remembering the courtesy of holiday wishes. Okay, I made the change to: $txtBoxCounter = $_POST['txtBoxCounter']; $hdnCounter = $_POST['hdnCounter']; Now I get: parse error: parse

Re: [PHP] How New Is HERE?

2003-12-26 Thread Cesar Cordovez
Please post your code from line 30 to 40. Place a mark in line 34. =) [EMAIL PROTECTED] wrote: parse error: parse error, unexpected $ in [my path to this file] on line 34 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How New Is HERE?

2003-12-26 Thread [EMAIL PROTECTED]
Cesar, Sorry to have taken so long to answer. My day got complicated. Anyway, here's the code all over again, with the last changes I was advised to make. I took out the line spaces and added line numbers. But first, the latest error message: Parse error: parse error, unexpected T_VARIABLE

Re: [PHP] How New Is HERE?

2003-12-26 Thread David T-G
Steve -- ...and then [EMAIL PROTECTED] said... % %Parse error: parse error, unexpected T_VARIABLE in [path to file] on % line 11 % % The code: % ... % 10 ?php % 11 $txtBoxCounter = $_POST['txtBoxCounter']; That certainly looks innocuous enough. Just for fun, strip out the HERE print

[PHP] How New Is HERE?

2003-12-25 Thread [EMAIL PROTECTED]
I'm running PHP version 4.3.0 on a Macintosh PowerBook with OS 10.2.1, doing some PHP tutorial exercises. And I've run across something I haven't seen before in the sample code I'm seeing: print HERE [multiple lines of code] HERE; Now, from what I've read, it seems that the point of

Re: [PHP] How New Is HERE?

2003-12-25 Thread Jeremy Johnstone
AFAIK, it has been in PHP since the beginning of PHP4. I could be wrong, but I think it was one of the new features added when 4.0 came out. Here is a little reference material for you on it. http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc Without