Quote:
Originally posted by magnatique
php has to be enabled on the server ;)
also, as I said, replace the * by ?
whatever you put in a url like
?id=test
you call it back ('test')
by writing
<* echo $id;*>
where the * is a ?
|
Register Globals = not only horrible coding habit, but now off by default in later versions of PHP (thank god).
PHP Code:
<?php
$id = $_GET['id'];
echo "$id";
or on one line :
PHP Code:
<?php $id = $_GET['id'];echo "$id";?>
Just trying to get rid of bad habits before they start growing on newbies.
Rory