Changed variabele
| From: | Jan van Schaijk | Date: | Mon, 30 Oct 2000 08:39:23 +0000 |
| Subject: | Changed variabele | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22637@lists.php.net to get a copy of this message | ||
Hi,
I have two questions:
- is a variable like http://.../bla.php3?variabele=1
global?
So, if I use '#include bla2.php3' can I use is in the file bla2.php3 ?
- How can I check if a variable has changed?
I made links in my document like : index.php3?link=home and
index.php3?link=contact
In index.php3 I want to check if a variable has changed, so if a link is
clicked.
Can I do it by this:
if ($link) {
switch ($link)
{
case "home": { echo "<HTML>" }
case "contact": { echo "contact" }
}
$link="";
}
?
Jan van Schaijk