Thank you for the message:
Joined the code and the data needs to go into $code40 when a passenger inserts the different choices for the flight:
echo "<form method=\"post\" action=\"addvariant.php\" ENCTYPE=\"multipart/form-data\" NAME=\"Add\" onSubmit=\"return verify();\">";
echo "<table width='900px' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td class='bg2'>
<table width='100%' border='0' cellpadding='10' cellspacing='1' align='center'>
<tr>
<td align='left' class='bg1'><font color='#027ECD' size='2' face='Verdana, Arial, Helvetica, sans-serif'>DEPART</font></td>
<td align='left' class='bg1'><font color='#027ECD' size='2' face='Verdana, Arial, Helvetica, sans-serif'>DATE</font></td>
<td align='left' class='bg1'><font color='#027ECD' size='2' face='Verdana, Arial, Helvetica, sans-serif'>PASSENGERS</font></td>
</tr>
<tr class='bg1'>";
$requete = $db->query("select title, affprix from ".$db->prefix("variant_categories")." where cid=".$cid."");
list($title, $affprix) = $db->fetch_row($requete);
if($xoopsUser) {
$iddd =$xoopsUser->getVar("uid", "E");
$idd =$xoopsUser->getVar("name", "E");
$idde =$xoopsUser->getVar("email", "E");
}
$time = time();
echo "<td height='90'>
FROM
<input style='height:38px;width:120px;font-size:11pt' type=\"text\" class=\"text\" name=\"region\" size=\"10\" value=\"$regionfrom\" required><br />
TO
<input style='height:38px;width:120px;font-size:11pt' type=\"text\" class=\"text\" name=\"town\" size=\"10\" value=\"$regionto\">
</td>
<td width='60'>
<input style='height:38px;width:135px;font-size:11pt' type=\"date\" class=\"text\" name=\"code13\" size=\"7\" value=\"$code13\" required><br />
<input style='height:38px;width:135px;font-size:11pt' type=\"date\" class=\"text\" name=\"code38\" size=\"7\" value=\"$code38\">
</td>
<td>
<select style='height:40px;width:100px;font-size:11pt' name=\"code8\" value=\"$code8\" class=\"select\">
<option value=\"economy\">Economy</option>
<option value=\"ecopremium\">Ecopremium</option>
<option value=\"Business\">Business</option>
<option value=\"first\">First</option>
</select>
<label>Adults <input style='height:30px;width:43px;font-size:11pt' type='number' name='$code40' value='1' required></label>
<label> Kids(-11yrs) <input style='height:30px;width:43px;font-size:11pt' type='number' name='$code40' value=''></label>
<label>Infants (-2yrs) <input style='height:30px;width:43px;font-size:11pt' type='number' name='$code40' value=''></label>
</td></tr>
<tr class='bg1'>
<td colspan='3' valign='top'>
<table border='0' cellpadding='5' cellspacing='0'>
<tr>
<td colspan='0' align='left' class='bg1'><font color='#027ECD' size='2' face='Verdana, Arial, Helvetica, sans-serif'>OPTIONS</font></td>
</tr>
<tr>
<td><input style='height:15px;width:15px;font-size:6pt' type=\"checkbox\" class=\"text\" name=\"code78\" value=\"+ Export\"> Export Assist</td>
<td><input style='height:15px;width:15px;font-size:6pt' type=\"checkbox\" class=\"text\" name=\"code79\" value=\"+ Customs\"> Customs</td>
<td><input style='height:15px;width:15px;font-size:6pt' type=\"checkbox\" class=\"text\" name=\"code80\" value=\"+ Taxi\"> Taxi</td>
<td><input style='height:15px;width:15px;font-size:6pt' type=\"checkbox\" class=\"text\" name=\"code81\" value=\"+ Hotel\"> Hotel</td>
</tr></table>
</td></tr></table>
</td></tr></table>";
echo "<br />";
echo "<table width='900px' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td valign='top'>
<table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td class='bg2'>
<table width='100%' border='0' cellpadding='10' cellspacing='1' align='center'>
<tr>
<td colspan='2' align='left' class='bg1'><font color='#027ECD' size='2' face='Verdana, Arial, Helvetica, sans-serif'>RECEIVE REFERENCE BY:</font></td>
</tr>
<tr class='bg1'>
<td width='40'></td>
<td><input style='height:40px;width:140px;font-size:11pt' type='text' class='text' name='code16' value='$code16' placeholder='Email' required></td>
</tr>
<tr class='bg1'>
<td></td>
<td><input style='height:40px;width:140px;font-size:11pt' type='text' class='text' name='code10' value='$code10' placeholder='Whatsapp/SMS'></td>
</tr></table></td></tr></table>
<input type=\"hidden\" class=\"text\" name=\"submitter\" size=\"20\" value=\"$idd\"><br />
<input type=\"hidden\" class=\"text\" name=\"email\" size=\"20\" value=\"$idde\">
<input type=\"hidden\" name=\"cid\" value=\"$cid\">
<input type=\"hidden\" name=\"code11\" value=\"air-airline\">
<input type=\"hidden\" name=\"code27\" value=\"activate\">";
echo "</td><td width='150' align='center' valign='top'>";
########## ENTER ########
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0' align='center'><tr><td class='bg2'>
<table width='100%' border='0' cellpadding='10' cellspacing='1' align='center'>
<tr class='bg1'><td align='center'><font color='#027ECD' size='2' face='Verdana, Arial, Helvetica, sans-serif'>DATE & TIME</font></td></tr>
<tr class='bg1'><td height='112' align='center'>
<input type=\"datetime-local\" class=\"text\" name=\"code15\" style='height:40px;width:145px;font-size:11pt' value=\"$code15\" required><br /><br />
<input type=\"hidden\" name=\"usid\" value=\"$iddd\">
<input type=\"hidden\" name=\"op\" value=\"AddVariantOk\">";
if ($moderated == '1') {
if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) {
echo "<input type=\"hidden\" name=\"valid\" value=\"Yes\">"; }
else {
echo "<input type=\"hidden\" name=\"valid\" value=\"No\">"; }}
else {
echo "<input type=\"hidden\" name=\"valid\" value=\"Yes\">"; }
echo "<input type=\"hidden\" name=\"lid\" value=\"0\">
<input type=\"hidden\" name=\"date\" value=\"$time\">
<input style='height:40px;width:80px;font-size:11pt' type=\"submit\" value=\"search\" class=\"button\">
</td></tr>
</table></td></tr></table>";
echo "</form>";