Help with script to upload image with the browes button on a website

  You are currently not logged in. You can view the forums, but cannot post messages. Log In | Register

11-Mar-10 11:58
I am having problems trying to use your perl script for uploading
images to my form on my website. The upload.cgi, can you send me
the perl scrip tags for the head and the body?

I copied them and there were two heads and two body tags. I don't know perl. All I need is the script for uploading images in a form so my clients can send pictures of their horse through the web.

How many directories do I need? and how many files to I need to make this one script work? I hope you can help me?
I installed on yahoo server: php/mysql platform, it also has perl.
Thanks barbara
11-Mar-10 22:50
Hi Barbara, welcome to the forums!

I assume you're referring to this article:

http://articles.sitepoint.com/article/uploading-files-cgi-perl

There are 2 files you need to create:

1) The HTML page containing the file upload form ("file_upload.html" in the tutorial)

2) The Perl script to handle the file upload and display a success page to the user ("upload.cgi" in the tutorial)

I don't know what you mean about 2 heads and 2 body tags.

Please post the contents of both of your files here so we can take a look and pinpoint the problem. (To make your code look more readable in the forums, use the <> button above the message box to wrap 'code' tags around the code.)

Cheers,
Matt

--
Matt Doyle, Elated
Second Edition of my jQuery Mobile book out now! Learn to build mobile web apps. Free sample chapter: http://store.elated.com/

 
New posts
Old posts

Follow Elated