Note that there are some explanatory texts on larger screens.

plurals
  1. POInput field added through javascript not in PHP $_POST variable. How to fix this?
    primarykey
    data
    text
    <p>I have a form inside an html table.</p> <p>I am dynamically adding input fields to a form through jquery. When I took var dump while submitting the form, the $_POST array does not have the added fields. Why is it happening? </p> <p>Here is how my js looks like:</p> <pre><code>$('#add-more-del-areas').live('click',function(e){ var del_area_count = $('[name=number_of_delivery_areas]').val(); var new_count = (parseInt(del_area_count)+1); var tr_html = '&lt;tr&gt;'+ '&lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Delivery Area '+new_count+'&lt;/strong&gt;&lt;/td&gt;'+ '&lt;td&gt;'+ '&lt;input name="d_area'+new_count+'" type="text" size="50" value=""/&gt;'+ '&lt;div class="area-display-container" id="test'+new_count+'-display"&gt;&lt;/div&gt;'+ '&lt;div&gt;'+ '&lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test'+new_count+'"/&gt;'+ '&lt;div class="test-content" id="test'+new_count+'-content"&gt;&lt;/div&gt;'+ '&lt;/div&gt;'+ '&lt;/td&gt;'+ '&lt;/tr&gt;'+ '&lt;tr id="del_area-'+new_count+'" bgcolor="#FF9933"&gt;'+ '&lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area '+new_count+'&lt;/strong&gt;&lt;/td&gt;'+ '&lt;td&gt;&lt;input name="m_order'+new_count+'" type="text" size="50" value="0"&gt;&lt;/td&gt;'+ '&lt;/tr&gt;'; //$('#del_area-'+del_area_count).after(tr_html); $(tr_html).insertAfter('#del_area-'+del_area_count); big_cms.auto_suggest_({id: 'test'+new_count,input_field: 'd_area'+new_count}); $('[name=number_of_delivery_areas]').val(new_count); e.preventDefault(); }); </code></pre> <p>Though html is pathetic and too long still, here it is:</p> <pre><code>&lt;table width="840" border="0" cellpadding="0" cellspacing="0" style="border: #57414D 4px Solid; margin:auto;"&gt; &lt;tr&gt; &lt;td height="20px" bgcolor="#57414D" align="center" colspan="2"&gt;&lt;span style="font-family:arial; font-size:13px; color:#ffffff"&gt;&lt;b&gt;You can add/edit Restaurant/Management content here!!&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php if ($bgclass == "bgExtraLightGray") $bgclass = "bgWhite"; else $bgclass = "bgExtraLightGray"; ?&gt; &lt;form name="frmCatPopup" method="POST" enctype="multipart/form-data" onSubmit="return ValidateContactForm();"&gt; &lt;tr align="center" bgcolor="#FF9933" class="&lt;?php echo($bgclass); ?&gt;"&gt; &lt;td colspan="2" class="note"&gt;&amp;nbsp;&lt;?php echo($errMsg); ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td width="40%" class="heading1" style="padding-left:10px"&gt;&lt;strong&gt;Register Name&lt;/strong&gt;&lt;/td&gt; &lt;td width="60%" style="padding-bottom:4px;"&gt;&lt;select name="name" class="restar_txtbox" style="width:326px;"&gt; &lt;?php $quer_l="select * from ".$tableprefix."restaurant_sign_up"; $cmd_l=mysql_query($quer_l); while($res_l=mysql_fetch_array($cmd_l)) { ?&gt; &lt;option value="&lt;?php echo $res_l['fld_id']; ?&gt;" &lt;?php if($rs['signup_id']==$res_l['fld_id']) echo"selected";?&gt;&gt;&lt;?php echo $res_l['fld_contact_person']; ?&gt;&lt;/option&gt; &lt;?php } ?&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td width="40%" class="heading1" style="padding-left:10px"&gt;&lt;strong&gt;Restaurant Name&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input type="text" name="rest_name" size="50" value="&lt;?php echo $rs['fld_name'];?&gt;"/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="heading1" style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Address&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt; &lt;textarea rows="3" cols="38" name="address" id="address" value="&lt;?php echo($rs["fld_address"]); ?&gt;" size="50"&gt; &lt;?php echo($rs["fld_address"]); ?&gt; &lt;/textarea&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td class="heading1" style="padding-left:10px"&gt;&lt;strong&gt;Location&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;select name="loc" style="width:326px;" &gt;&lt;!--onchange="locat(this.value)"--&gt; &lt;option&gt;Select Location&lt;/option&gt; &lt;?php $quer_l="select * from ".$tableprefix."location where location_status='1'"; $cmd_l=mysql_query($quer_l); while($res_l=mysql_fetch_array($cmd_l)) { ?&gt; &lt;option value="&lt;?php echo $res_l['location_id']; ?&gt;" &lt;?php if($rs['location_id']==$res_l['location_id']) echo"selected";?&gt;&gt;&lt;?php echo $res_l['name']; ?&gt;&lt;/option&gt; &lt;?php } ?&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Area&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt; &lt;?php /*?&gt;&lt;div id="area"&gt;&lt;select name="area" style="width:326px;"&gt; &lt;option value="asap"&gt;Select Location First&lt;/option&gt; &lt;/select&gt; &lt;/div&gt;&lt;?php */?&gt; &lt;select name="area" style="width:326px;"&gt; &lt;?php $quer_a="select * from ".$tableprefix."area where status='1'"; $cmd_a=mysql_query($quer_a); while($res_a=mysql_fetch_array($cmd_a)) { ?&gt; &lt;option value="&lt;?php echo $res_a['area_id']; ?&gt;" &lt;?php if($rs['area_id']==$res_a['area_id']) echo"selected";?&gt;&gt;&lt;?php echo $res_a['area_name']; ?&gt;&lt;/option&gt; &lt;?php } ?&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Opening Time&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="openingtime_start" type="text" id="openingtime_start" value=" &lt;?php $q1=$rs["fld_openingtime_start"]; $q=strlen($rs["fld_openingtime_start"]); $S=substr("$q1","-$q","-2"); $S4=substr("$q1","-2","2"); echo $S; ?&gt;"&gt; &lt;select name="start"&gt; &lt;option value="am" &lt;?php if($S4=="am"){echo "selected";}?&gt;&gt;am&lt;/option&gt; &lt;option value="pm" &lt;?php if($S4=="pm"){echo "selected";}?&gt;&gt;pm&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Closing Time&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt; &lt;input name="closingtime_start" type="text" class="restar_txtbox" id="closingtime_start" value=" &lt;?php $q6=$rs["fld_closingtime_start"]; $q7=strlen($rs["fld_closingtime_start"]); $S3=substr("$q6","-$q7","-2"); $S4=substr("$q6","-2","2"); echo $S3; ?&gt;"&gt; &lt;select name="end"&gt; &lt;option value="am"&lt;?php if($S4=="am"){echo "selected";}?&gt;&gt;am&lt;/option&gt; &lt;option value="pm" &lt;?php if($S4=="pm"){echo "selected";}?&gt;&gt;pm&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Opening Time&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt; &lt;input name="openingtime_start1" type="text" class="restar_txtbox" id="openingtime_start1" value=" &lt;?php $q4=$rs["fld_openingtime_start1"]; $q5=strlen($rs["fld_openingtime_start1"]); $S2=substr("$q4","-$q5","-2"); $S4=substr("$q4","-2","2"); echo $S2; ?&gt;"&gt; &lt;select name="start1"&gt; &lt;option value="am" &lt;?php if($S4=="am"){echo "selected";}?&gt;&gt;am&lt;/option&gt; &lt;option value="pm" &lt;?php if($S4=="pm"){echo "selected";}?&gt;&gt;pm&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Closing Time&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt; &lt;input name="closingtime_start1" type="text" class="restar_txtbox" id="closingtime_start1" value=" &lt;?php $q2=$rs["fld_closingtime_start1"]; $q3=strlen($rs["fld_closingtime_start1"]); $S1=substr("$q2","-$q3","-2"); $S4=substr("$q4","-2","2"); echo $S1; ?&gt;"&gt; &lt;select name="end1"&gt; &lt;option value="am" &lt;?php if($S4=="am"){echo "selected";}?&gt;&gt;am&lt;/option&gt; &lt;option value="pm" &lt;?php if($S4=="pm"){echo "selected";}?&gt;&gt;pm&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Delivery Fee&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input type="text" name="delivery_fee" value="&lt;?php echo($rs["fld_deliveryfee"]); ?&gt;" size="50"&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Cuisines&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt; &lt;select name="cuisines[]" id="cuisines[]" style="width:326px;" multiple="multiple"&gt; &lt;?php $quer_l="select * from ".$tableprefix."cuisines where status='1'"; $cmd_l=mysql_query($quer_l); $allCuisines = array(); while($row = mysql_fetch_assoc($cmd_l)) { $allCuisines[] = $row; } //[BIG-3] In case there are multiple cuisines selected, they were not being pulled back from DB for display at frontend. $cuisineIds = explode(',',$rs['fld_cuisines']); // In the $cuisineIds, all the cuisines selected from DB get stored foreach( $allCuisines as $res_l) //Looping on all cuisines as they all need to be echoed once, as well as comparing the condition for a match to the Cuisines originally associated with restaurant { ?&gt; &lt;option value="&lt;?php echo $res_l['cuisines_id']; ?&gt;" &lt;?php foreach ( $cuisineIds as $cuisId ) { if($cuisId ==$res_l['cuisines_id']) echo"selected"; } ?&gt; &gt; &lt;?php echo $res_l['cuisines_name']; ?&gt;&lt;/option&gt; &lt;?php } ?&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Pure Veg&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input type="checkbox" name="veg_flag" &lt;?php if(isSet($rs["veg_flag"]) &amp;&amp; $rs['veg_flag']==1) echo("checked='checked'"); ?&gt; value="1"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;!--&lt;/td&gt; &lt;/tr&gt; --&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Min Order&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input type="text" name="min_order" value=" &lt;?php echo($rs["fld_minorder"]); ?&gt;" size="50"/&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Phone&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt;&lt;input name="phone" type="text" id="phone" size="50" value="&lt;?php echo($rs["fld_phone"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Upload 1&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="photos" type="file" size="38" id="photos" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;upload 2&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt;&lt;input name="videos" type="file" id="videos" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Rating&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="rating" type="text" id="rating" value="&lt;?php echo($rs["fld_rating"]); ?&gt;" size="50"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;!--&lt;/td&gt;&lt;/tr&gt; --&gt; &lt;tr bgcolor="#fff001"&gt; &lt;td class="heading1" style="padding-left:10px"&gt;&lt;strong&gt;Restaurent Close Day&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;select name="day" style="width:200px;" &gt;&lt;!--onchange="locat(this.value)"--&gt; &lt;option value="0"&gt;Select Day&lt;/option&gt; &lt;option value="1"&gt;Monday&lt;/option&gt; &lt;option value="2"&gt;Tuesday&lt;/option&gt; &lt;option value="3"&gt;Wednesday&lt;/option&gt; &lt;option value="4"&gt;Thursday&lt;/option&gt; &lt;option value="5"&gt;Friday&lt;/option&gt; &lt;option value="6"&gt;Saturday&lt;/option&gt; &lt;option value="7"&gt;Sunday&lt;/option&gt; &lt;/select&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt;&lt;textarea name="desc" type="text" id="desc" cols="38" rows="3" &gt;&lt;?php echo($rs["fld_desc"]); ?&gt;&lt;/textarea&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Info&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;textarea name="info" type="text" id="info" cols="38" rows="3" &gt; &lt;?php echo($rs["fld_info"]); ?&gt;&lt;/textarea&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:4px 0 4px 10px;"&gt;&lt;strong&gt;Specilialities&lt;/strong&gt;&lt;/td&gt; &lt;td style="padding:4px 0 4px 0;"&gt;&lt;input type="text" name="specialities" value="&lt;?php echo($rs['fld_specialities']) ?&gt;" size="50" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933" &gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Delivery Time&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="delivery_time" type="text" id="delivery_time" size="50" value="&lt;?php echo($rs["fld_deliverytime"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Tax&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="tax" type="text" id="tax" size="50" value="&lt;?php echo($rs["fld_tax"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Cost For One&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="cost" type="text" id="cost" size="50" value="&lt;?php echo($rs["fld_cost"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding-left:10px"&gt;&lt;strong&gt;Packaging Charge&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="p_charge" type="text" size="50" value="&lt;?php echo($rs["p_charge"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Label for Tax&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="label_t" type="text" size="50" value="&lt;?php echo($rs["label_t"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;?php if(isset($_GET['fld'])) { $delivery_area_data = Task::getDeliveryAreaData($_GET['fld']); $no_of_del_areas = sizeof($delivery_area_data); if($no_of_del_areas &gt; 0) { echo '&lt;tr&gt;&lt;td&gt;&lt;input type="hidden" name="number_of_delivery_areas" value="'.$no_of_del_areas.'"/&gt;&lt;/td&gt;&lt;/tr&gt;'; for($i=1;$i&lt;=$no_of_del_areas;$i++) { $min_id = $i; $min_order = $delivery_area_data[$i]['min_order']; $area_id_str = implode(',',$delivery_area_data[$i]['area_ids']); $area_name_str = ''; $j = 0; foreach($delivery_area_data[$i]['area_names'] as $name) { $tmp_area_id = $delivery_area_data[$i]['area_ids'][$j]; $area_name_str .= '&lt;span class="area-label" id="test'.$min_id.'-area-'.$tmp_area_id.'"&gt; '.$name.' &lt;span class="test'.$min_id.'-delete-area delete-x" id="delete-area-'.$tmp_area_id.'"&gt;X&lt;/span&gt; &lt;/span&gt;'; $j++; } echo '&lt;tr&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Delivery Area '.$min_id.'&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input name="d_area'.$min_id.'" type="text" size="50" autocomplete="off" value="'.$area_id_str.'"/&gt; &lt;div class="area-display-container" id="test'.$min_id.'-display"&gt;'.$area_name_str.'&lt;/div&gt; &lt;div&gt; &lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test'.$min_id.'"/&gt;&lt;br/&gt; &lt;div class="test-content" id="test'.$min_id.'-content"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="del_area-'.$min_id.'" bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area '.$min_id.'&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="m_order'.$min_id.'" type="text" size="50" value="'.$min_order.'"&gt;&lt;/td&gt; &lt;/tr&gt; '; } echo '&lt;tr&gt; &lt;td&gt; &lt;button id="add-more-del-areas"&gt;Add more&lt;/button&gt; &lt;/td&gt; &lt;/tr&gt;'; } else { ?&gt; &lt;tr&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Delivery Area 1&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input name="d_area1" type="text" size="50" autocomplete="off" value=""/&gt; &lt;div class="area-display-container" id="test1-display"&gt;&lt;/div&gt; &lt;div&gt; &lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test1"/&gt;&lt;br/&gt; &lt;div class="test-content" id="test1-content"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area 1&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="m_order1" type="text" size="50" value=""/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery area 2&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input name="d_area2" type="text" size="50" value=""/&gt; &lt;div class="area-display-container" id="test2-display"&gt;&lt;/div&gt; &lt;div&gt; &lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test2"/&gt; &lt;div class="test-content" id="test2-content"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area 2&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="m_order2" type="text" size="50" value=""/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr &gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery area 3&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input name="d_area3" type="text" size="50" value=""/&gt; &lt;div class="area-display-container" id="test3-display"&gt;&lt;/div&gt; &lt;div&gt; &lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test3"/&gt;&lt;br/&gt; &lt;div class="test-content" id="test3-content"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="del_area-3" bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area 3&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="m_order3" type="text" size="50" value=""/&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;button id="add-more-del-areas"&gt;Add more&lt;/button&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } } else { ?&gt; &lt;tr&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Delivery Area 1&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input name="d_area1" type="text" size="50" autocomplete="off" value=""/&gt; &lt;div class="area-display-container" id="test1-display"&gt;&lt;/div&gt; &lt;div&gt; &lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test1"/&gt;&lt;br/&gt; &lt;div class="test-content" id="test1-content"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area 1&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="m_order1" type="text" size="50" value="&lt;?php //echo($rs["m_order1"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery area 2&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input name="d_area2" type="text" size="50" value=""/&gt; &lt;div class="area-display-container" id="test2-display"&gt;&lt;/div&gt; &lt;div&gt; &lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test2"/&gt; &lt;div class="test-content" id="test2-content"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area 2&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="m_order2" type="text" size="50" value="&lt;?php //echo($rs["m_order2"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr &gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery area 3&lt;/strong&gt;&lt;/td&gt; &lt;td&gt; &lt;input name="d_area3" type="text" size="50" value=""/&gt; &lt;div class="area-display-container" id="test3-display"&gt;&lt;/div&gt; &lt;div&gt; &lt;input class="auto-suggest-input" type="text" autocomplete="off" id="test3"/&gt;&lt;br/&gt; &lt;div class="test-content" id="test3-content"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr id="del_area-3" bgcolor="#FF9933"&gt; &lt;td style="padding:10px 0px 0px 10px;"&gt;&lt;strong&gt;Dilivery charges for area 3&lt;/strong&gt;&lt;/td&gt; &lt;td&gt;&lt;input name="m_order3" type="text" size="50" value="&lt;?php //echo($rs["m_order3"]); ?&gt;"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;button id="add-more-del-areas"&gt;Add more&lt;/button&gt; &lt;/td&gt; &lt;/tr&gt; &lt;?php } ?&gt; &lt;tr&gt; &lt;td colspan="9" align="center" style="padding-top:5px"&gt; &lt;input type="submit" value="Save" name="btnSave" /&gt; &amp;nbsp; &lt;a href="#" onClick="window.close()"&gt;&lt;input type="button" value="cancel"&gt;&lt;/a&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/form&gt; &lt;/table&gt; &lt;div class="clr"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="restar_bottom"&gt;&lt;/div&gt; &lt;/div&gt; &lt;script type="text/javascript" src="../js/jquery-1.7.1.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="cms.js"&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload