Hi All,
I'm trying to work out how I can post some data to my database using a | pipe.
So for example I have a simple shopping list, and I want the user to select if they have bought the item or not. Yes have a value, no does not.
http://www.inspireaway.co.uk/test3.php
Now as you will see each item has a value, so if the first two items were bought only (bread & cheese) in my database i'd post the following values in my database column:
100|161|
But how do I do this?
Normally I only post of Value from one set of radio buttons, so i'd do something like:
if (isset($_POST['Submit']))
{
$subsection = $_POST['subsection'];
$result = mysql_query("Insert into db (subsection) values ('$subsection')") or die(mysql_error());
}
But i'm trying to get different values from lots of radio buttons named with a increment on them, I.e. subsection(i++)and post them in one database column, so how would I do it?
Is this possible
Thanks
Chris