-
inputting data to a csv from webpage
i am trying to set up a small webpage for the church i belong to for sending out information to people.. i want to have some text and combo boxes for information and it is 2 pages long.. i need to make the first page go to a csv and the second page do the same
can anyone help me out with this? it would be greatly appreciated
god bless
-
-
there is no one who may help?
i have a small budget if that will help and will pay
god bless
-
-
This is fairly basic stuff with PHP.
First, you set the form to method="post", and you can get the value of any field using: $_POST['fieldname'];
So, $filed = $_POST['field'];
Then, it's fairly simple, too.
Just use fopen(), fwrite(), and fclose() (f means file in each of those), as documented on http://php.net and then write the data in the right format.
You should be able to read later using a similar method, but perhaps with file(), which automatically splits into an array at line breaks, so you could then split at the commas, and you'd have your data back.
If this gets really large, using a database might be a good idea instead.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks