Anthony Ritter,Helloļ¼
Here is my test result:
Sample Page
Your name:
This paragraph contains a link that passes the name
variable on to the next document.
It's all right under Apache/2.0.44 (Win32) & PHP/4.3.1.what problem you met
is that you turn off the globals
Are you globas set to on or off?
-Original Message-
From: Anthony Ritter
To: [EMAIL PROTECTED]
Sent: 2004-02-15 18:21
Subject: Re: [PHP-WIN] isset() question
If you get a chance please run the following script _without_ entering
a name in the textbox.
Does the same page load after
If you get a chance please run the following script _without_ entering a
name in the textbox.
Does the same page load after you hit submit or does a different page load?
Thank you.
TR
...
Sample Page
Please enter your name:
Your name:
This para
";
}
-Original Message-
From: Svensson, B.A.T. (HKG)
To: '[EMAIL PROTECTED] '
Sent: 2004-02-15 17:51
Subject: RE: [PHP-WIN] isset() question
> Why doesn't the call to !isset() with the negation
> mark loads the nextpage when a name is not entered?
What do you
> Why doesn't the call to !isset() with the negation
> mark loads the nextpage when a name is not entered?
What do you get if you do:
if (isset($a)) {
print '$a is set';
} else {
print '$a is not set';
}
$a = "";
if (isset($a)) {
print '$a is set';
} else {
print '$a is not
The following script is from Kevin Yank's book (Sitepoint).
When I test it _without_ entering a name in the text box and hit submit, the
_next_ page
loads - however the same page should load beacuse of the conditional
if (!isset($name) ):
.
If I replace
!isset()
with
empty()
li