PHP Reorder Script

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!

Moderator: General Moderators

curseofthe8ball
Forum Commoner
Posts: 73
Joined: Sun Jun 01, 2003 12:33 am

Post by curseofthe8ball »

I substituted $_POST inplace of $_GET and that same error appears. Any ideas?
jl
Forum Commoner
Posts: 53
Joined: Tue Nov 09, 2004 12:05 am

Post 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)
Post Reply