Hi,
I have a page which has a listing of items out of the db. the items are listed dinamically. each listed item (linkable) has a checkbox to define whether this item has to be deleted or not. i have also a pager (it works). when i load the page i get the listing and the pager works properly. i can controll the checkboxes (i.e. delete entries) only when i go to the next page (submitting the form). i don't want this. i reach the next page and have to go back (with a link) to the previous page by clicking a link. i would like to stay on the same page! i am not sure how to put the code that it works properly.
if ($_POST[submit]) {
//del of itemse etc.
} else {
the page as i have it now}
when i submit the form the page doesn't reload properly because it stays in the if($_POST[submit]) statement! the pager doesn't work anymore. the only way to sort this out was to go to another page after submitting the form! i would like to prevent this. is there a solution?
thanks mike