Somebody help me!!

Looking for volunteers to join your project? Need help with a script but can't afford to pay? Want to offer your services as a volunteer to build up your portfolio? This is the place for you...

Moderator: General Moderators

d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

can you copy your script here again
ali
Forum Newbie
Posts: 15
Joined: Tue Nov 18, 2003 9:05 pm
Location: Pakistan

Post 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!";
}
?>
Post Reply