Hi Guys,

I have a script that when you click on an image it returns the full path of the clicked on image to a textbox on another page. Here's a snippett:

HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>STFC Site Admin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../include/styles.css">
<script type="text/javascript">
function returnInfo(imgURL) {
opener.document.news.front_picture.value=imgURL;
this.close();
}
</script>
</head>

<body>

echo '<div align="center"><a onClick="returnInfo(this.firstChild.src);return false;"><img src="../../players_pictures/fronts/'. $rows['thumb_name'] .'"></a></div><br />';
?>

</body>
</html>
But how could I get it to only put the image name in that textbox ie picture.jpg rather than www.myurldomainname.com/image/picture.jpg?

Thanks