Re: POST in Apache server

From: Date: Sat, 16 Dec 2006 04:43:41 +0000
Subject: Re: POST in Apache server
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-245891@lists.php.net to get a copy of this message
Did you add a submit button to the page? On 12/15/06, Richard Lynch <ceo@l-i-e.com> wrote:
On Fri, December 15, 2006 7:39 pm, Emiliano wrote:
PHP Notice: Undefined index: val1 in /net/people/user/public_html/cgi-b= in/script.php on line 14
http://php.net/isset
On Fri, December 15, 2006 8:15 pm, Emiliano wrote: sorry for bothering you, but can you please give me few more details about how to use isset to solve my problem? Well, in line 14, where you start using $_GET['val1'] or $_POST['val1'] or $_REQUEST['val1'] without bothering to check if it exists or not, put in a check to see if it exists before you try to use it. Something like: <?php if (isset($_POST['val1']){
    //do something with val1 now that we know it's here
} //don't do anything with 'val1' cuz she's not there ?> -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/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


« previous php.general (#245891) next »