Hi,
I'm new to php.
Say I have a check box which is checked already. Now I need to uncheck
it and when I press the submit button, I should get the unchecked value.
Can anyone help me on this.
One.php
if($qry[0]!=$login_type)
{
echo "<td class=tabhead align=center
style=background-color:#CC66CC><input type=checkbox name=disable
value=a".$count." checked DISABLED /></br>".$slot_value."</td>";
}
else
{
echo "<td class=tabhead align=center
style=background-color:#00CCCC><input type=checkbox name=enable[]
value='--user ".$slot_value." --ne ".$nen." --timespec ".$slt."' checked
></br>".$slot_value."</td>";
}
One.php calls Two.php
Two.php
$enable_slot= $_POST['enable'];
$uncheck_slot= $_POST['uncheck'];
if ($enable_slot){
echo "$enable_slot";
foreach($enable_slot as &$a) {
echo "<p>".$a." --unreserve</p>";
}
}
I get only the results only if checked. I think I'm doing a mistake in
the code in red font.
regards,
-rummy
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of German
Geek
Sent: Friday, April 17, 2009 9:47 AM
To: Ramesh Marimuthu (WT01 - Telecom Equipment)
Cc: [email protected]
Subject: Re: [PHP] pup
>From What i learned, yes you can write pup here. Does anyone print this
mailing list? wtf?? i keep overestimating people's intelligence, im
sorry!
Tim-Hinnerk Heuer
http://www.ihostnz.com
Charles de Gaulle
<http://www.brainyquote.com/quotes/authors/c/charles_de_gaulle.html> -
"The better I get to know men, the more I find myself loving dogs."
2009/4/17 <[email protected]>
Hi,
I'm new to this list. Can I post PUP questions to this list?
regards,
-ramesh
P Save a tree...please don't print this e-mail unless you really
need to
Please do not print this email unless it is absolutely
necessary.
The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence
of viruses. The company accepts no liability for any damage caused by
any virus transmitted by this email.
www.wipro.com
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email.
www.wipro.com