Hi,
I have this code in my form processor, and would like to add selection dropdown, checkboxes and radio buttons, but don’t know how to do it in the same fashion of the other fields.
I got the code from the web, and would like to just integrate the code with similar structure.
I think I can manage the rest of it, if I get the elseif snip.
Thank you
the html example
[php]
Room Choice
Choose One: Single (all booked) Double Triple Quadruple
and the php
[php]//Name
}elseif(!preg_match("/^[a-zA-Z’ -]{2,}/", trim($_POST[‘name’]))){
$error .= “
Name does not pass validation\n”;
//Lastname
}elseif(!preg_match("/^[a-zA-Z’ -]{2,}/", trim($_POST[‘lastname’]))){
$error .= “
Lastname does not pass validation\n”;[/php]