[thelist] PHP help please- parsing text to variables
Todd
todd at tofuku.com
Wed Mar 19 17:51:13 CST 2003
Help!!!! I'm trying to save a form. So I write the $http_post_vars to a
text document now how do I get them out?
//write function
$filename ="form.inc";
$handle= fopen($filename,'w+');
if (!$handle){
die ("Could not open file to save.");
}
fputs($handle, $HTTP_POST_VARS);
fclose($handle);
//read
$filename ="form.inc";
$handle = fopen($filename,"r");
if (!$handle){
die ("Could not open file savings.");
}
$contents = fread($handle, filesize($filename));
//?????????
echo "$month $body1 $header1 $body2 $header2";
anyone have an example or script??? I can offer some money for help.
More information about the thelist
mailing list