RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Angelo Zanetti mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 5:43 AM said: hi I have a table with rows and each row contains a checkbox ( array) and a record. TD of the checkbox: echo(td width=15 bgcolor=#9FD9FFinput type=checkbox name=chkR[] value=. $chkSessionF[$i] ./td);

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 00:10, Chris W. Parker wrote: [snip] If you're not sure what a value is use print_r() to determine it. echo pre; print_r($chk); echo /pre; Quick side note on the above code: You cannot write it like: echo pre.print_r($chk)./pre; It will not work. You

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:06 AM said: echo pre.print_r($chk)./pre; It will not work. You can do this though: echo pre, print_r($chk), /pre; Well heck, that makes things easier! What's the difference between using , or . for

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:06 AM said: echo pre.print_r($chk)./pre; It will not work. Actually, the above *does* work! -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] echo pre.print_r($chk)./pre; It will not work. You can do this though: echo pre, print_r($chk), /pre; Well heck, that makes things easier! What's the difference between using , or . for concatenation? (I thought they were the same.) Using a

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: Jason Wong [EMAIL PROTECTED] On Wednesday 01 October 2003 02:14, Chris W. Parker wrote: Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:06 AM said: echo pre.print_r($chk)./pre; It will not work. Actually, the above *does* work! It depends on how

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:27 AM said: echo pre.print_r($chk)./pre; It will not work. Actually, the above *does* work! Not for me. (Although we may be testing different things.) ? $pageTitle = Checkout Step One; echo

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
CPT John W. Holmes mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:32 AM said: Note that print_r() will (by default) return a 1 (TRUE) upon success, so you end up with a 1 being printed at the end of your data. [snip] That answers it! c. -- PHP General Mailing List

RE: [PHP] arrays and php

2003-09-30 Thread Chris Shiflett
--- Chris W. Parker [EMAIL PROTECTED] wrote: What's the difference between using , or . for concatenation? (I thought they were the same.) The comma isn't concatenation; echo can take multiple arguments. I've heard statements about passing multiple arguments to echo being faster than using

Re: [PHP] arrays and php

2003-09-30 Thread CPT John W. Holmes
From: Chris W. Parker [EMAIL PROTECTED] CPT John W. Holmes mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:32 AM said: Note that print_r() will (by default) return a 1 (TRUE) upon success, so you end up with a 1 being printed at the end of your data. [snip] That answers

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Chris Shiflett mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:39 AM said: The comma isn't concatenation; echo can take multiple arguments. Oh ok, I get it. I've heard statements about passing multiple arguments to echo being faster than using concatenation, but every

Re: [PHP] arrays and php

2003-09-30 Thread Jason Wong
On Wednesday 01 October 2003 02:32, Chris W. Parker wrote: Jason Wong mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 11:27 AM said: echo pre.print_r($chk)./pre; It will not work. Actually, the above *does* work! Not for me. (Although we may be testing different things.)

Re: [PHP] arrays and php

2003-09-30 Thread Eugene Lee
On Tue, Sep 30, 2003 at 09:10:44AM -0700, Chris W. Parker wrote: : : Angelo Zanetti mailto:[EMAIL PROTECTED] : on Tuesday, September 30, 2003 5:43 AM said: : : hi I have a table with rows and each row contains a checkbox ( array) : and a record. TD of the checkbox: : echo(td width=15

RE: [PHP] arrays and php

2003-09-30 Thread Chris W. Parker
Eugene Lee mailto:[EMAIL PROTECTED] on Tuesday, September 30, 2003 2:12 PM said: A heredoc is more readable: echo HTMLTAG td width=15 bgcolor=#9FD9FFinput type=checkbox name=chkR[] value={$chkSessionF[$i]}/td HTMLTAG; Yeah, but I don't like those. :P chris. -- PHP General Mailing