PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hi,
I have problem when I try to keep the selected items still selected after posting the page.
I've found a thread in which this is subject is solved but the solution provided won't work for me.
The code is:
<b>Warning</b>: array_search() [<a href='function.array-search'>function.array-search</a>]: Wrong datatype for second argument in <b>I:\WebServer\DOCEK\suplementos.php</b> on line <b>239</b><br />
Oh, and you're getting an array_search() error probably because initially $_POST['provdist'] isn't set. If you don't wanna use fillInFormValues(), doing something like this at the top of your php code: