

ID: 514
Viewed: 4800
Added: Oct 03, 2003
Version: all



Snippet uploaded by: Aaron Campbell
Written By: Aaron D. Campbell
Demo: Sorry, no demo



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:
picture.php?picture=pic.jpg&alt=AltText&alttitle=PicTitleForIE&title=PageTitle
Make sure that spaces get replaced with %20 and that &'s are replaced with & in all your links.
picture.php?picture=pic.jpg&alt=AltText&alttitle=PicTitleForIE&title=PageTitle
Make sure that spaces get replaced with %20 and that &'s are replaced with & in all your links.
<!---Head--->
<?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>
<!---Body--->
<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>
</div>
No Comments to show


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
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.