2

I have a list of checkboxes like you would see in most email clients (You tick a box press delete then it deletes an email).

<input type="checkbox" value="yes" name="box[]" />

The problem stands here ...

print_r($_POST['box']);//Returns nothing at all ...

var_dump($_POST['box']);// returns null...

I was reading something about register globals that php5 has turned it off for security reason.

Does anyone know what my options are ?

1
  • 1
    Me being Captain Obvious: Have you explicitly set method="post" as a form attribute? The default method is get (try var_dump($_GET);) Commented Apr 20, 2010 at 11:37

1 Answer 1

2

Just found out by playing about with values.

Make sure you check for the enctype attribute on the tag

should be <form method="post" enctype="multipart/form-data">

Hope someone else could find this helpful .

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.