[multi-posted to beginners & beginners-cgi] Hi,
Re: my query - >I'm writing a simple file-upload Perl script. I have all the form and file handling >stuff done. >I want the script to write an HTML message to the user's browser before the upload >begins, you know, like "Upload in progress". Then when the upload completes, I want >to replace that screen with "Upload complete". Many thanks to those who replied. I ended up achieving my goal by a method similar to one of the suggestions. For the record, here it is, briefly: - In a prominent spot on the upload form HTML page, I included a blank, named image. - I changed the Submit button into an ordinary button, which calls a Javascript function onCLick. - The JS function first validates the form, then changes the image source ... - I made up images to indicate various errors, or if none, to indicate upload in progress. - The JS function finally submits the form using the document.form.submit() method. - On completion, the actioned Perl script overwrites the HTML with a completion message. It works great and looks kinda snazzy. Thanks for the help, Martin http://www.musicwomb.org/