for the poor explanation but i hope this will serve your purpose. if
you have any queries with this feel free to contact me.
regards
keyur
$$$
- Original Message -
From: Jacky [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 19, 2001 1:13 AM
Subject: [PHP] checkbox
Hi all
I have a form with the checkbox like this
form
$query="select id from foo";
$result=($query,$con);
while ($row = mysql_fetch_array($result))
{
input type="checkbox" name="$id" value="on"
}
submit button and stuffs here...
/form
After I submit to next page, at next page, how
After I submit to next page, at next page, how do I check which
check box is checked?
like this?
if ($id=="on") {
do something
}else{
do something
}
Hi
try this assuming you have no toher check boxes called $id
if(isset($id))
{
do something
}else{
do other
}
M@
--
PHP
Jacky wrote:
Hi all
I have a form with the checkbox like this
form
$query="select id from foo";
$result=($query,$con);
while ($row = mysql_fetch_array($result))
{
input type="checkbox" name="$id" value="on"
}
submit button and stuffs here...
/form
One possibility:
4 matches
Mail list logo