| | |
Php Hurdle
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Consider the following:
Hope this would help.
<?php
if(isset($_POST['btnDelete'])){
for($i=1;$i<=4;$i++){
if(isset($_POST['checkbox'.$i])){
echo "<br>".$_POST['checkbox'.$i];
}
}
}
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="">
<table width="301" height="129" border="1" cellpadding="0" cellspacing="1">
<tr>
<td width="21"><strong>Sl</strong></td>
<td width="245"><strong>Item</strong></td>
<td width="31"><strong>Tick</strong></td>
</tr>
<tr>
<td>1</td>
<td>Apple</td>
<td><input type="checkbox" name="checkbox1" value="Apple"></td>
</tr>
<tr>
<td>2</td>
<td>Baby</td>
<td><input type="checkbox" name="checkbox2" value="Baby"></td>
</tr>
<tr>
<td>3</td>
<td>Cat</td>
<td><input type="checkbox" name="checkbox3" value="Cat"></td>
</tr>
<tr>
<td>4</td>
<td>Dog</td>
<td><input type="checkbox" name="checkbox4" value="Dog"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="btnDelete" value="Delete"></td>
<td> </td>
</tr>
</table>
</form>
</body>
</html>Hope this would help.
IF SOMEONE FEELS THAT THEY HAD NEVER MADE A MISTAKE IN THEIR LIFE, THEN IT MEANS THEY HAD NEVER TRIED A NEW THING IN THEIR LIFE
![]() |
Similar Threads
- I need a great web designer and proffesional PHP Coder ~ 10k project (Web Development Job Offers)
- Looking for offshore developers for fulltime work (Web Development Job Offers)
- can't link to included files... y? (C++)
- combo box (PHP)
Other Threads in the PHP Forum
- Previous Thread: php -> classes problem
- Next Thread: Connection problem
Views: 311 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax alexa apache api array beginner beneath binary broadband broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion redirect regex remote script search select server sessions sms smtp soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





