Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4334200
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:29:48+00:00 2026-05-21T10:29:48+00:00

A client of mine asked me if i can find a solution for this

  • 0

A client of mine asked me if i can find a solution for this problem.
His website (still a WIP) http://welkommagazine.nl/luuk/ has a form. The form obviously uses a sendmail script to send the form to e-mail. From thereon he manually copy/pastes all the submissions to excel.

What he wants is that the forms online automaticcaly are added to an excel document to save him a lot of work.

Now i am not a programmer, but a designer.. I think this can be done, but i have absolutely no clue how. I googled alot for it and the only thing i found was a dreamweaverplugin.

Is there a way to do this, if so, how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:29:48+00:00Added an answer on May 21, 2026 at 10:29 am

    Found the answer myself. I wrote a PHP code snippet which actually stores the fields comma seperated in a CSV file and sends an email to a desired adress with the filled in fields.

    
    if(isset($_POST['Submit'])){ 
       $pakket = $_POST['pakket']; 
       $extragidsen = $_POST['extragidsen']; 
       $naambedrijf = $_POST['naambedrijf']; 
       $err = ''; 
    
       if(trim($pakket)==''){ 
          $err .= '-Please enter a name
    '; } if(empty($extragidsen)){ $err .= '-Please enter an email address'; } if(strlen($naambedrijf)==0){ $err .= '-Please enter a comment
    '; } if($err!=''){ echo $err; } else{ $filename = 'file.csv'; $somecontent = $pakket . ',' . $extragidsen . ',' . $naambedrijf . "\n"; // Let's make sure the file exists and is writable first. if (is_writable($filename)) { // In our example we're opening $filename in append mode. // The file pointer is at the bottom of the file hence // that's where $somecontent will go when we fwrite() it. if (!$handle = fopen($filename, 'a')) { echo "Cannot open file ($filename)"; exit; } // Write $somecontent to our opened file. if (fwrite($handle, $somecontent) === FALSE) { echo "Cannot write to file ($filename)"; exit; } //--------------------------Set these paramaters-------------------------- // Subject of email sent to you. $subject = 'Inschrijving welkom'; // Your email address. This is where the form information will be sent. $emailadd = 'luuk@luukratief.com'; // Where to redirect after form is processed. $url = 'http://www.google.com'; // Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty. $req = '0'; // --------------------------Do not edit below this line-------------------------- $text = "Results from form:\n\n"; $space = ' '; $line = ' '; foreach ($_POST as $key => $value) { if ($req == '1') { if ($value == '') {echo "$key is empty";die;} } $j = strlen($key); if ($j >= 20) {echo "Name of form element $key cannot be longer than 20 characters";die;} $j = 20 - $j; for ($i = 1; $i '; fclose($handle); } else { echo "The file $filename is not writable"; } } }

    Maybe the code aint that clean as it can be, but eh it works.
    Feel free to clean up the code if you want to 🙂

    I guessed I would answer this myself for the community…
    BTW u need to set “write” rights to “file.csv”
    cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A client of mine has asked me to integrate a 3rd party API into
A client of mine is needing their current website to tie into an online
I'm quite sure this has been asked before but I can't for the life
A potential client of mine has asked whether it is possible to have a
A past client of mine contacted me about doing a rollover menu for his
This could quite possibly be the dumbest question ever asked. Our client wants us
A client of mine uses Oracle 9i's utl_smtp to send mails out notifications to
A client of mine is looking to convert a critical 'application' based on multiple
A new client of mine has a small VB/Access database application written in 2002
Similar questions have been asked, but nothing exactly like mine, so here goes. We

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.