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!
You can get this with $_POST[$variableName], for example: $_POST['check_item_1'], $_POST['check_element_1'], etc.
If it doesn't work, try $HTTP_POST_VARS instead of $_POST, especially if you're using an old version of PHP (before 4.1).
Note that inside functions, you may need to define "global $HTTP_POST_VARS" to get access to the global $HTTP_POST_VARS array (this doesn't hold for $_POST, which is a superglobal).
but I would recommend changing the name of the select list from check_element_$num to check_element[]. If you do that then you have much more control over the post variable incase you want to add something else to be posted. If you do that then you can do this:
shotos wrote:is there a way i can get the information back with a variable?
example: $_POST['check_item_$num']
cuz i intend on looping it.
Sure. Well you'd need to use double quotes, otherwise $num won't be evaluated. But basically $_POST[<anything that evaluates to a post variable name>] will do.