Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parse error

Status
Not open for further replies.

riffy

Programmer
Mar 29, 2001
106
US
hey guys,

i wanted to know what does it mean when you have a parse error?

thanks
arif
X-) s-)
 
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.

regards
spookie
 
thanks spookie,

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?

if it's confusing, i can post the code...

thanks alot guys
arif
 
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 &quot;<input type=checkbox name=test value=test[] checked>test.$i<br>&quot;;
else
echo &quot;<input type=checkbox name=test value=test[]>test.$i<br>&quot;;

}

and change it according to your requirements,

hope that will help you
regards
spookie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top