PHP Reorder Script
Moderator: General Moderators
-
curseofthe8ball
- Forum Commoner
- Posts: 73
- Joined: Sun Jun 01, 2003 12:33 am
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)
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)