Web Hosting Talk







View Full Version : "Email this Page" PHP Script


Newbuyer
06-21-2001, 11:04 PM
Setting up this nifty PHP script on Newbuyer.com:

http://www.hotscripts.com/Detailed/9640.html

Was wondering if there was a way to get the information submitted via this pop-up logged to a text file? I'd like to be able to track who and when someone is using this script. Zolbian? Any help PHP Guru?! :D

ServerRackNet
06-22-2001, 01:15 AM
Just make a simple table to store the following..

sendname, sendemail, recpname, recpemail, date, page

done and done.. much easier than manipulating files anyways.. or

just do thsi

$temp = `echo $sendname, $sendemail, $recpname, $recpemail, $date, $page >> filename.txt` every time the script is run

(SH)Saeed
06-22-2001, 01:37 AM
Originally posted by ServerRackNet
$temp = `echo $sendname, $sendemail, $recpname, $recpemail, $date, $page >> filename.txt

Just make sure you have the line above inside your <?php ?> tag (probably would be best to add it to the end) and that the filename.txt has the right permissions.

Newbuyer
06-22-2001, 08:58 AM
Great. Thanks!