Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    writing a file via form

    Hi!

    I need to write a file (append data) from a form fields in a intranet enviroment. After this file must be read it in excel.

    I suposse it can be done with databases (coldfusion, asp). Is there any cheap and easier solution?.Have you any sugestion, tutorial, link or idea ?

    Thanks in advance

    Joan

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,084
    Thanks
    11
    Thanked 100 Times in 98 Posts
    if you can get PHP set up on your server (PHP is free for win or *NIX)


    PHP Code:
    <?
    while(list($key,$var)=each($_POST)){$yak .=$var.',';}
    $yak .="\r\n";
    $fp=fopen('file.csv','a+');fputs($fp,$yak);fclose($fp);
    ?>
    is simplistic but does the job.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    New Coder
    Join Date
    Jul 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks firepages !

    I know yor solution is good. But in my case, I have not PHP on the server (and the most important... I have not idea about PHP, only javascript -I know it's not so much...-)

    see you

    joan


  •  

    Posting Permissions

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