Hello all. I have a problem with a PHP script that is probably pretty basic. Basically, when I try to run said script (taken straight from a textbook!) I get the following messages. I will give each message followed by the code line it refers to.
Notice: Undefined variable: submitjoke in
C:\XITAMI\webpages\jokepage.php
on line 34
refers to:
if ($submitjoke == "SUBMIT") {
Notice:Undefined variable: PHP_SELF in
C:\XITAMI\webpages\jokepages.php
on line 61
refers to:
echo("<p><a href='$PHP_SELF?addjoke=1'>" .
I am in the dark about how/where/why the
variables are 'undefined', or how to fix the
problem at all, although it sounds elementary.
I've a hunch that more info would be handy
for diagnostic purposes, but I wanted to
try brevity before posting the entire script
(roughly 70 lines).
Does anybody have a clue to offer? Thanking
you in advance.
-Bill J.