Send HTML form data to Excel file then email to user

  • สถานะ: Closed
  • รางวัล: $20
  • ผลงานที่ได้รับ: 6
  • ผู้ชนะ: saddy007

รายละเอียดการประกวด

DESCRIPTION:
I need the ability to send form results to an excel (.xls or xlsx) spreadsheet and then email the user that particular spreadsheet with all the new data in it.
I already have the HTML form built and I can provide an example of the excel file I want.

I need you to build me the code in php that will do all of this for me.


HOW IT SHOULD WORK:
When the internet user completes the form online, I will receive an email with the attached spreadsheet with the form results. (That's all)
Inside the spreadsheet will be all of the data that user entered into the form.



YOU ARE RESPONSIBLE FOR THE FOLLOWING:
- Create a php file which process my form (once it's sent) and make the form results go to Excel.
- Then sending that excel file as an email attachment to me.


TECHNICAL DETAILS:
- The form is already created. Is has 70 fields which are all numbers.

- Example of what is arriving today by email:
Age 1: 50
Age 2: 10

- Server supports
HTML / XHTML / CSS / JS / WAP / WML / XML
PHP
Perl Script
CGI Scripts
Phyton

- HTML Side:
The fields are select values like this:
<select name="age1" required="required" id="age1">
<option value="Ingrese valor" selected="selected"></option>
<option value="0">20</option>
<option value="1">30</option>
<option value="2">40</option>
<option value="3">50</option>
<option value="4">60</option>
<option value="5">70</option>
</select>

-PHP side (now):
username: $nombre
\nage1: $age1
\nage2: $age2
\nage3: $age3


UPDATES:
- Please feel free to send me demos. If I tried the code and it's succesfully, then you are the winner.
- The email attachment should go a defined email in the code. The user never enters his email.
- Lastly, the attachment name will be generate from a variable. Example:
name1.xls
name2.xls
- Responses should arrive in columns. Example
A1: response 1
A2: Response 2

B1: 10
B2: 20
Attached is an example.

ทักษะแนะนำ

คำติชมจากผู้ว่าจ้าง

“Muhammad did an excellent job in a very short time. He also call me later to explain some details about the script he created and he reassured everything was working fine. 5 stars to him! ”

รูปประจำตัว ewhttp, Argentina.

กระดานประกาศ

  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    Can you please send me your server details so that I can check that?

    • 8 ปี ที่ผ่านมา
    1. saddy007
      saddy007
      • 8 ปี ที่ผ่านมา

      Are you working on localhost host or do you have your own online server?

      • 8 ปี ที่ผ่านมา
    2. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      online server

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    Here is the code ( http://creativecp.com/dev/export-csv/form_today.txt ). The code in in text format so just replace it in your file. Please make a backup of your previous file because as I was not able to check the code on your new file, therefore there might occur some errors.

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      When I sent the form, the site stays blank and it doesn't arrive anything to my email. I sending a picture "test_failed"

      • 8 ปี ที่ผ่านมา
    2. saddy007
      saddy007
      • 8 ปี ที่ผ่านมา

      Can you send me your server details?

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    or send me your complete screenshot of browser

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      I've already sent it by "test_failed.png". It's only a part (but the one you need)

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    Please award me the contest once you got it working

    • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    Try this for PHPexcel, http://creativecp.com/dev/export-csv/PHPexcel.zip

    • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    You have to include two PHP libraries, I'm attaching the URL for their zip, just extract those into the folder where the form is. Here is the PHPmailer ( http://creativecp.com/dev/export-csv/PHPmailer.zip ) and the second one is PHPexcel ( http://creativecp.com/dev/export-csv/PHPExcel.zip )

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      http://creativecp.com/dev/export-csv/PHPExcel.zip
      404 error not found

      • 8 ปี ที่ผ่านมา
    2. saddy007
      saddy007
      • 8 ปี ที่ผ่านมา

      http://creativecp.com/dev/export-csv/PHPexcel.zip

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    please read comment in my latest entry of excel file

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      I uploaded the actual code. Just replace the code to fit and we are done.

      • 8 ปี ที่ผ่านมา
    2. saddy007
      saddy007
      • 8 ปี ที่ผ่านมา

      Okay I'm working on it.

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    The file is opening perfectly on my side. Is there any way you can show me what you get?

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      I'm seeing the correct result now

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    Hi, I've updated the excel file as you've said. Please have a look. URL = http://creativecp.com/dev/export-csv/

    • 8 ปี ที่ผ่านมา
    1. saddy007
      saddy007
      • 8 ปี ที่ผ่านมา

      Is there any way you can send me that file or show me the picture so that I can check?

      • 8 ปี ที่ผ่านมา
    2. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      I'm seeing the correct result now

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    Please check my latest entry and read the description. I've uploaded the changes to my server and now it should work fine on your side. URL - http://creativecp.com/dev/export-csv/

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      It's working fine now. I uploaded an image with two minor changes.

      • 8 ปี ที่ผ่านมา
    2. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      I'll upload th HTML form, you code all the entries and we are done.

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    Hi, Please enter a valid excel file. the file you've provided doesn't contain anything. And secondly check the comment in first entry

    • 8 ปี ที่ผ่านมา
    1. saddy007
      saddy007
      • 8 ปี ที่ผ่านมา

      Can you please send me your html file that contains the form?

      • 8 ปี ที่ผ่านมา
    2. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      Muhammad. I uploaded an image in case you still cannot access the file (very strange). I can open it perfectly.

      • 8 ปี ที่ผ่านมา
  • ewhttp
    ผู้จัดการประกวด
    • 8 ปี ที่ผ่านมา

    Hi all.
    Please feel free to send me demos. If I tried the code and it's succesfully, then you are the winner.

    The email attachment should go a defined email in the code. The user never enters his email.

    On the other hand, there was a mistake in the excel format in the brief. It said (XML) instead of saying XLS.

    Lastly, the attachment name will be generate from a variable. Example:
    name1.xls
    name2.xls

    Thanks!

    • 8 ปี ที่ผ่านมา
    1. hpdude
      hpdude
      • 8 ปี ที่ผ่านมา

      Yes, I know, the download option is just for your reference. Can you send a demo file or something on exactly how you want it to be like?

      • 8 ปี ที่ผ่านมา
    2. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      Sure. I attached the file before your answer =)

      • 8 ปี ที่ผ่านมา
  • hpdude
    hpdude
    • 8 ปี ที่ผ่านมา

    Do you want Excel CSV or XML ?

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      XLS or XLSX

      • 8 ปี ที่ผ่านมา
  • saddy007
    saddy007
    • 8 ปี ที่ผ่านมา

    It should only be .xml file OR can be any excel file?

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      it should be a readable format. Any format which I can open instantly. Perhaps .csv is not the best here

      • 8 ปี ที่ผ่านมา
  • Webwhizz
    Webwhizz
    • 8 ปี ที่ผ่านมา

    i can get this done, have you found a solution? or should i just send the code to you?

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      you should send the code

      • 8 ปี ที่ผ่านมา
  • ewhttp
    ผู้จัดการประกวด
    • 8 ปี ที่ผ่านมา

    All: I have updated the details. Thanks

    • 8 ปี ที่ผ่านมา
  • arifjaunpur
    arifjaunpur
    • 8 ปี ที่ผ่านมา

    Is form already created or I have to create and How many fields in this form?

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      The form is already created. Is has 70 fields which are all numbers.

      Example of what is arriving today:
      Age 1: 50
      Age 2: 10

      • 8 ปี ที่ผ่านมา
  • kgajula
    kgajula
    • 8 ปี ที่ผ่านมา

    Hey, I can do it in 1 day, but can I use HTML & JAVA?

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      My server only supports the following:
      HTML / XHTML / CSS / JS / WAP / WML / XML
      PHP
      Perl Script
      CGI Scripts
      Phyton

      • 8 ปี ที่ผ่านมา
  • Webwhizz
    Webwhizz
    • 8 ปี ที่ผ่านมา

    That can be done soonest, all i need is for you to explain the job fully.

    • 8 ปี ที่ผ่านมา
    1. ewhttp
      ผู้จัดการประกวด
      • 8 ปี ที่ผ่านมา

      What questions do you have? I'll be adding all the information in the brief as the questions arrived.

      • 8 ปี ที่ผ่านมา

แสดงความคิดเห็นเพิ่มเติม

วิธีเริ่มต้นจัดการประกวด

  • ประกาศการประกวดของคุณ

    จัดการประกวดของคุณ รวดเร็วและง่ายดาย

  • รอรับผลงานจำนวนมหาศาล

    รอรับผลงานจำนวนมหาศาล จากทั่วโลก

  • มอบรางวัลให้แก่ผลงานที่ดีที่สุด

    มอบรางวัลให้แก่ผลงานที่ดีที่สุด ดาวน์โหลดไฟล์ - ง่ายดาย!

โพสต์การประกวดตอนนี้เลย หรือเข้าร่วมกับเราวันนี้!