The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Contact Form Help!!

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #24908

    I was looking the new tutorials for Website Change Request Form, and I try to change a little bit for checkbox area. I want the checkbox area can POST the multi-select array, and I was search online for the solution which I am stuck. For example, if I select the TEST2 & TEST4 how do I make the post script to send out the two result instead of only one result. I am total a newbie.

    Someone please help me out!!

    Thank you!!

    Here is one of the checkbox example:


    My post script:

    $message .= array();
    if (isset($_POST[“test”])){
    $message .= $_POST[‘test’] . “nn”;

    You are having problems because you have called all your checkboxes "test" and thus the value of the variable is being overwritten.

    If you instead name them "test[]" you will receive a PHP array which contains the values of the selected checkboxes. For example, if the user has marked boxes 2 and 3, you will receive the following array:

    $_POST["test"] = Array ( [0] => Test2 [1] => Test3 )

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.