Re: POST in Apache server

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

 



Did you add a submit button to the page?

On 12/15/06, Richard Lynch <ceo@xxxxxxxxx> 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



--
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