Click Here to Login
Join Computer forums Today


Thread: Php mysql
View Single Post
Old 04-20-2012, 09:18 AM   #2
root
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,065
Default Re: Php mysql

you use th code

<input type=checkbox name="check1" value="1">

the on the PHP page you need to use
vars = $_POST['check1'];

to retrieve the data.

you should probably practice using form elements on an HTML page first and pass those form elements to a PHP page (recieve them using $_GET or $_POST depending on your form method).

wait until you're properly comfortable with using html forms and the get and post methods, and retrieving sent data with your PHP page. THEN you need to start thinking about a database.

the exact SQL you use to put the data into your database will depend on your database design.
__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
 

All times are GMT -5. The time now is 08:27 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2018, vBulletin Solutions, Inc.