well, put the
cats you want
into a select
box, give the
select box a
name like cats
so:
Code:
<select
name="cat
s">Ple
ase Select
Cat
<option
value="ca
t1">Av
atar
<option
value="ca
t2">Si
gn
</select>
then once the
form is
submitted, you
need to set the
value of cats
to reflect the
cat you want it
in. so
something
like:
Code:
$catin =
"$_POST[
'cats']"
;
then use $catin
for the
database query
where inserting
the image
type.
Code:
$query =
"INSERT
INTO table(id,
$catin)
VALUES('0',
'$image',)&q
uot;;
so in this case
if the user
chose Avatar,
the query would
insert the
image into the
avatar field
and so on.
I've not
tested this,
its just the
logic i would
use to
accomplish it.
Just because I
dont care,
doesnt mean I
dont
understand. |