...

View Full Version : sending checkbox's value to php



umen
08-15-2002, 08:58 PM
Hello
i have simple question
i have 5 checkbox's in aform i like to delete rows in the db
based on the checked boxes i checked
for example :
i have :
<input type=checkbox name=foo1>
<input type=checkbox name=foo2>
<input type=checkbox name=foo3>
<input type=checkbox name=foo4>
<input type=checkbox name=foo5>

so if i will check foo1 and foo3
it will delete me the row by the id = foo1 and foo3

hope you got my point

Spookster
08-16-2002, 05:39 AM
$sql = delete from tablename where fieldname = '$foo1' or fieldname = '$foo3';

This belongs in the mysql forum.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum