473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Html form to excel

Chuck Stroup
I have this html form (below) and need it to send to an excel file. I started with PHP (hence the form action), but am having some serious issues making it work. I wondered if anyone knew how (or could help me find out how) to do this with ASP.

I am self taught (translation: copy, paste, modify, and read a lot), and need this to work for our internal site.

Someone please help.


Expand|Select|Wrap|Line Numbers
  1. <form action="craPOST.php" method="POST" enctype="multipart/form-data" name="cra" id="cra"> 
  2.   <label><b>Employee Name</b><br /> 
  3.   <select name="Name" id="Name"> 
  4. <option>Employee Name</option> 
  5. <option>Employee Name</option> 
  6. <option>Employee Name</option> 
  7. <option>Employee Name</option> 
  8. <option>Employee Name</option> 
  9. <option>Employee Name</option> 
  10. <option>Employee Name</option> 
  11. <option>Employee Name</option> 
  12. <option>Employee Name</option> 
  13. </select> 
  14.   </label> 
  15.   <br /><br /> 
  16.  
  17.   <label><b>Location</b><br /> 
  18.   <select name="Location" id="Location"> 
  19. <option>Cape Coral (North)</option> 
  20. <option>Cape Coral (South)</option> 
  21. <option>Fort Myers</option> 
  22. <option>Golden Gate</option> 
  23. <option>Immokalee</option> 
  24. <option>Labelle</option> 
  25. <option>Lehigh</option> 
  26. <option>Naples</option> 
  27. <option>Port Charlotte</option> 
  28. <option>Punta Gorda</option> 
  29. </select> 
  30.   </label> 
  31.   <br /><br /> 
  32.  
  33.   <label><b>Organization</b><br /> 
  34.   <select name="Organization" id="Organization"> 
  35. <option>Organization 1</option> 
  36. <option>Organization 1</option> 
  37. <option>Organization 1</option> 
  38. <option>Organization 1</option> 
  39. <option>Organization 1</option> 
  40. <option>Other (please specify in description)</option> 
  41. </select> 
  42.   </label> 
  43.   <br /><br />   
  44.  
  45.   <label><b>Affliation</b><br /> 
  46.   <select name="Affiliation" id="Affiliation"> 
  47. <option>Volunteer</option> 
  48. <option>Member</option> 
  49. <option>Board Member</option> 
  50. </select> 
  51.   </label> 
  52.   <p><br /> 
  53.       <br /> 
  54.  
  55.       <b>Hours Donated</b><br /> 
  56.       <input name="Hours" type="text" maxlength="5" /> 
  57.     <br /> 
  58.     <br /> 
  59.  
  60.       <b>Description of Service</b><br /> 
  61.       <textarea name="Description" cols="40" rows="5"></textarea> 
  62. </p> 
  63.   <p> 
  64.     <label> 
  65.     <input type="submit" name="submit" id="submit" value="Submit" /> 
  66.     </label> 
  67. </p> 
  68. </form> 
  69.  
  70.  
Aug 18 '10 #1
4 2253
jhardman
3,406 Expert 2GB
I assume you are using your excel file as a simple db table - so I would use an adodb connection (use the microsoft jet DB engine) and add records using the standard adodb.recordset.add() function.

Jared
Aug 25 '10 #2
You just spoke Greek to me... sorry I am really new to this.
Aug 25 '10 #3
jhardman
3,406 Expert 2GB
1- is your excell sheet in the form of:
header header header header
data data data data
data data data data
etc? If so, you have set it up like a database. The easiest way to work with a db in ASP is to use a built-in component called "adodb". Here is a useful tutorial.

Jared
Sep 20 '10 #4
thanks I will try that.
Sep 20 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Angus Comber | last post by:
Hello I can run a command as below: start www.iteloffice.com this launches my web browser and opens up the url www.iteloffice.com What I want to do is open a particular web page and then...
16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
2
by: Mark | last post by:
Hi all, I have a WYSIWYG editor which allows people to insert a form into a page. This information is stored in a database and at run-time is displayed inside a content placeholder (I'm using...
0
by: bp_jobemail | last post by:
I'm trying to use PHP to wrap the output of an HTML form before it goes into a precompiled C cgi script. Essentially, the company that I work for uses a purchased precompiled c program for their...
4
by: sandeep123456 | last post by:
hi, can we send data from html to excel sheet using java script sandeep
2
by: Darkengel | last post by:
I have an HTML form that auto generate an email to specific users w/the information provided in that form. I need to compile all that info into a single excel doc. Is there a way to have it...
1
by: Nosferatum | last post by:
I tried to combine a script which process a web form and mails the result, and at the same time stores the entered info into a excel-file on the server. But I just can't make it work. Does it exist...
9
by: dhtml | last post by:
I have written an article "Unsafe Names for HTML Form Controls". <URL: http://jibbering.com/faq/names/ > I would appreciate any reviews, technical or otherwise. Garrett --...
3
by: mr3573 | last post by:
i want to save an excel file as html. the problem is , i want to keep the selected freez pane in html form too. it it possible?. i'm beginner and maybe that will be possible by some software. one way...
1
by: rizwanrajput | last post by:
I am using C# 2.0 and developing an application to convert a PDF file into HTML, Word, Excel and Image (GIF,JPEG,PNG,TIFF). Is there any free library / class available for that?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.