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 you hit submit or does a different page
load?
Thank you.
TR
...................
<html>
<head>
<title> Sample Page </title>
</head>
<body>
<?php if (!isset($name) ): ?>
<!-- No name has been provided, so we
prompt the user for one. -->
<form action="<?=$PHP_SELF?>" method="get">
Please enter your name: <input type="text" name="name" />
<input type="submit" value="GO" />
</form>
<?php else: ?>
<p>Your name: <?=$name?></p>
<p>This paragraph contains a <a
href="newpage.php?name=<?=urlencode($name)?>">link</a> that passes the
name
variable on to the next document.</p>
<?php endif; ?>
</body>
</html>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php