View Single Post
Old 12-06-2002, 11:48 AM  
Rory
Confirmed User
 
Join Date: Jul 2002
Location: I Love Ixtapa, Mexico ö
Posts: 616
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
Rory is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote