|
|
Forum Member
Group: Forum Members Last Login: 2/9/2007 9:47:28 PM Posts: 28, Visits: 21
|
|
I have just started with my home-based training in PHP but I am developing a simple website now. I want to collect information about my visitors such as
1) Name
2) Email
3) From what site they came from
4) Date they visited the site or signed-up
5) IP address
How can I implement this using PHP? |
|
|
|
Junior Member
Group: Forum Members Last Login: 2/5/2007 4:59:06 PM Posts: 15, Visits: 6
|
|
Not all your information requirements can be captured by the built in functions of PHP. Date and time logged in and IP address would not be a problem. All the rest require inputs from the user. The program can be done without the need for a database but it would be better if your program is database driven. What you do is create your PHP program for the input form which will accept inputs from the user and store these to your database. |
|
|
|
Junior Member
Group: Forum Members Last Login: 2/7/2007 3:43:42 PM Posts: 18, Visits: 23
|
|
You need to be more specific with where and how you would like the information stored, whether in a flat file database or in a MySql or in a PostgreSql database. |
|
|
|
Forum Member
Group: Forum Members Last Login: 2/9/2007 9:47:28 PM Posts: 28, Visits: 21
|
|
I want all data to be stored in a mySQL database. I'll be adding more fields to the list but for information purposes, I think those fields are enough. I'll do the revision of the code on my later when I got the basic information. I need the PHP code to store and retrieve the information from mySQL database. Thanks for the help. |
|
|
|
Forum Member
Group: Forum Members Last Login: 2/18/2007 12:58:12 PM Posts: 36, Visits: 4
|
|
Ah okay you should check out www.hotscripts.net for php scripts that would handle this task for you. |
|
|
|
Junior Member
Group: Forum Members Last Login: 2/18/2007 1:24:19 PM Posts: 14, Visits: 2
|
|
Yeah I've used hotscripts for my website scripts...it has most of what I need although I still modify some of the scripts (GNU) so it's still legal. |
|
|
|
Junior Member
Group: Forum Members Last Login: 6/14/2007 3:53:06 PM Posts: 11, Visits: 7
|
|
Basically you want user to input something in HTML form and use either POST or GET send to PHP...
then PHP send to database.
WebDevLogs.com
|
|
|
|
Forum Newbie
Group: Forum Members Last Login: 10/27/2009 1:52:54 AM Posts: 3, Visits: 21
|
|
The following tutorials might help
How to get email from an HTML form submission
PHP form tutorial |
|
|
|
Junior Member
Group: Forum Members Last Login: 4/3/2009 8:21:55 AM Posts: 12, Visits: 15
|
|
|
|
|
Junior Member
Group: Forum Members Last Login: 4/13/2009 7:35:58 PM Posts: 14, Visits: 3
|
|
You can create this application in seconds with my code generator at www.treeofmonkeys.org/codegen.php
|
|