Php form

salukigirl

New Member
Messages
78
Reaction score
0
Points
0
Hi I need to create a form driven by php that asks a questionaire and then submit the form results to a place only admin can see them(a password protected part of the site)

But I'm not quite sure how to do that. I can make html forms and submit buttons, but how can I direct the results to a password protected place?

Any samples codes/help is very highly appreciated =3
 

LHVWB

New Member
Messages
1,308
Reaction score
0
Points
0
Try using a program such as 'phpFormGenerator'(which can be installed from fantasico), and then connect it to login system which could be a part of another system such as a content management system or a forum.

To view the actual results you will have to write some of your own code.
 

taekwondokid42

New Member
Messages
268
Reaction score
0
Points
0
Do you know Mysql?

You can have the data put into a mysql table. In a password protected area of the site, you can have a slice of code that retrieves the data from the table. The other (and in my opinion, easier) option is to just look at the data using phpMyAdmin.


A sample code is:


//create mysql connection

$the_data = $_POST['data'];
mysql_query ("INSERT INTO table (data) VALUES ($the_data)");



If you don't know mysql, you can learn at tizag.com
 

oyster.admin

New Member
Messages
16
Reaction score
0
Points
0
Do you know Mysql?

You can have the data put into a mysql table. In a password protected area of the site, you can have a slice of code that retrieves the data from the table. The other (and in my opinion, easier) option is to just look at the data using phpMyAdmin.


A sample code is:


//create mysql connection

$the_data = $_POST['data'];
mysql_query ("INSERT INTO table (data) VALUES ($the_data)");



If you don't know mysql, you can learn at tizag.com

Just my 0.02... using a database as an IPC is not a good idea... :biggrin:
 

woiwky

New Member
Messages
390
Reaction score
0
Points
0
I would like to know how you came to the conclusion that storing survey data is an IPC, oyster.

But anyway, how far along in this are you, saluk? Do you have html pages for the survey as well as the admin area? Do you have the database set up to support this system? Have done anything with phpFormGenerator as verb suggested?

I can probably post some scripts here to fill in whatever blanks you have depending on how much you currently have done.
 
Top