Re: POST in Apache server
| From: | Emiliano | Date: | Sat, 16 Dec 2006 04:48:22 +0000 |
| Subject: | Re: POST in Apache server | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-245893@lists.php.net to get a copy of this message | ||
oh ok, I understand that. However, my problem is different: I need those values that instead are not
found. The question is: why the POST in the chunck of code inside the html doesn't work? Why is
the php script not finding the values posted in the html?
Thanks,
-emiliano
> >> 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?
>
>
------------------------------------------------------
Passa a Infostrada. ADSL e Telefono senza limiti e senza canone Telecom
http://click.libero.it/infostrada16dic06