Results 1 to 3 of 3

Thread: inputting data to a csv from webpage

  1. #1
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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

  2. #2
    Join Date
    Mar 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    there is no one who may help?

    i have a small budget if that will help and will pay

    god bless

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •