Web Analytics Made Easy -
StatCounter writing a file via form - CodingForum

Announcement

Collapse
No announcement yet.

writing a file via form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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)

    Comment


    • #3
      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

      Comment

      Working...
      X