View Full Version : sending checkbox's value to php

08-15-2002, 09:58 PM
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

08-16-2002, 06: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