php-general Digest 20 Feb 2013 12:42:05 -0000 Issue 8130

2013-02-20 Thread php-general-digest-help
php-general Digest 20 Feb 2013 12:42:05 - Issue 8130 Topics (messages 320246 through 320256): Re: parsing select multiple=multiple 320246 by: Jim Giner Re: [PHP-DEV] PHP 5.3.22RC1 and 5.4.12RC1 Released for Testing! 320247 by: Jan Ehrhardt 320248 by: Johannes

php-general Digest 21 Feb 2013 06:17:15 -0000 Issue 8131

2013-02-20 Thread php-general-digest-help
php-general Digest 21 Feb 2013 06:17:15 - Issue 8131 Topics (messages 320257 through 320274): Re: if (empty versus if (isset 320257 by: Jim Giner 320258 by: marco.behnke.biz 320259 by: Tedd Sperling Re: phpinfo() 320260 by: Tedd Sperling 320269 by:

Re: [PHP] if (empty versus if (isset

2013-02-20 Thread ma...@behnke.biz
isset checks if something is defined or if an array has a key with a value other than null read: http://www.php.net/manual/en/function.isset.php#refsect1-function.isset-returnvalues empty check isset PLUS if the value is not null, false, 0 and wahtever php thinks is empty read:

Re: [PHP] phpinfo()

2013-02-20 Thread Design in Motion Webdesign
John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted

[PHP] Re: if (empty versus if (isset

2013-02-20 Thread Jim Giner
Basically it tells a savvy programmer whether or not his logic has caused the var in question to exist. Many times it is important simply to know that, not what the var contains, which can lead to an error in processing. The isset() will tell you that yes, I have this variable, letting you

Re: [PHP] Re: if (empty versus if (isset

2013-02-20 Thread ma...@behnke.biz
Jim Giner jim.gi...@albanyhandball.com hat am 20. Februar 2013 um 15:10 geschrieben: Basically it tells a savvy programmer whether or not his logic has caused the var in question to exist. Many times it is important simply to know that, not what the var contains, which can lead to an

Re: [PHP] if (empty versus if (isset

2013-02-20 Thread Tedd Sperling
On Feb 20, 2013, at 9:10 AM, Jim Giner jim.gi...@albanyhandball.com wrote: Basically it tells a savvy programmer whether or not his logic has caused the var in question to exist. Many times it is important simply to know that, not what the var contains, which can lead to an error in

Re: [PHP] phpinfo()

2013-02-20 Thread Tedd Sperling
On Feb 19, 2013, at 7:57 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode

Re: [PHP] parsing select multiple=multiple

2013-02-20 Thread Tedd Sperling
On Feb 18, 2013, at 7:54 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I am capable with select name=DPRpriority. (I suppose I did it correctly? :p ) But I haven't the first clue how to parse a select multiple and multiply select name=DPRtype. Would anyone

Re: [PHP] parsing select multiple=multiple

2013-02-20 Thread Jim Giner
On 2/20/2013 11:41 AM, Tedd Sperling wrote: On Feb 18, 2013, at 7:54 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I am capable with select name=DPRpriority. (I suppose I did it correctly? :p ) But I haven't the first clue how to parse a select multiple and

[PHP] stripped \n

2013-02-20 Thread John Taylor-Johnston
Hi, I have a textarea when submitted creates a new form with the textarea data in a hidden field: input name=DPRnarration type=text hidden form=DPRform value=Enter call narration here. But when this new form gets resubmitted, the \n get stripped? input name=DPRnarration type=text hidden

[PHP] Re: stripped \n

2013-02-20 Thread Jim Giner
On 2/20/2013 1:16 PM, John Taylor-Johnston wrote: Hi, I have a textarea when submitted creates a new form with the textarea data in a hidden field: input name=DPRnarration type=text hidden form=DPRform value=Enter call narration here. But when this new form gets resubmitted, the \n get

Re: [PHP] stripped \n

2013-02-20 Thread Matijn Woudt
On Wed, Feb 20, 2013 at 7:16 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Hi, I have a textarea when submitted creates a new form with the textarea data in a hidden field: input name=DPRnarration type=text hidden form=DPRform value=Enter call narration here.

Re: [PHP] stripped \n

2013-02-20 Thread Daniel Brown
On Wed, Feb 20, 2013 at 1:32 PM, Matijn Woudt tijn...@gmail.com wrote: An input with type=text is used for single lines, so yes, newlines get stripped. Either use a textarea with style=display: none, or store the data in a session instead. Or at least input type=hidden/. -- /Daniel P.

Re: [PHP] stripped \n

2013-02-20 Thread Jim Giner
On 2/20/2013 1:32 PM, Matijn Woudt wrote: On Wed, Feb 20, 2013 at 7:16 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Hi, I have a textarea when submitted creates a new form with the textarea data in a hidden field: input name=DPRnarration type=text hidden

Re: [PHP] stripped \n

2013-02-20 Thread Ashley Sheridan
On Wed, 2013-02-20 at 13:47 -0500, Jim Giner wrote: On 2/20/2013 1:32 PM, Matijn Woudt wrote: On Wed, Feb 20, 2013 at 7:16 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Hi, I have a textarea when submitted creates a new form with the textarea data in a

Re: [PHP] phpinfo()

2013-02-20 Thread John Taylor-Johnston
Design in Motion Webdesign wrote: John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode

Re: [PHP] phpinfo()

2013-02-20 Thread Ashley Sheridan
On Wed, 2013-02-20 at 14:23 -0500, John Taylor-Johnston wrote: Design in Motion Webdesign wrote: John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I

Re: [PHP] phpinfo()

2013-02-20 Thread Stuart Dallas
On 20 Feb 2013, at 19:23, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Design in Motion Webdesign wrote: John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a

Re: [PHP] stripped \n

2013-02-20 Thread Jim Lucas
On 02/20/2013 10:16 AM, John Taylor-Johnston wrote: Hi, I have a textarea when submitted creates a new form with the textarea data in a hidden field: input name=DPRnarration type=text hidden form=DPRform value=Enter call narration here. But when this new form gets resubmitted, the \n get

Re: [PHP] phpinfo()

2013-02-20 Thread Tedd Sperling
On Feb 20, 2013, at 2:31 PM, Stuart Dallas stu...@3ft9.com wrote: You were given the answer, did you not try it? Starting with the code in your original post: 1) Change the type to submit. 2) Remove the onclick. 3) Job done! -Stuart Sometimes you just can't help. Sent from my leaf

Re: [PHP] phpinfo()

2013-02-20 Thread tamouse mailing lists
On Wed, Feb 20, 2013 at 1:31 PM, Stuart Dallas stu...@3ft9.com wrote: -Stuart -- Sent from my leaf blower -- Did you get the 4G model, or is this just the WiFi version? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] parsing select multiple=multiple

2013-02-20 Thread tamouse mailing lists
On Tue, Feb 19, 2013 at 1:02 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: tamouse mailing lists wrote: I hate arrays. :D Here's a small snippet showing how it works, I hope: foreach ($DPRpriority as $item = $value) { echo li .$item.: .$value['name'].