Michael S. Dunsavage schreef:
On Sun, 2008-08-17 at 22:26 +0100, Ashley Sheridan wrote:
Hi Michael,
...
Heh, actually that wasn't the problem after all. Well php still yells @
me about it, but it does work. In fact someone on this list helped me
before, sorry if I can't remember your name
On Sun, 2008-08-17 at 22:26 +0100, Ashley Sheridan wrote:
> Hi Michael,
>
> It seems that you are trying to use the $selected_state variable in the
> code, but it hasn't been declared yet. To test if a variable exists, you
> can use the isset() function.
>
> Also, there is a quick way of writing
Hi Michael,
It seems that you are trying to use the $selected_state variable in the
code, but it hasn't been declared yet. To test if a variable exists, you
can use the isset() function.
Also, there is a quick way of writing your if/else check on one line.
Here's the changes:
foreach($state_list
I'm having a problem running a form script. It used to work before, but
now when I submit the form an error pops up and it won't write to the
database:
This is the error:
[Sun Aug 17 16:46:54 2008] [error] [client 127.0.0.2] PHP Notice:
Undefined variable: selected_state
in /srv/www/htdocs/djto
4 matches
Mail list logo