Re: $_POST and CSV File
- From: Michel Beaussart <michel@xxxxxxxxxxxxxx>
- Date: Thu, 27 Oct 2005 19:23:02 -0700
Michel Beaussart wrote:
Consider the following: <?php setcookie ("start", time()); $array = array("block1.html","block2.html","block3.html"); shuffle($array);
include ("formopen.html");// contains Html Header and Form Tags include("$array[0]"); include("$array[1]"); include("$array[2]"); include ("formclose.html"); // contains html end tags + submit button
?>
I know that the following does not do it.
//Open csv file and grab first row $fp = fopen ("data/data.csv",'a+'); // open file $data = fgetcsv($fp, 1000, ","); // get csv
// write data in a csv file
foreach ($_POST as $data => $v) //data is over written ..:( {
fwrite ($fp, "$v,"); ; }
I am in a dead end :( .
- References:
- $_POST and CSV File
- From: Michel Beaussart
- $_POST and CSV File
- Prev by Date: Re: Jedit
- Next by Date: require_once
- Previous by thread: $_POST and CSV File
- Next by thread: Re: $_POST and CSV File
- Index(es):