Click to See Complete Forum and Search --> : Uploading files within a form
Perry
02-05-2003, 11:21 AM
Hi there,
Does anyone know of a code that could be used in an online form and from where people could upload files from their computer and send them with the form data.
My ISP doesn't accept PHP codes for security reasons and I assume someone must have written this with JS.
Any ideas would be welcomed.
Thank you for your help
Perry
Originally posted by Perry
My ISP doesn't accept PHP codes for security reasons and I assume someone must have written this with JS.Nope, no ones written that in javascript, because it's not possible in javascript. If PHP isn't an option, how about CGI/Perl?
khalidali63
02-05-2003, 11:25 AM
If you wanted to get a file via email,then I am afraid you have to use some other hard core programming language solution.Ofcourse you can email any file to you but getting it on the other end is the matter.
<input type="file"> will give you the ability to upload and attach a file with your form
cheers
Khalid
Perry
02-05-2003, 01:56 PM
The <submit="file"> tag has been tried out. Doesn't do anything in IE 5.5, just no response.
As for the CGI/Perl script, one has to have acces to a cgi/bin directory I suppose, a method which is not allowed neither (I'll have to see to change my ISP one of these days).
Any other idea ?
Thanks
Perry
khalidali63
02-05-2003, 03:16 PM
Pardone me for being rude,but there is no html element by the name
<submit="file">
therefore it will not work in any browser.
the element is
<input> and it has an attribute "file" type.
And unless there is something else wrong in your code it must work in All browsers regardless.
cheers
Khalid