Posted: Fri Sep 20, 2002 10:21 am
Aha!
You have register_globals on so when your processing script starts
preselectvar has already had its values assigned. Then you assign the
form values to an element of preselectvar.
What you want to do is
don't include the []'s when you want to assign the whole array. In PHP the empty []s tell it to assign whatever come next to the first empty spot of the array, not to overwrite the whole array.
You have register_globals on so when your processing script starts
preselectvar has already had its values assigned. Then you assign the
form values to an element of preselectvar.
What you want to do is
Code: Select all
$preselectvar = $HTTP_POST_VARSї"preselectvar"];