I’m no PHP whiz, so I need help, now please dont say it has been discussed before coz i’m going crazy looking for it on google… Ok heres the problem
I have a HTML form (Call Tracker) at work, I want to write data from that form to a text file, appending it,
i dont have the exact code but you guys know how a form is so this is what i wrote at home, picked random bits from tutorials
[hr]
Untitled Document First name:Last name: <?php $myFile = "testFile.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); $stringData = $_GET['firstname'] + "\n"; fwrite($fh, $stringData); $stringData = $_GET['lastname'] + "\n"; fwrite($fh, $stringData); fclose($fh); ?>
[hr]
something is just not working right plz help me, if I get to know how to fix this then i think i can handle the one in my office