Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Input file in webform

Guest
Oct 23, 2012 Oct 23, 2012

Hello,

I would like for the user of a webpage to have the ability to upload an excel document before they submit.  Would anyone have detailed instructions to do so.  I got as far as adding the file field into the form but now I need instructions on writing server-side code to handle the excel file that gets uploaded.

I appreciate any help.

Thanks!

TOPICS
Server side applications
461
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 23, 2012 Oct 23, 2012
LATEST

There are a few ways to accomplish this, none via pure html though.

I suggest using the formmail .php script available at http://www.tectite.com

Allowing your viewers to upload files to you is risky. This particular script has the ability to upload files via your html form, but also protect you from spam and set up conditions to disallow other file types that could load viruses.

It is very well documented and has a step-by-step that will take you through all of the features.

In order for it to work, you will need .php installed on your hosting server. Normally it is and if for some reason it's not, you can usually add it for free via your hosting account user/admin area.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines