View Single Post
Old 08-23-2005, 01:48 PM  
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Dirty. Didn't error check it.

Code:
<?PHP
$vars = array();
$submit = false;
if(isset($_POST["name"]))
{
  $vars = $_POST;
  $submit = true;
}
else if (isset($_GET["name"]))
{
  $vars = $_GET;
  $submit = true;
}
if($submit)
{
$fp = fopen("formdata.txt","a");
$str = $vars["name"].",".$vars["email"].",".$vars["phone"]."\n";
fwrite($fp,$str);
fclose($fp);
}
?>
<html>
<form>
........
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote