Quote:
Originally Posted by SmokeyTheBear
Code:
<?php
$id = $_GET['id'];
$stuff = file_get_contents("template.txt");
$html = str_replace("123456",$id,$stuff);
echo $html;
?>
save that as index.php
save all your html in a file called template.txt with refcode as 123456
then just call the index.php like index.php?id=5551212
|
For what he needs, <? echo strip_tags($_REQUEST['user']) ; ?> right in the gallery is plenty. No point reading in another file...