1

hey...i need to create a html+php+javascript interface

where i got three text area and i want::::

that if i'll enter some data into text area and pressing submit button,,then it'll enter that textarea's data into a csv file..

pls some one help....

1
  • Please make clear about your question, the best is a simple example shows specifically how it works. Commented Dec 21, 2010 at 6:55

2 Answers 2

1
<?php

$list = arrary(); 
//your array will have all the fields from the form, textfields and textareas

$fp = fopen('output.csv', 'w');

foreach ($list as $fields) {
    fputcsv($fp, $fields);
}

fclose($fp);
?>
Sign up to request clarification or add additional context in comments.

Comments

0

$fp = fopen('file.csv', 'w'); fputcsv($fp, $_GET['TextArea']); fclose($fp);

?>

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.