Search found 3 matches

by RiMMER
Tue Jun 16, 2009 11:20 pm
Forum: PHP - Code
Topic: how to store a checkbox result into sql ?
Replies: 3
Views: 158

Re: how to store a checkbox result into sql ?

I have table categories, let's say: id 1 | foods id 2 | drinks id 3 | sweets And I want to add a new food into table foods, like this: id 1 | bread | 1 // this is a category id it belongs to = foods id 2 | tea | 2 id 3 | cocoo | 2 id 4 | chips and cola | 1,2 id 5 | sugar | 3 I will read it back by j...
by RiMMER
Tue Jun 16, 2009 11:07 pm
Forum: PHP - Code
Topic: Put a value from PHP to INPUT Text?
Replies: 5
Views: 228

Re: Put a value from PHP to INPUT Text?

I don't get what you want to do.

Do you want to take data from SQL and put it into value="" inside the input tag?
by RiMMER
Tue Jun 16, 2009 10:33 pm
Forum: PHP - Code
Topic: how to store a checkbox result into sql ?
Replies: 3
Views: 158

how to store a checkbox result into sql ?

Hello there, I'm new to this forum, so sorry in advance, if I do something wrong. I've got a checklist on my page, which user can check and submit: <input type="checkbox" name="checkbox[]" value="foods" /> <input type="checkbox" name="checkbox[]" val...