Jump to content

Menax

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Menax's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I attach the data.csv The last column a/a will save an increasing number each time a user clicks on submit. [attachment deleted by admin]
  2. Hey Guys, I have a php form which writes on a .csv file and works fine. I want to add the following feature: Every time somebody submits the form then the first column on the csv file will take an increasing number +1. The process should be like this: Click submit button => read on .csv the last line with text of first column => add +1 to this number and record it on the .csv => send email to the user with this value. It will be sth like protocol number. I have limited knowledge on PHP. The current write2csv and send email code is the following: if($fp = fopen('file.csv', 'a')) { fputcsv($fp, $list, ';'); fclose($fp); mail("$email",'=?UTF-8?B?'.base64_encode($subject_ep).'?='.'=?UTF-8?B?'.base64_encode($subject).'?=',"$replymessage","From: $replyemail1\r\nReply-To: $replyemail1\r\nContent-Type: text/plain; charset=utf-8\r\nContent-Transfer-Encoding: 8bit\r\n\r\n"); echo $success_sent_msg; }else { echo "fail"; } ?> Where $list is an array with all the variables. Any assistance is appreciated.
  3. Menax

    Hi all!

    I am a PHP newbie from Malta! I have started learning PHP from this book: PHP & Mysql Web Development for Dummies. I hope that i'll find a lot of PHP tips here. Menax
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.