PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
When I mouse over the link on this page the URL parameter returns http://www.mysite.com/\”admin_images_insert.php\” can anyone help me clean up this string?
Below is the little big of code I’m using to produce the link.
Thanks
$message = ($result)?"$file_name uploaded successfully." .'<a href="admin_images_insert.php">'. "Upload main image and details" .' </a>' : "Something is wrong with uploading a file.";
return $message;
if ($result) {
$message = $file_name . 'uploaded successfully. <a href="admin_images_insert.php">Upload main image and details</a>';
} else {
$message = 'Something is wrong with uploading a file.';
}
return $message;
Hi ya,
Thanks for this help. My only problem is that I still get the “ and \ showing up (see below) when I mouse over the link and I’ve no idea where these are coming from?
Any ideas?
Thanks a mil
Brian
Well that's because that output isn't coming the code you gave me.
Read about strings and learn how to fix these things yourself or you will forever be coming back here.