Re: [PHP] Empty $_POST after submit.

[email protected] (Sorin Badea)
Newsgroups php.general
Message-ID <CADcJcD2pw9ihG69DsK2hc1gdEFgo3CtpVLhQSTQ6NbY3n7B8-Q@mail.gmail.com>
Hi,
Did you tried a print_r($_POST) or a var_dump ?


On Thu, Apr 4, 2013 at 1:10 PM, Ninad <[email protected]> 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)
[email protected]
[email protected]
Pagina personala:
http://badeasorin.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.