#32601 [Bgs]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: Ok, thank you for explaining, and sorry to have taken up your time. Previous Comments: [2005-05-03 09:18:07] [EMAIL PROTECTED] This is simply how IE works, or doesn't work, depending on your perspective. Try it with a browser that actually works, like Firefox. It has nothing to do with bug #18648. I think the easiest way to prove this to you is to get you to simply change the test case to use a GET instead of a POST so you can see exactly what the browser is sending to PHP. On IE when you hit enter in the single text field, it just sends: ptitle= but when you click the submit button it sends: ptitle=&submit=Submit This sort of question really doesn't belong in our bug reporting system. Please use the appropriate mailing list next time. [2005-05-03 07:52:39] sarah dot lee at seh dot ox dot ac dot uk The related bug report to this seemed to indicate it was to do with PHP. Why is this any different now? I've tried the suggested solutions in Bug #18648, but unlike others there could not solve it. [2005-05-03 07:00:41] [EMAIL PROTECTED] This has nothing to do with PHP. PHP just shows you what your browser is sending. [2005-05-03 06:42:00] sarah dot lee at seh dot ox dot ac dot uk This was marked bogus, but was my last comment taken into account? [2005-04-06 19:08:29] sarah dot lee at seh dot ox dot ac dot uk Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32601 -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Bgs]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: The related bug report to this seemed to indicate it was to do with PHP. Why is this any different now? I've tried the suggested solutions in Bug #18648, but unlike others there could not solve it. Previous Comments: [2005-05-03 07:00:41] [EMAIL PROTECTED] This has nothing to do with PHP. PHP just shows you what your browser is sending. [2005-05-03 06:42:00] sarah dot lee at seh dot ox dot ac dot uk This was marked bogus, but was my last comment taken into account? [2005-04-06 19:08:29] sarah dot lee at seh dot ox dot ac dot uk Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } [2005-04-06 18:19:16] [EMAIL PROTECTED] There we go. You're getting just correct input. No bug here. (ALWAYS use the superglobals $_GET, $_POST, etc) ---- [2005-04-06 14:26:54] sarah dot lee at seh dot ox dot ac dot uk Sorry, my mistake - I misread your question. Output is: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32601 -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Bgs->Opn]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk -Status: Bogus +Status: Open Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: This was marked bogus, but was my last comment taken into account? Previous Comments: [2005-04-06 19:08:29] sarah dot lee at seh dot ox dot ac dot uk Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } [2005-04-06 18:19:16] [EMAIL PROTECTED] There we go. You're getting just correct input. No bug here. (ALWAYS use the superglobals $_GET, $_POST, etc) ---- [2005-04-06 14:26:54] sarah dot lee at seh dot ox dot ac dot uk Sorry, my mistake - I misread your question. Output is: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } [2005-04-06 14:23:08] sarah dot lee at seh dot ox dot ac dot uk The result is: array(1) { ["ptitle"]=> string(4) "text" } I found a work-around last night, using "if ($_POST) { .. }" rather than "if ($submit) { .. }", but it still doesn't explain why $submit is not recognised. [2005-04-06 13:51:12] [EMAIL PROTECTED] What does this output when you press simply enter: test.php: The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32601 -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Bgs]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Bogus Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: Sorry to confuse, but I've just discovered someting new. When simply pressing enter: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } When pressing enter and the cursor is in the box (as is the norm when you have just finished typing something): array(1) { ["ptitle"]=> string(0) "" } Previous Comments: [2005-04-06 18:19:16] [EMAIL PROTECTED] There we go. You're getting just correct input. No bug here. (ALWAYS use the superglobals $_GET, $_POST, etc) ---- [2005-04-06 14:26:54] sarah dot lee at seh dot ox dot ac dot uk Sorry, my mistake - I misread your question. Output is: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } [2005-04-06 14:23:08] sarah dot lee at seh dot ox dot ac dot uk The result is: array(1) { ["ptitle"]=> string(4) "text" } I found a work-around last night, using "if ($_POST) { .. }" rather than "if ($submit) { .. }", but it still doesn't explain why $submit is not recognised. [2005-04-06 13:51:12] [EMAIL PROTECTED] What does this output when you press simply enter: test.php: [2005-04-06 01:58:06] sarah dot lee at seh dot ox dot ac dot uk Description: This is related to Bug #18648 Single entry form POST gives incorrect variable content. My problems seem to be similar to that of other users on that thread, a form with a single text box doesn't really submit if the enter button is pressed. I'm using Apache 1.3 on Windows. In my httpd.conf, I don't have any InputFilters/OutputFilters, just AddType application/x-httpd-php .php I've tried the other fixes suggested: doesn't fix it, and nor does . I seem to be the only one mentioning it with Apache 1.3. Is there anything that can be done to solve it? Reproduce code: --- In an include: In the PHP script: if ($submit) { ... } Expected result: I expect the data to be carried to the PHP script, as it would if the submit button were actually clicked. Actual result: -- The page just gets refreshed with the data before any text was entered into the text box, and enter pressed. -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Opn]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk Status: Open Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: Sorry, my mistake - I misread your question. Output is: array(2) { ["ptitle"]=> string(0) "" ["submit"]=> string(6) "Submit" } Previous Comments: ---- [2005-04-06 14:23:08] sarah dot lee at seh dot ox dot ac dot uk The result is: array(1) { ["ptitle"]=> string(4) "text" } I found a work-around last night, using "if ($_POST) { .. }" rather than "if ($submit) { .. }", but it still doesn't explain why $submit is not recognised. [2005-04-06 13:51:12] [EMAIL PROTECTED] What does this output when you press simply enter: test.php: ---- [2005-04-06 01:58:06] sarah dot lee at seh dot ox dot ac dot uk Description: This is related to Bug #18648 Single entry form POST gives incorrect variable content. My problems seem to be similar to that of other users on that thread, a form with a single text box doesn't really submit if the enter button is pressed. I'm using Apache 1.3 on Windows. In my httpd.conf, I don't have any InputFilters/OutputFilters, just AddType application/x-httpd-php .php I've tried the other fixes suggested: doesn't fix it, and nor does . I seem to be the only one mentioning it with Apache 1.3. Is there anything that can be done to solve it? Reproduce code: --- In an include: In the PHP script: if ($submit) { ... } Expected result: I expect the data to be carried to the PHP script, as it would if the submit button were actually clicked. Actual result: -- The page just gets refreshed with the data before any text was entered into the text box, and enter pressed. -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [Fbk->Opn]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
ID: 32601 User updated by: sarah dot lee at seh dot ox dot ac dot uk Reported By: sarah dot lee at seh dot ox dot ac dot uk -Status: Feedback +Status: Open Bug Type: Apache related Operating System: Windows XP PHP Version: 4.3.9 New Comment: The result is: array(1) { ["ptitle"]=> string(4) "text" } I found a work-around last night, using "if ($_POST) { .. }" rather than "if ($submit) { .. }", but it still doesn't explain why $submit is not recognised. Previous Comments: [2005-04-06 13:51:12] [EMAIL PROTECTED] What does this output when you press simply enter: test.php: ---- [2005-04-06 01:58:06] sarah dot lee at seh dot ox dot ac dot uk Description: This is related to Bug #18648 Single entry form POST gives incorrect variable content. My problems seem to be similar to that of other users on that thread, a form with a single text box doesn't really submit if the enter button is pressed. I'm using Apache 1.3 on Windows. In my httpd.conf, I don't have any InputFilters/OutputFilters, just AddType application/x-httpd-php .php I've tried the other fixes suggested: doesn't fix it, and nor does . I seem to be the only one mentioning it with Apache 1.3. Is there anything that can be done to solve it? Reproduce code: --- In an include: In the PHP script: if ($submit) { ... } Expected result: I expect the data to be carried to the PHP script, as it would if the submit button were actually clicked. Actual result: -- The page just gets refreshed with the data before any text was entered into the text box, and enter pressed. -- Edit this bug report at http://bugs.php.net/?id=32601&edit=1
#32601 [NEW]: Related to Bug #18648 Single entry form POST gives incorrect variable content.
From: sarah dot lee at seh dot ox dot ac dot uk Operating system: Windows XP PHP version: 4.3.9 PHP Bug Type: Apache related Bug description: Related to Bug #18648 Single entry form POST gives incorrect variable content. Description: This is related to Bug #18648 Single entry form POST gives incorrect variable content. My problems seem to be similar to that of other users on that thread, a form with a single text box doesn't really submit if the enter button is pressed. I'm using Apache 1.3 on Windows. In my httpd.conf, I don't have any InputFilters/OutputFilters, just AddType application/x-httpd-php .php I've tried the other fixes suggested: doesn't fix it, and nor does . I seem to be the only one mentioning it with Apache 1.3. Is there anything that can be done to solve it? Reproduce code: --- In an include: In the PHP script: if ($submit) { ... } Expected result: I expect the data to be carried to the PHP script, as it would if the submit button were actually clicked. Actual result: -- The page just gets refreshed with the data before any text was entered into the text box, and enter pressed. -- Edit bug report at http://bugs.php.net/?id=32601&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32601&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32601&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32601&r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=32601&r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=32601&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32601&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32601&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32601&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32601&r=support Expected behavior: http://bugs.php.net/fix.php?id=32601&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32601&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32601&r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=32601&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32601&r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=32601&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32601&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32601&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32601&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32601&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32601&r=mysqlcfg
#21512 [NEW]: mkdir() does not work in safe mode
From: [EMAIL PROTECTED] Operating system: Rehat 8.0 PHP version: 4.2.3 PHP Bug Type: Performance problem Bug description: mkdir() does not work in safe mode compiled into php: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-pgsql=/usr/local/pgsql/ --with-mcrypt=/usr/local --with-xml --with-pdflib --disable-debug using the following directives in my httpd.conf: php_admin_value safe_mode 1 php_admin_value safe_mode_exec_dir /usr/local/src/demo/ this expression never evaluates to true: if(!mkdir($new_dir, 0755)) { $error = "The directory could not be created."; } the var $new_dir is always a subdirectory of a directory with umask=000 and mod=777 and ownership=nobody.nobody. The class running the code is owned by nobody.nobody. Nobody owns the apache server (v.1.3.27) processes. If safe_mode is set to false, the mkdir() function works just fine. Mkdir() + safe mode works just fine under php 4.3 also running under redhat 8.0, with the same compile options, the same httpd.conf directives, the same apache version, and the same directory permissions...aaack! -- Edit bug report at http://bugs.php.net/?id=21512&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21512&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21512&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21512&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21512&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21512&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=21512&r=support Expected behavior: http://bugs.php.net/fix.php?id=21512&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=21512&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=21512&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21512&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21512&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21512&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21512&r=isapi Install GNU Sed:http://bugs.php.net/fix.php?id=21512&r=gnused
#20625 [Bgs]: Mail Function output displaying '>' before the word From
ID: 20625 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *Mail Related Operating System: Free BSD PHP Version: 4.2.0 New Comment: Fixed the problem by replacing all instances of "From " with "From " and this seems to work. Thanks for your help Derrick. From ", $message); echo "Emails have been sent to the following people: "; $header = "From: Blair Drummond Safari Park <[EMAIL PROTECTED]>\n"; $header .= "Content-Type: text/html\n"; $db = mysql_connect("localhost", "safa16", "tybfg+nfcvf"); mysql_select_db("safa16",$db); $result = mysql_db_query("safa16","select * from bd_consumers where email<>'' and email <> ' ' and mailing<>-1"); while ($row = mysql_fetch_array($result)) { echo $row["email"]." (".$row["first_name"]." ".$row["surname"].") "; mail($row["email"],$subject,nl2br($xmessage),$header); } ?> Previous Comments: [2002-11-26 04:40:45] [EMAIL PROTECTED] It has to do with the unix mailbox format. "From " at the beginning of a line is the seperator for emails in such a box, and to make sure normal lines with "From " at the beginning of a line are prefixed with a ">". Derick [2002-11-26 04:37:45] [EMAIL PROTECTED] I have tried taking the new line breaks out of my previous code but am still getting the same result. I have taken the code below from phpbuilder.com and put in my email address and the message "From then on" and the output was the same: >From then on [2002-11-25 17:56:51] [EMAIL PROTECTED] This is not bug in PHP but in your code..please ask support elsewhere. [2002-11-25 12:58:31] [EMAIL PROTECTED] Your code has a slight problem that I see, the 'From:' header contain a newline between the name & the email, that may cause problems for your code. [2002-11-25 10:59:42] [EMAIL PROTECTED] * PHP version is actually 4.1.2 but Server is hosted with NTT/Verio so unable to update PHP version I am testing my mail function where a user enters their subject and message on a form and the next page pulls emails from a database and mails out to everyone. When I put the word From in the message box in the format From.. or From then on.. or From Sat 16th. it displays a '>' before the word From like this >From then on.. It doesn't do this with lower case from or upper case. It is ok when you insert a space before writing From. I thought it might be getting mixed up with the From tag. My code is this: "; $header = "From: Blair Drummond Safari Park <[EMAIL PROTECTED]>\n"; $header .= "Content-Type: text/html\n"; $db = mysql_connect("localhost", "**", "**"); mysql_select_db("**",$db); $result = mysql_db_query("**","select * from consumers where email<>'' and email <> ' ' and mailing<>-1"); while ($row = mysql_fetch_array($result)) { echo $row["email"]." (".$row["first_name"]." ".$row["surname"].") "; mail($row["email"],$subject,$message,$header); } ?> -- Edit this bug report at http://bugs.php.net/?id=20625&edit=1
#20625 [Bgs]: Mail Function output displaying '>' before the word From
ID: 20625 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *Mail Related Operating System: Free BSD PHP Version: 4.2.0 New Comment: I have tried taking the new line breaks out of my previous code but am still getting the same result. I have taken the code below from phpbuilder.com and put in my email address and the message "From then on" and the output was the same: >From then on Previous Comments: [2002-11-25 17:56:51] [EMAIL PROTECTED] This is not bug in PHP but in your code..please ask support elsewhere. [2002-11-25 12:58:31] [EMAIL PROTECTED] Your code has a slight problem that I see, the 'From:' header contain a newline between the name & the email, that may cause problems for your code. [2002-11-25 10:59:42] [EMAIL PROTECTED] * PHP version is actually 4.1.2 but Server is hosted with NTT/Verio so unable to update PHP version I am testing my mail function where a user enters their subject and message on a form and the next page pulls emails from a database and mails out to everyone. When I put the word From in the message box in the format From.. or From then on.. or From Sat 16th. it displays a '>' before the word From like this >From then on.. It doesn't do this with lower case from or upper case. It is ok when you insert a space before writing From. I thought it might be getting mixed up with the From tag. My code is this: "; $header = "From: Blair Drummond Safari Park <[EMAIL PROTECTED]>\n"; $header .= "Content-Type: text/html\n"; $db = mysql_connect("localhost", "**", "**"); mysql_select_db("**",$db); $result = mysql_db_query("**","select * from consumers where email<>'' and email <> ' ' and mailing<>-1"); while ($row = mysql_fetch_array($result)) { echo $row["email"]." (".$row["first_name"]." ".$row["surname"].") "; mail($row["email"],$subject,$message,$header); } ?> -- Edit this bug report at http://bugs.php.net/?id=20625&edit=1
#20625 [NEW]: Mail Function output displaying '>' before the word From
From: [EMAIL PROTECTED] Operating system: Free BSD PHP version: 4.2.0 PHP Bug Type: *Mail Related Bug description: Mail Function output displaying '>' before the word From * PHP version is actually 4.1.2 but Server is hosted with NTT/Verio so unable to update PHP version I am testing my mail function where a user enters their subject and message on a form and the next page pulls emails from a database and mails out to everyone. When I put the word From in the message box in the format From.. or From then on.. or From Sat 16th. it displays a '>' before the word From like this >From then on.. It doesn't do this with lower case from or upper case. It is ok when you insert a space before writing From. I thought it might be getting mixed up with the From tag. My code is this: "; $header = "From: Blair Drummond Safari Park <[EMAIL PROTECTED]>\n"; $header .= "Content-Type: text/html\n"; $db = mysql_connect("localhost", "**", "**"); mysql_select_db("**",$db); $result = mysql_db_query("**","select * from consumers where email<>'' and email <> ' ' and mailing<>-1"); while ($row = mysql_fetch_array($result)) { echo $row["email"]." (".$row["first_name"]." ".$row["surname"].") "; mail($row["email"],$subject,$message,$header); } ?> -- Edit bug report at http://bugs.php.net/?id=20625&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20625&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20625&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20625&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20625&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20625&r=oldversion Not developer issue:http://bugs.php.net/fix.php?id=20625&r=support Expected behavior: http://bugs.php.net/fix.php?id=20625&r=notwrong Not enough info:http://bugs.php.net/fix.php?id=20625&r=notenoughinfo Submitted twice:http://bugs.php.net/fix.php?id=20625&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20625&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20625&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20625&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20625&r=isapi