question about $_POST ['something'] array
| From: | Lukáš Moravec | Date: | Tue, 15 Jan 2008 07:27:35 +0000 |
| Subject: | question about $_POST ['something'] array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-267277@lists.php.net to get a copy of this message | ||
Hi,
I have one question about $_POST ['something'] array...
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;
?>
Thank you Lukas