View Single Post
Old 12-21-2007, 02:22 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,231
Quote:
Originally Posted by SmokeyTheBear View Post
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...
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote