Creating texxt files from HTML forms
| SitePoint Sponsor |
Creating texxt files from HTML forms
So...what do you need? Help writing them?
PHP Code:$fp = fopen("file.txt", "w");
fwrite($fp, "Info to the new text file");
fclose($fp);
can i use varibles like this??
$fopen("dat.txt");
$fappend("<br>");
$fappend("first name: ");
$fappend($firnam);
$fappend("<br>");
$fappend("Last Name: ");
$fappend($lasnam);
and the varibles are
$firnam = "bob"
$lasnam = "flog"
and it would come out like this in the text file::::
first name: bob
Last Name: flog
is this how it works???
thanks for the help
Bookmarks