Page 2 of 2

Posted: Sun Nov 23, 2003 1:33 pm
by d3ad1ysp0rk
can you copy your script here again

Posted: Sun Nov 23, 2003 9:23 pm
by ali
<?
if(isset($_GET['submit'])){
$file="/l.txt";//where you want to add
$fields=array('add'); //place the field names you want to save into the file here
$fp=fopen($file,"a") or die("Couldn't open file");
foreach($_GET as $name=>$value)
if(in_array($name,$fields))
fwrite($fp,"$name: $value\n") or die("Couldn't write to file");
echo "Thanks for your input!";
}
?>