Not a Member Yet,
Click here to Register

ID: 514
Viewed: 4836
Added: Oct 03, 2003
Version: all
Snippet uploaded by: Aaron Campbell
Written By: Aaron D. Campbell
Demo: Sorry, no demo

User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

This is a simple picture.php file that lets you pass it the img src, the alt, the page title, and the alternate title for the image. You would call it like this:

Make sure that spaces get replaced with %20 and that &'s are replaced with & in all your links.

<?php if (!$_GET['picture'])
$picture = "";
} else {
$picture = $_GET['picture'];
<?php if (!$_GET['alt'])
$alt = "picture";
} else {
$alt = stripslashes($_GET["alt"]);
<?php if (!$_GET['alttitle'])
$alttitle = $alt;
} else {
$alttitle = stripslashes($_GET["alttitle"]);
<?php if (!$_GET['title'])
$title = $alt;
} else {
$title = stripslashes($_GET["title"]);
<title><? echo $title ?></title>


 <div align="center"><a href="javascript:history.back(1)">Back</a>

<img src="images/<? echo $picture ?>" alt="<? echo $alt ?>" title="<? echo $alttitle ?>" />

<a href="javascript:history.back(1)">Back</a>

No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.

Replying to a Comment...

Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2024 All Rights Reserved. Conditions
Do NOT follow this link or you will be banned from the site!