Jump to content

Recommended Posts

Posted

Hi All,

 

Happy New Year.

 

Does anyone know how to sent which checkboxes are ticked to another page? I've got a form set up which a few tick boxes that I need sent onto the next page which then sends the email.

 

Cheers,

Steve

Posted

HTML form:

 

 Tom
 Dick
 Harry

 

In the PHP script, $_POST['names'] will be an array containing the values of the checked boxes. E.g. if you tick tom and harry, then you will end up with an array that has two elements, with values of 'tom' and 'harry'.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...