Re: question about $_POST ['something'] array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, January 15, 2008 1:27 am, Luká¹ Moravec wrote:
> I am trying to use a form and php in a same file and when I am using
> the
> form for the first time, Any $_POST index which I use in the form is
> not
> defined (which is logical)...how can I remove any warning about
> undefined
> index of $_POST array...
>
> Example>
>
> Script.php
>
> <form action="script.php" method="post"> <input type="text"
> name=anything>Variable <input type="submit" value="SUBMIT"> </form>
>
> <?php
>
> $anything=$_POST ['anything'];
>
> Echo $anything;
>
> ?>

http://php.net/isset
http://php.net/faq.php

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux