Does anyone know the echo code?

StinkyPeat

Junior Member
Joined
May 19, 2010
Messages
100
Reaction score
46
Hi There

I used to own a warez website were people would click a link and using an echo code the download name would appear on the next site

kinda like this


download.php?id=sex and the city 2


and then when they clicked to the next page the name would still be there

anyone know this code? it was tiny

thanks
 
Code:
<?= $_GET['id'] ?>

You probably want to escape the data coming in from the querystring, though, or I could link you to

Code:
whatever.com/download.php?id=%3Cscript%3Ealert(%22lol%20malicious%20code%22)%3B%3C%2Fscript%3E

and run arbitrary Javascript in your browser. :)
 
if you have an active MySQL Connection

PHP:
<?php

$id = mysql_real_escape_string($_GET['id']);
echo $id;

?>
 
Many Thanks voyevoda. Thats exactly what I was looking for :D
 
Back
Top