Programming Help Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Simple PHP code to collect information Expand / Collapse
Author
Message
Posted 1/23/2007 10:45:24 PM
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?
Post #30
Posted 2/5/2007 3:16:21 PM
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.
Post #198
Posted 2/6/2007 3:32:32 PM
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.
Post #237
Posted 2/7/2007 3:49:55 AM
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.
Post #247
Posted 2/18/2007 1:00:00 PM
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.
Post #361
ph7
Posted 2/18/2007 1:06:08 PM
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.
Post #363
Posted 5/27/2007 10:12:26 AM
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
Post #982
Posted 11/15/2008 6:54:25 AM
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
Post #1979
Posted 4/3/2009 6:33:22 AM
Junior Member



Group: Forum Members
Last Login: 4/3/2009 8:21:55 AM
Posts: 12, Visits: 15
sounds good!

eroc


eroc
Post #2510
Posted 4/13/2009 7:38:14 PM
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

Post #3210
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: ProgrammingHelp, Viral Unity, Matt.Hill, DaveL, Alex.D

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 9:03am

Powered By InstantForum.NET v4.1.4 © 2011
Execution: 0.936. 9 queries. Compression Disabled.