Thanks for the response Dale. Again, I'm truely a novice when it comes to coding any kind of scripting. I also failed to identify that I'm on XP Home and FrontPage 2003.
I have a series of individual product pages that each "call" the file upload routine to upload an associated image with that particular product. Here is the file upload form code from the html (FrontPage) web page:
Upload Your Picture Here:</font></b><form action="uploader_save4.php" method="post"
enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="600000">
<input type="file" name="file" size="35">
<p></p><input type="submit" name="Upload" value="Upload Picture">
</form>
I would use the file upload form element in FrontPage 2003, but my web hosting uses Unix servers and doesn't support the "sharepoint" services. The following is the code from the uploader_save4.php php script that I found with a search for a "file upload" routine (with my modifications). I only used the javascript because that was all I could find that might have worked to display the alert. If there is another way without it, I'm willing to abandon the javascript.
<?php
if($_FILES[file][size] >= 200000)
{
?>
<script.language=javascript>
<script>
alert('File did not successfully upload. Check the file size. File must be less than 3mb in size. Please try another file.')
</script>
<?php
exit();
}
if(!ereg("image",$_FILES['file']['type']))
{
?>
<script.language=javascript>
<script>
alert('File is not a picture. Please try another file.')
</script>
<?php
exit();
}
copy ($FILES[file][tmp_name], "/home/american/www/www/uploads/" .$FILES[file][name])
or die("Could not copy file");
?>
<script.language=javascript>
<script>
alert('File upload succeeded...')
</script>
I'm sorry, but I didn't quite understand where the line of code you suggested should go.
Is there another method that would, depending on the result from the above code, allow a variable message that I would like to convey to the user, to popup an alert window on the original product page without leaving that product page? Whew! I hope that makes sense.
Thanks again for the help.
Otto...