Re: Newbie Three
- From: Geoff Berrow <blthecat@xxxxxxxxxxx>
- Date: Mon, 09 Jul 2007 13:54:51 +0100
Message-ID: <FbWdnbdgd6g9hw_bnZ2dnUVZ_vCknZ2d@xxxxxxxxxxx> from Jerry
Stuckle contained the following:
You're problem is these values aren't being passed to your script.
For instance, your first message references $_POST['field_name_arr'],
but the $_POST array doesn't have an element with an index 'field_name_arr'.
Your next one is looking for $_GET['limit'], which doesn't exist. And
so on.
I suspect this isn't the whole page. He's probably cut a form off
somewhere. The variables obviously don't exist until the form is POSTed
hence the notices.
Probably the easiest was to resolve this is to surround all the form
processing stuff with a conditional
e.g
if(isset($_POST['some_Text_variable_that_should_be_there'])){
//form processing code goes here
}
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
.
- References:
- Newbie Three
- From: Reggie
- Re: Newbie Three
- From: Jerry Stuckle
- Newbie Three
- Prev by Date: Re: Comment form
- Next by Date: Re: Odd spam (slightly OT)
- Previous by thread: Re: Newbie Three
- Next by thread: Re: Newbie Three
- Index(es):