problems with Forms again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

Well it's Monday :( and my code wont work.

I have a form that dynamically produces tables.  From each cat_detail
any of the checkboxes can be picked, be it the detail itself, levels 1
or 2 or 3, and or a 'yes'.

I can capture the cat_detail in the prob[] array in the next page.  I
can also echo any of the other check boxes if picked.  My problem is
corresponding the detail with the levels. In other words: say you have
two rows and each item has a checkbox that can be checked.

1.  Bad product      1 2 3 yes
2.  Bad Cust Service 1 2 3 yes
3.  etc
4.  etc

Say the user picks # 2 with level 3 and yes.  I can capture which
details the user picks but am having problems linking the level2 with
that particular detail.

If anyone has any ideas please let me know.  PS my supervisor is not
wanting me to use sessions...

Here's the code snipet producing the tables:

********************************************

for($knt = 0;$row = mysql_fetch_row($res3); $knt++)
	{
	$cat_detail = $row[0];
	echo "<tr><td><input type=\"checkbox\" name=\"prob[]\" value =
\"$cat_detail\"></td><td>&nbsp;$cat_detail</td>"
	."<td>High<input type=\"checkbox\" name=\"level_one[]\"
value=\"1\"></td>"
	."<td>Med<input type=\"checkbox\" name=\"level_two[]\"
value=\"2\"></td>"
	."<td>Low<input type=\"checkbox\" name=\"level_three[]\"
value=\"3\"></td>"
	."<td><center><input type=\"checkbox\"
name=\"yes\">&nbsp;Yes</center></td></tr>";

	}
*******************************************

Thanks,
Mignon


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux