I am having an issue with my image upload script in firefox. The images do upload to my site in the proper place but it dosn't save the link to my database tables.
When this is done in IE the url for the image displays in the text box, then when you save the file it stores the link from the text box to my mysql database table.
NOW when you do this in firefox, the link dosn't show up in the box, and nothing gets saved to my table.
My profile edit script where the user uploads a picture is:
PHP Code:
$content .= "<tr><td><font color=\"black\" size=\"1\" face=\"sans-serif\">Personal Image:</td><td><input type=\"text\" name=\"imageurl\" size=\"20\" maxlength=\"250\" value=\"$imageurl\"> <a href=\"javascript:upload();\">Upload An Image </a><br><br><font color=\"black\" size=\"1\" face=\"sans-serif\">*NOTE IMAGE'S WITH A SPACE IN THE NAME WILL RESULT IN THE IMAGE NOT BEEING PROPERLY DISPLAYED!* png, bmp, jpg and jpeg only. </td></tr>";
echo "An error occurred... please try again.<br>Note: The file type you are uploading may not be an image... please use only files with the following extensions: .jpg, .jpeg, .gif, .png, .bmp.\n";
}
}
switch($op) {
default: index(); break;
case "upload": upload(); break;
}
?>
If you need to view more of my code or have any suggestions please send me an email at mr.clinton.smith@gmail.com or reply to this post.
Last edited by Christian; 02-25-07 at 03:16 AM.
Reason: Please use [php] tags when posting PHP code.