Skip to content

Instantly share code, notes, and snippets.

@backy22
Created February 19, 2015 09:37
Show Gist options
  • Save backy22/2a57c0af97017b424fdf to your computer and use it in GitHub Desktop.
Save backy22/2a57c0af97017b424fdf to your computer and use it in GitHub Desktop.
<?php
$dataFile='ss.dat';
if($_SERVER['REQUEST_METHOD']=='POST' &&
isset($_POST['userhouse'])&&
isset($_POST['userid'])&&
isset($_POST['coinlaundry']) &&
isset($_POST['cost'])
){
$userhouse = $_POST['userhouse'];
$userid = $_POST['userid'];
$coinlaundry = $_POST['coinlaundry'];
$cost = $_POST['cost'];
$newData=$userhouse . "\t" . $userid . "\t" . $coinlaundry . "\t" . $cost . "\n";
$fp=fopen($dataFile,'a');
fwrite($fp,$newData);
fclose($fp);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment