View Full Version : displaying images

03-09-2007, 12:48 PM
was wondering if anyone had a snippet for something like this.

i am looking for a script like this


thanks for any help

03-09-2007, 12:56 PM
<a href="site.com"><img src="<?php echo $_GET['image'];?>"></a>

Filepath for the image will be


Simple and very unsecure way of doing it

03-09-2007, 04:47 PM
Simple and very unsecure way of doing it

There is nothing wrong with doing it this way, just make sure you do some security checks.

As always, validate input from $_GET or $_POST.

However, nothing is going to happen if a user changes the query string to show his own picture. All it will do is change how it looks for that person. There is little to gain from it.