Thelight002
03-17-2007, 09:36 PM
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
Thelight002
03-19-2007, 02:45 AM
there is no one who may help?
i have a small budget if that will help and will pay
god bless
djr33
03-19-2007, 03:27 AM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.