/    Sign up×
Community /Pin to ProfileBookmark

Uploading files within a form

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

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@pyroFeb 05.2003 — [i]Originally posted by Perry [/i]

[B]My ISP doesn't accept PHP codes for security reasons and I assume someone must have written this with JS.[/B][/QUOTE]
Nope, no ones written that in javascript, because it's not possible in javascript. If PHP isn't an option, how about CGI/Perl?
Copy linkTweet thisAlerts:
@khalidali63Feb 05.2003 — 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
Copy linkTweet thisAlerts:
@PerryauthorFeb 05.2003 — 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
Copy linkTweet thisAlerts:
@khalidali63Feb 05.2003 — 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
×

Success!

Help @Perry spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...