hi
parse error means u have missed some semicolumn or unclosed some bracket . over all it means u have some syntax error and u get a line where u have done it.
if it is not on that particular line it can be somewhere near that line where u have left some bracket unclosed.
ya i figured it out...
another question though..
there is a set of checkboxes on one page, about 15..the user can check as many as he/she wants..they all have the same name but different values, so i've created like an array out of the checkbox values...
my question is that on another page, the admin page for the site, i want the same layout of checkboxes to appear but have those boxes checked which the user checked on the first page...is there anyway to do that?
hi riffy
if i am gettting u right try this to keep the status of checkboxes on the second script,
// this is the first file <form action=test2.php method=get>
<input type=checkbox name=test[] value=test0>test0<br>
<input type=checkbox name=test[] value=test1>test1<br>
<input type=checkbox name=test[] value=test2>test2<br>
<input type=checkbox name=test[] value=test3>test3<br>
<input type=submit name=submit value=submit>
</form>
then in test2 u can check if the checkbox is selected by
if(!empty($test[$i])) {
echo "<input type=checkbox name=test value=test[] checked>test.$i<br>";
else
echo "<input type=checkbox name=test value=test[]>test.$i<br>";
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.