Hi,
I tried using Firebug & got below response.
Parametersapplication/x-www-form-urlencoded
firstname |test|
lastname |111111111111111|
submit |Submit|
Source
|firstname=test&lastname=111111111111111&submit=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 <ninadshaha@xxxxxxxxxx <mailto:ninadshaha@xxxxxxxxxx>
> <mailto:ninadshaha@xxxxxxxxxx>> 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">
> <p>First name: <input type="text" name="firstname" /></p>
> <p>Last 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.badea91@xxxxxxxxx <mailto:sorin.badea91@xxxxxxxxx> <mailto:sorin.badea91@xxxxxxxxx>
>unu_sorin@xxxxxxxxx <mailto:unu_sorin@xxxxxxxxx> <mailto:unu_sorin@xxxxxxxxx>
> 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