Re: setting a global var so that all pages can see var

From: Date: Mon, 17 Nov 2003 12:43:41 +0000
Subject: Re: setting a global var so that all pages can see var
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-169927@lists.php.net to get a copy of this message
PAUL FERRIE wrote:
... add new data to the DB On the links have: <a href="edit.php?tablename=$tablename">View database</a><br>
U are outputting those links incorrectly, because resulting HTML contains "$tablename". Try output those links this way... <a href="edit.php?tablename=<? echo $_GET['tablename'] ?>">View database</a><br> ...or this way <? echo '<a href="edit.php?tablename='.$_GET['tablename'].'">View database</a><br>'; ?> -- Pavel a.k.a. Papi

« previous php.general (#169927) next »