Page 2 of 2

Posted: Fri Nov 26, 2004 11:00 am
by curseofthe8ball
I substituted $_POST inplace of $_GET and that same error appears. Any ideas?

Posted: Fri Nov 26, 2004 9:41 pm
by jl
Debug it:

use print_r($_REQUEST) to see all the input you're getting from the page (if any)

remove the js function and try manually selecting multiple items to see if that returns input

use print_r($_POST) to see what you're actually getting in $_POST

if $array might not be an array then try echo $array to see what's in it

make a button to run the javascript function its own to make sure it works as it should, and remove it from the <form> tag

view source to make the HTML you're outputting looks right (in particular the form and select)