Re: [PHP] Empty $_POST after submit.
Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com
Re: [PHP] Empty $_POST after submit.
Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com
Re: [PHP] Empty $_POST after submit.
On Thu, 2013-04-04 at 15:55 +0530, Ninad wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com Have you used the network inspector of your browser to see if what you think is being sent is really being sent? Firefox and Chrome come with these tools built in now. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com
Re: [PHP] Empty $_POST after submit.
Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com
Re: [PHP] Empty $_POST after submit.
Hi, I tried using Firebug got below response. Parametersapplication/x-www-form-urlencoded firstname |test| lastname|111| submit |Submit| Source |firstname=testlastname=111submit=Submit| Regards, Ninad On 04/04/2013 04:14 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 15:55 +0530, Ninad wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com Have you used the network inspector of your browser to see if what you think is being sent is really being sent? Firefox and Chrome come with these tools built in now. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com
Re: [PHP] Empty $_POST after submit.
On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com unu_so...@yahoo.com Pagina personala: http://badeasorin.com I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
yes you are right On 04/04/2013 04:23 PM, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com
Re: [PHP] Empty $_POST after submit.
I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk This is really starting to sound like some sort of weird bug somewhere. I know this is the typical IT response, but have you tried restarting Apache? Also, this shouldn't happen, but try restarting your browser too. Maybe it's exhibiting some strange cache bug. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
I've tried the same code on a instance with fedora 17 and php 5.4.13. It seems to work fine. Can you provide us a link with the url to your page ? On 04/04/2013 01:59 PM, Ninad wrote: yes you are right On 04/04/2013 04:23 PM, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com
Re: [PHP] Empty $_POST after submit.
yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Regards, Ninad. On 04/04/2013 04:41 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk This is really starting to sound like some sort of weird bug somewhere. I know this is the typical IT response, but have you tried restarting Apache? Also, this shouldn't happen, but try restarting your browser too. Maybe it's exhibiting some strange cache bug. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Regards, Ninad. On 04/04/2013 04:41 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk This is really starting to sound like some sort of weird bug somewhere. I know this is the typical IT response, but have you tried restarting Apache? Also, this shouldn't happen, but try restarting your browser too. Maybe it's exhibiting some strange cache bug. Thanks, Ash http://www.ashleysheridan.co.uk Have you tried a different browser? Just thinking of anything which might narrow down the location of the problem. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
yes I tried on Firefox 3.5 firefox 19 chrome. On 04/04/2013 04:49 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Regards, Ninad. On 04/04/2013 04:41 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk This is really starting to sound like some sort of weird bug somewhere. I know this is the typical IT response, but have you tried restarting Apache? Also, this shouldn't happen, but try restarting your browser too. Maybe it's exhibiting some strange cache bug. Thanks, Ash http://www.ashleysheridan.co.uk Have you tried a different browser? Just thinking of anything which might narrow down the location of the problem. Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] Empty $_POST after submit.
On 04/04/2013 01:19 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:41 +0530, Ninad wrote: Have you tried a different browser? Just thinking of anything which might narrow down the location of the problem. Thanks, Ash http://www.ashleysheridan.co.uk does PHP work at all? what do you get any output of (create this file with the content) info.php ?php echo phpinfo(); ?
Re: [PHP] Empty $_POST after submit.
On 4/4/2013 7:02 AM, Ashley Sheridan wrote: I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk Even more odd is that the statement is checking the SAME variable twice. Why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Empty $_POST after submit.
Ashley Sheridan a...@ashleysheridan.co.uk hat am 4. April 2013 um 13:02 geschrieben: I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) No, this is totally valid to check if all values are set If multiple parameters are supplied then isset() will return TRUE only if all of the parameters are set. Evaluation goes from left to right and stops as soon as an unset variable is encountered. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Empty $_POST after submit.
Ninad ninadsh...@iitb.ac.in hat am 4. April 2013 um 13:11 geschrieben: yes yes I tried that also... I have restarted apache as well as my entire system also... again I have cleared all the cache of my browser restarted it also. but I am getting same result Could you take a look at the output of var_dump($_POST); var_dump($_GET); var_dump($_REQUEST); Regards, Ninad. On 04/04/2013 04:41 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 16:33 +0530, Ninad wrote: I tried that already but same result ... no output... On 04/04/2013 04:32 PM, Ashley Sheridan wrote: On Thu, 2013-04-04 at 13:53 +0300, Sorin Badea wrote: So you have a single php file with the code from the first email and the $_POST var is empty. Am I right ? On Thu, Apr 4, 2013 at 1:49 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hi, I am using httpd as a web server with default configuration. Regards, Ninad. On 04/04/2013 04:11 PM, Sorin Badea wrote: What are you using on the server for http ? nginx or apache ? can you give us more details about your configuration (mods, configuration, htaccess ) ? On Thu, Apr 4, 2013 at 1:25 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Hello, Thanks for such a fast response. Yes I tried bellow things but result is same --- no output.. $postdata = file_get_contents('php://input'); var_dump($postdata); var_dump($_POST); Regards, Ninad. On 04/04/2013 03:50 PM, Sorin Badea wrote: Hi, Did you tried a print_r($_POST) or a var_dump ? On Thu, Apr 4, 2013 at 1:10 PM, Ninad ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in mailto:ninadsh...@iitb.ac.in wrote: Dear all, I am having 2 servers. One is running fedora 10 with php 5.2.6-5 and second one is running fedora17 with php 5.4.13. Below given code is working absolutely fine on fedora10 with php5.2 But the same code is not working on fedora17 with php 5.4.13. After submit I am getting $_POST variable empty. Please guide me in the same. ?php if (isset($_POST['lastname'], $_POST['lastname'])) { echo(First name: . $_POST['firstname'] . br /\n); echo(Last name: . $_POST['lastname'] . br /\n); } ? html head /head body form action=index.php method=post pFirst name: input type=text name=firstname //p pLast name: input type=text name=lastname //p input type=submit name=submit value=Submit / /form /body /html Thanks Regards, Ninad. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:http://www.php.net/unsub.php -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com -- Badea Sorin (unu.sorin) sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com mailto:sorin.bade...@gmail.com unu_so...@yahoo.com mailto:unu_so...@yahoo.com mailto:unu_so...@yahoo.com Pagina personala: http://badeasorin.com I've noticed the first line looks a little odd. It might be valid, just probably not the way I've ever done it. For my own sanity, could you try changing it to: if (isset($_POST['lastname']) isset($_POST['lastname'])) Thanks, Ash http://www.ashleysheridan.co.uk This is really starting to sound like some sort of weird bug somewhere. I know this is the typical IT response, but have you tried restarting Apache? Also, this shouldn't happen, but try restarting your browser too. Maybe it's exhibiting some strange cache bug. Thanks, Ash http://www.ashleysheridan.co.uk -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php