Click Here to Login
Join Computer forums Today

Thread: Php mysql
View Single Post
Old 04-20-2012, 10:18 AM   #2
Site Team
root's Avatar
Join Date: Mar 2004
Posts: 8,070
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 07:20 PM.

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