473,787 Members | 2,881 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to insert radio button data into mysql

1 New Member
i m getting error. its not at all inserting into database.showin g error like as below

Notice: Undefined index: franchise_hours in E:\wamp\www\fra nchasebazaar\ad min_template\ac tion\add_indian _franchisor.php on line 29

Notice: Undefined index: investment in E:\wamp\www\fra nchasebazaar\ad min_template\ac tion\add_indian _franchisor.php on line 36

Notice: Undefined index: franchise_hours in E:\wamp\www\fra nchasebazaar\ad min_template\ac tion\add_indian _franchisor.php on line 39

Notice: Undefined index: franchise_budge t in E:\wamp\www\fra nchasebazaar\ad min_template\ac tion\add_indian _franchisor.php on line 46

Notice: Undefined index: high_investment in E:\wamp\www\fra nchasebazaar\ad min_template\ac tion\add_indian _franchisor.php on line 48
INSERT INTO indian_franchis or(brand_name,e mail_id,passwor d,company_name, number_of_emplo yes,internation al_headquarters ,corporate_addr ess,state,city, pin_code,indian _office,corp_ph one_number,webs ite,mobile_numb er,CEO_name,fra nchise_head,tot al_investment,f ranchise_fees,s pace,number_of_ hours,franchise _presently,seek ing_franchise_i ndia,industry,s egment,multiple _franchise_mode l,number_of_mod el,multiple_tot al_investment,m ultiple_franchi se_fee,multiple _space,mutiple_ hours,summary,p resently_franch isees_india,pre sently_franchis e_world,company _owned,for_wome ns,senior_citiz en,franchise_bu dget,franchise_ at_home,high_in vestment_franch ise,internation al_franchise,ma ster_multiple_f ranchisees,trai ning_marketing, faq,ideal_franc hisee,testimoni al,news,photogr aph,video,prope rty_requirement s,hr_requirment s) values ('', '', '', '', '1-10', '', '', '', ', ', 'yes', '', '', '', '', '1-10', 'No Franchise Fee', '0-100 Sq. Ft', '', 'india', 'bangalore', 'logicshore', 'a', 'yes', '1-3', '', 'nofranchisefee ', '0-100 ', '', '', 'none', 'yes', 'none', 'yes', 'yes', '', 'no', '', 'yes', 'yes', '', '', '', '', '', '', '')ERROR: Column count doesn't match value count at row 1

------------------------------------
my code is as below

mysql_select_db ("franchasebaza ar", $con);
$action= $_REQUEST["action"];
if($action=="sa ve")
{
echo $sql = "INSERT INTO indian_franchis or('brand_name' ,email_id,passw ord,company_nam e,number_of_emp loyes,internati onal_headquarte rs,corporate_ad dress,state,cit y,pin_code,indi an_office,corp_ phone_number,we bsite,mobile_nu mber,CEO_name,f ranchise_head,t otal_investment ,franchise_fees ,space,number_o f_hours,franchi se_presently,se eking_franchise _india,industry ,segment,multip le_franchise_mo del,number_of_m odel,multiple_t otal_investment ,multiple_franc hise_fee,multip le_space,mutipl e_hours,summary ,presently_fran chisees_india,p resently_franch ise_world,compa ny_owned,for_wo mens,senior_cit izen,franchise_ budget,franchis e_at_home,high_ investment_fran chise,internati onal_franchise, master_multiple _franchisees,tr aining_marketin g,faq,ideal_fra nchisee,testimo nial,news,photo graph,video,pro perty_requireme nts,hr_requirme nts) values ('".$_REQUEST['brandname']."',
'".$_REQUEST['email']."',
'".$_REQUEST['password']."',
'".$_REQUEST['companyname']."',
'".$_REQUEST['number_of_empl oyees']."',
'".$_REQUEST['international_ headquarters']."',
'".$_REQUEST['corporate_addr ess']."',
'".$_REQUEST['state']."',
".$_REQUEST['town']."',
".$_REQUEST['pincode']."',
'".$_REQUEST['indian_office']."',
'".$_REQUEST['corporate_phon e_number']."',
'".$_REQUEST['mobile_number']."',
'".$_REQUEST['ceo_name']."',
'".$_REQUEST['franchise_head ']."',
'".$_REQUEST['total_inverstm ent']."',
'".$_REQUEST['feein_dollers']."',
'".$_REQUEST['space']."',
'".$_REQUEST['franchise_hour s']."',
'".$_REQUEST['present_franch ise']."',
'".$_REQUEST['franchiseesini ndia']."',
'".$_REQUEST['industry']."',
'".$_REQUEST['segment']."',
'".$_REQUEST['multiple_model s']."',
'".$_REQUEST['no_of_models']."',
'".$_REQUEST['investment']."',
'".$_REQUEST['fees']."',
'".$_REQUEST['sq_ft']."',
'".$_REQUEST['franchise_hour s']."',
'".$_REQUEST['summary']."',
'".$_REQUEST['in_india']."',
'".$_REQUEST['across_world']."',
'".$_REQUEST['owned_outlets']."',
'".$_REQUEST['womens']."',
'".$_REQUEST['senior_citizen ']."',
'".$_REQUEST['franchise_budg et']."',
'".$_REQUEST['home']."',
'".$_REQUEST['high_investmen t']."',
'".$_REQUEST['international_ franchisor']."',
'".$_REQUEST['master_franchi sees']."',
'".$_REQUEST['training']."',
'".$_REQUEST['faq']."',
'".$_REQUEST['ideal_franchis ee']."',
'".$_REQUEST['testimonial']."',
'".$_REQUEST['news']."',
'".$_REQUEST['photos']."',
'".$_REQUEST['videos']."')";
if($result = mysql_query($sq l ,$con)) {
echo ' Inserted Sucessfull';
header("Locatio n:../users.php");
}
else {
echo "ERROR: ".mysql_error() ;
}
}
else if($action=="ed it") {
echo $sql = "UPDATE indian_franchis or SET brand_name='".$ _REQUEST['brandname']."', email_id='".$_R EQUEST['email']."',password='" .$_REQUEST['password']."' where id=".$_REQUEST['indianid'];
if($result = mysql_query($sq l ,$con))
{
echo 'Information has been Updated';
header("Locatio n:../users.php");
}
else
{
echo "ERROR: ".mysql_error() ;
}
}
else if($action=="de lete")
{

echo $sql = "DELETE from indian_franchis or WHERE id=".$_REQUEST['indianid'];
if($result = mysql_query($sq l ,$con))
{
echo 'Information is deleted';
header("Locatio n:../users.php");
}
else
{
echo "ERROR: ".mysql_error() ;
}

}

?>

---------------------------------------
html code is as below

<table width="100%" border="0" align="center" cellpadding="5" cellspacing="3" >
<tr>
<td width="40%" align="left" valign="top">Na me of the Brand: </td>
<td width="60%" align="left" valign="top"><i nput name="brandname " type="text" id="brandname" />
<input type="hidden" name="action" id="action" value="save"/>
<input type="hidden" name="indianid" id="indianid" value="" /> </td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top"><a href="#">Check availability </a></td>
</tr>
<tr>
<td align="left" valign="top">Yo ur Showcase URL On FranchiseBazar. Com:</td>
<td align="left" valign="top"><s elect name="showcase" id="showcase">
<option value="fb">www. franchisebazar. com/sparkleminds.co m</option>
</select> </td>
</tr>
<tr>
<td align="left" valign="top">Em ail ID<span class="style1"> *</span>:</td>
<td align="left" valign="top"><i nput name="email" type="text" id="email" /></td>
</tr>
<tr>
<td align="left" valign="top">Pa ssword:</td>
<td align="left" valign="top"><i nput name="password" type="text" id="password" /></td>
</tr>
<tr>
<td align="left" valign="top">Co nfirm Password: </td>
<td align="left" valign="top"><i nput name="password1 " type="text" id="password1" /></td>
</tr>

<tr>
<td align="left" valign="top">Na me Of Company:</td>
<td align="left" valign="top"><i nput name="companyna me" type="text" id="companyname " /></td>
</tr>
<tr>
<td align="left" valign="top">To tal No Of Employees:</td>
<td align="left" valign="top"><s elect name="number_of _employees" id="number_of_e mployees">
<option>1-10</option>
<option>10-25</option>
<option>25-100</option>
<option>100-500</option>
<option>500-1000</option>
<option>1000-10000</option>
</select> </td>
</tr>
<tr>
<td align="left" valign="top">In ternational Headquarters at:</td>
<td align="left" valign="top"><i nput name="internati onal_headquarte rs" type="text" id="internation al_headquarters " /></td>
</tr>
<tr>
<td align="left" valign="top">Co rporate Address:</td>
<td align="left" valign="top"><i nput name="corporate _address" type="text" id="corporate_a ddress" /></td>
</tr>
<tr>
<td align="left" valign="top">St ate:</td>
<td align="left" valign="top"><i nput name="state" type="text" id="state" /></td>
</tr>
<tr>
<td align="left" valign="top">Ci ty/Town:</td>
<td align="left" valign="top"><i nput name="town" type="text" id="town" /></td>
</tr>
<tr>
<td align="left" valign="top">Zi p/Pin Code:</td>
<td align="left" valign="top"><i nput name="pincode" type="text" id="pincode" /></td>
</tr>
<tr>
<td align="left" valign="top">Do You Have A India Office/Representation: </td>
<td align="left" valign="top"><s elect name="indian_of fice" id="indian_offi ce">
<option value="yes">yes </option>
<option value="no">no</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Co rporate
Phone Numbers:</td>
<td align="left" valign="top"><i nput name="corporate _phone_number" type="text" id="corporate_p hone_number" /></td>
</tr>
<tr>
<td align="left" valign="top">We bsite:</td>
<td align="left" valign="top"><s elect name="website" id="website">
<option selected="selec ted">www.sparkl eminds.com</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Mo bile Number:</td>
<td align="left" valign="top"><i nput name="mobile_nu mber" type="text" id="mobile_numb er" /></td>
</tr>
<tr>
<td align="left" valign="top">Di rector/CEO Name<span class="style1"> *</span>:</td>
<td align="left" valign="top"><i nput name="ceo_name" type="text" id="ceo_name" /></td>
</tr>
<tr>
<td align="left" valign="top">Fr anchise Head:</td>
<td align="left" valign="top"><i nput name="franchise _head" type="text" id="franchise_h ead" /></td>
</tr>
<tr>
<td align="left" valign="top">To tal Investment:</td>
<td align="left" valign="top"><s elect name="total_inv erstment" id="total_inver stment">
<option>1-10</option>
<option>10-25</option>
<option>25-100</option>
<option>100-500</option>
<option>500-1000</option>
<option>1000-10000</option>
<option>&gt;100 00</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Fr anchise Fee/Any Non Refundable Fee:</td>
<td align="left" valign="top"><t able width="100%" border="0"cellp adding="3" cellspacing="0" >
<tr>
<td width="32%" align="center"> <strong>In US$</strong></td>
<td width="68%" align="left"><s trong>In Indian Rupee</strong></td>
</tr>
<tr>
<td align="center"> <select name="feein_dol lers" id="feein_dolle rs">
<option>No Franchise Fee</option>
<option>50,00 0-1,00,000</option>
<option>1,00,00 0-2,00,000</option>
<option>2,00,00 0-3,00,000</option>
<option>3,00,00 0-5,00,000</option>
<option>5,00,00 0-8,00,000</option>
<option>8,00,00 0-10,00,000</option>
<option>10,00,0 00-20,00,000</option>
<option>20,00,0 00-30,00,000</option>
<option>30,00,0 00-50,00,000</option>
<option>Great er Than 50,00,000</option>
</select></td>
<td align="left"><i nput name="feein_rup ees" type="text" id="feein_rupee s" size="12" /></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top">Sp ace In Sq Ft:</td>
<td align="left" valign="top"><s elect name="space" id="space">
<option>0-100 Sq. Ft</option>
<option>100-250 Sq. Ft</option>
<option>250-500 Sq. Ft</option>
<option>500-750 Sq. Ft</option>
<option>750-1000 Sq. Ft</option>
<option>1000-1500 Sq. Ft</option>
<option>1500-2000 Sq Ft</option>
<option>2000-3000 Sq Ft</option>
<option>3000-5000 Sq. Ft</option>
<option>5000-10000 Sq. Ft</option>
<option>10000-20000 Sq Ft</option>
<option>20000-50000 Sq Ft</option>
<option>50000-100000 Sq Ft</option>
<option>Great er Than 100000 Sq Ft</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">No Of Hours the franchisee will have to put in?</td>
<td height="125" align="left" valign="top"><t able width="80%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="9%"><inp ut name="no_of_hou rs" type="radio" value="hours1" /></td>
<td width="91%">Par t Time&lt;20 Hrs A Week 1/4 Time</td>
</tr>
<tr>
<td><input name="no_of_hou rs" type="radio" value="hours2" /></td>
<td>2/4th Time 20-30 Hrs A Week </td>
</tr>
<tr>
<td><input name="no_of_hou rs" type="radio" value="hours3" /></td>
<td>3/4th Time 30-40 Hrs A Week </td>
</tr>
<tr>
<td><input name="no_of_hou rs" type="radio" value="hours4" /></td>
<td>Full Time. (40+ Hrs/Week)</td>
</tr>
<tr>
<td><input name="no_of_hou rs" type="radio" value="hours5" /></td>
<td>Not required to be present.</td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top">Fr anchisees Presently Available At<span class="style1"> *:</span></td>
<td align="left" valign="top"><s elect name="present_f ranchise" id="present_fra nchise">
<option value="india">I ndia</option>
<option value="pakistan ">Pakistan</option>
<option value="america" >America</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Se eking Franchisees In India At:(Press Ctrl + Down Key To Choose The Exact Locations):</td>
<td align="left" valign="top"><s elect name="franchise esinindia" id="franchisees inindia">
<option value="bangalor e">Bangalore </option>
<option value="mysore"> Mysore</option>
<option value="hassan"> Hassan</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">In dustry<span class="style1"> *</span>:</td>
<td align="left" valign="top"><s elect name="industry" id="industry">
<option value="logicsho re">logicshor e</option>
<option value="infosys" >Infosys</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Se gment Within Industry<span class="style1"> *</span>:</td>
<td align="left" valign="top"><s elect name="segment" id="segment">
<option value="a">a</option>
<option value="b">b</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top">&n bsp;</td>
</tr>
<tr>
<td align="left" valign="top"><s trong>Multiple Formats</strong></td>
<td align="left" valign="top">&n bsp;</td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top">&n bsp;</td>
</tr>
<tr>
<td align="left" valign="top">Do You Operate Multiple Franchise Models:</td>
<td align="left" valign="top"><s elect name="multiple_ models" id="multiple_mo dels">
<option value="yes">yes </option>
<option value="no">no</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Me ntion The Number Of Models You Have:</td>
<td align="left" valign="top"><s elect name="no_of_mod els" id="no_of_model s">
<option>1-3</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">To tal Investment:</td>
<td align="left" valign="top"><s elect name="total_inv estment" id="total_inves tment">
<option value="1-10">1-10</option>
<option value="10-25">10-25</option>
<option value="25-100">25-100</option>
<option value="100-500">100-500</option>
<option value="500-1000">500-1000</option>
<option value="1000-10000">1000-10000</option>
<option value="greatert han10000">&gt;1 0000</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Fr anchise Fee/Any Non Refundable Fee:</td>
<td align="left" valign="top"><s elect name="fees" id="fees">
<option value="nofranch isefee">No Franchise Fee</option>
<option value="50,000-1,00,000">50,00 0-1,00,000</option>
<option value="1,00,000-2,00,000">1,00, 000-2,00,000</option>
<option value="2,00,000-3,00,000">2,00, 000-3,00,000</option>
<option value="3,00,000-5,00,000">3,00, 000-5,00,000</option>
<option value="5,00,000-8,00,000">5,00, 000-8,00,000</option>
<option value="8,00,000-10,00,000">8,00 ,000-10,00,000</option>
<option value="10,00,00 0-20,00,000">10,0 0,000-20,00,000</option>
<option value="20,00,00 0-30,00,000">20,0 0,000-30,00,000</option>
<option value="30,00,00 0-50,00,000">30,0 0,000-50,00,000</option>
<option value="Greater Than 50,00,000">Grea ter Than 50,00,000</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Sp ace In Sq Ft:</td>
<td align="left" valign="top"><s elect name="sq_ft" id="sq_ft">
<option value="0-100 ">0-100 Sq. Ft</option>
<option value="100-250">100-250 Sq. Ft</option>
<option value="250-500">250-500 Sq. Ft</option>
<option value="500-750">500-750 Sq. Ft</option>
<option value="750-1000">750-1000 Sq. Ft</option>
<option value="1000-1500">1000-1500 Sq. Ft</option>
<option value="1500-2000">1500-2000 Sq Ft</option>
<option value="2000-3000">2000-3000 Sq Ft</option>
<option value="3000-5000">3000-5000 Sq. Ft</option>
<option value="5000-10000">5000-10000 Sq. Ft</option>
<option value="10000-20000">10000-20000 Sq Ft</option>
<option value="20000-50000">20000-50000 Sq Ft</option>
<option value="50000-100000">50000-100000 Sq Ft</option>
<option value="&gt;1000 00">Greater Than 100000 Sq Ft</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">No Of Hours the franchisee will have to put in:</td>
<td align="left" valign="top"><t able width="80%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="7%"><inp ut name="franchise _hours" type="radio" value="hour1" /></td>
<td width="93%">2/4th Time 20-30 Hrs A Week </td>
</tr>
<tr>
<td><input name="franchise _hours" type="radio" value="hour2" /></td>
<td>3/4th Time 30-40 Hrs A Week </td>
</tr>
<tr>
<td><input name="franchise _hours" type="radio" value="hour3" /></td>
<td>Not required to be present.</td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top">Su mmary Within 5 Sentences<span class="style1"> *</span>:</td>
<td align="left" valign="top"><t extarea name="summary" cols="30" rows="5" id="summary"></textarea></td>
</tr>
<tr>
<td align="left" valign="top">Ho w many franchisees do you presently have in India:</td>
<td align="left" valign="top"><s elect name="in_india" id="in_india">
<option value="none">no ne</option>
<option value="lessthan 5">Less than 5</option>
<option value="between5-15">Between 5-15</option>
<option value="between1 6-30">Between16-30</option>
<option value="between3 1-100">Between 31-100</option>
<option value="morethan 100">More than 100</option>
<option value="&gt;200" >&gt;200</option>
<option value="&gt;300" >&gt;300</option>
<option value="&gt;500" >&gt;500</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Ho w many franchisees do you have across the world:</td>
<td align="left" valign="top"><s elect name="across_wo rld" id="across_worl d">
<option value="yes">Yes </option>
<option value="lessthan 5">Less than 5</option>
<option value="between5-15">Between 5-15</option>
<option value="between1 6-30">Between16-30</option>
<option value="between3 1-100">Between 31-100</option>
<option value="morethan 100">More than 100</option>
<option value="&gt;200" >&gt;200</option>
<option value="&gt;300" >&gt;300</option>
<option value="&gt;500" >&gt;500</option>
<option>&gt;100 0</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Ho w many company owned outlets do you have:</td>
<td align="left" valign="top"><s elect name="owned_out lets" id="owned_outle ts">
<option value="none">no ne</option>
<option value="lessthan 5">Less than 5</option>
<option value="between5-15">Between 5-15</option>
<option value="between1 6-30">Between16-30</option>
<option value="between3 1-100">Between 31-100</option>
<option value="morethan 100">More than 100</option>
<option value="&gt;200" >&gt;200</option>
<option value="&gt;300" >&gt;300</option>
<option value="&gt;500" >&gt;500</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top">&n bsp;</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"><s trong>Franchise/Business Suitability</strong></td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top">&n bsp;</td>
</tr>
<tr>
<td align="left" valign="top">Is your franchise/Business Opportunity suitable for Women:</td>
<td align="left" valign="top"><s elect name="womens" id="womens">
<option value="yes">yes </option>
<option value="no">no</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Is your franchisee/Business Opportunity suitable for senior citizens, retired professionals &amp;/or people above 45 Yrs of age:</td>
<td align="left" valign="top"><s elect name="senior_ci tizen" id="senior_citi zen">
<option value="yes">yes </option>
<option value="no">no</option>
</select></td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"><t able width="96%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td colspan="2" valign="top"><i nput name="low_cost_ franchise" type="checkbox" id="low_cost_fr anchise" value="low_cost _franchise" />
&nbsp;&nbsp;&nb sp;Is your franchisee/Business Opportunity a low cost franchise:Our Franchise could be listed under the Low Cost Franchise Opportunities Directory </td>
</tr>
<tr>
<td width="22%" valign="top">&n bsp;</td>
<td width="78%"><ta ble width="80%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td width="5%"><inp ut name="franchise _budget" type="radio" value="budget1" /></td>
<td width="95%">Bel ow 20 Lakhs</td>
</tr>
<tr>
<td><input name="franchise _budget" type="radio" value="budget" /></td>
<td>Below 10 Lakhs</td>
</tr>
<tr>
<td><input name="franchise _budget" type="radio" value="budget" /></td>
<td>Below 5 Lakhs</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top">Ca n your franchisee work from home and do not need to arrange a separate property:If yes, your franchise would be listed under the work from home franchise directory:</td>
<td align="left" valign="top"><s elect name="home" id="home">
<option value="no">no</option>
<option value="yes">yes </option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Is your franchisee a High Investment franchise:Our Franchise could be listed under the High Investment Franchise Opportunities Directory:</td>
<td align="left" valign="top"><t able width="80%" border="0" cellspacing="0" cellpadding="0" >
<tr>
<td width="7%"><inp ut name="high_inve stment" type="checkbox" id="high_invest ment" value="high_inv estment" /></td>
<td width="93%">Cap ital Investment Range is above 50 Lakhs</td>
</tr>
</table></td>
</tr>
<tr>
<td align="left" valign="top">Is your franchise a International Franchise:Our Franchise could be listed under the international franchise opportunity section:</td>
<td align="left" valign="top"><s elect name="internati onal_franchisor " id="internation al_franchisor">
<option value="yes">yes </option>
<option value="no">no</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">Ar e you seeking Master/Multiple franchisees</td>
<td align="left" valign="top"><s elect name="master_fr anchisees" id="master_fran chisees">
<option value="yes">yes </option>
<option value="no">no</option>
</select></td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top">&n bsp;</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top"><s trong>Franchise Information:</strong></td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top">&n bsp;</td>
</tr>
<tr>
<td align="left" valign="top">Tr aining/Marketing/Other Support:</td>
<td align="left" valign="top"><i nput name="training" type="text" id="training" /></td>
</tr>
<tr>
<td align="left" valign="top">To p 5 Frequently Asked Q of your Opportunity:</td>
<td align="left" valign="top"><i nput name="faq" type="text" id="faq" /></td>
</tr>
<tr>
<td align="left" valign="top">Wh o is your Ideal Franchisee?What is it that you seek from the franchisee?:</td>
<td align="left" valign="top"><i nput name="ideal_fra nchisee" type="text" id="ideal_franc hisee" /></td>
</tr>

<tr>
<td align="left" valign="top">Fr anchisee Testimonials:</td>
<td align="left" valign="top"><i nput name="testimoni al" type="text" id="testimonial " /></td>
</tr>
<tr>
<td align="left" valign="top">Co mpany News/Press Releases:</td>
<td align="left" valign="top"><i nput name="news" type="text" id="news" /></td>
</tr>
<tr>
<td align="left" valign="top">Ph otographs:</td>
<td align="left" valign="top"><i nput name="photos" type="text" id="photos" /></td>
</tr>
<tr>
<td align="left" valign="top">Vi deo:</td>
<td align="left" valign="top"><i nput name="videos" type="text" id="videos" /></td>
</tr>
<tr>
<td align="left" valign="top">Pr operty Requirements:</td>
<td align="left" valign="top"><a href="#">I want to list my property requirements now</a></td>
</tr>
<tr>
<td align="left" valign="top">HR Requirements:</td>
<td align="left" valign="top"><a href="#">I want to Post HR Requirements Now</a></td>
</tr>
<tr>
<td align="left" valign="top">&n bsp;</td>
<td align="left" valign="top">&n bsp;</td>
</tr>
</table>



PLEASE ANYONE HELP ME. I M FRESHER IN PHP
Sep 6 '10 #1
1 3483
pradeepkr13
43 New Member
before inserting any values check if it is null/empty then create SQL accordingly.
eg,

Expand|Select|Wrap|Line Numbers
  1. if(!isset($_REQUEST['franchise_hours']) || $_REQUEST['franchise_hours']=="" )
  2.    $franchise_hours; = "''";
Use this in the SQL.
Sep 6 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
4107
by: David | last post by:
Hi, May I know how to create data dynamically in a combo box after clicking on a radio button ? Data are retrieved using a store procedure from a SQL Server. For example : Click Radio Button 1, the combo box should contains "A", "B", "C" Click Radio Button 2, the combo box should contains "E", "F", "G"
4
11042
by: Jared | last post by:
Radio Button or Check Box and Event Procedures I need to insert either radio buttons or check boxes onto my form. I'm not sure which to use, or if there are other options. I am using the buttons to: if one is clicked, its corresponding information will become available on another document, if it's not clicked no information will be provided. If multiple buttons are clicked their information will available on the same document. I'm not...
6
3873
by: Orchid | last post by:
I have 2 fields with Radio button Data Type, and both fields with more than one options. On Field1, I want the user to select option1, then Field2 is shown and able to select. If the user selects Option2, then Field2 is not shown. I can have the hidden-field working properly. However, after the user selected Field1-Option1 and selected an Option on Field2, but cannot deselect the option on Field2 if change mind on Field1 selection. ...
14
1931
by: Steve Chatham | last post by:
I have a combo box that gets populated with a group of items based on a sql table. I had in mind that I'd insert a value at the beginning of that combo box, that'd say "No Item Selected" and that when the selected index property was changed, to automatically populate a datagrid below that combo box based on the item selected. As an alternative, if the user wanted to see everything (a customer list), I wanted to put a radio button...
1
1731
sanjay123456
by: sanjay123456 | last post by:
Dear Sir If i am working on sql.php and i am taking radio button forr option of question the i donot understand that when a user click any radio button then how i compre to answer means how its process that on same page take the data on same page by radio button . means that how i take radio button data on the sql.php
10
6104
by: IchBin | last post by:
I am trying to set the state of a radio button. I do not see what I am doing wrong. Sorry, I am new at this.. I need another set of eyes to look at this snip of code. I am trying to set the radio button with this link of code: echo 'SCRIPT language=JavaScript setCheckedValue("'.$_SESSION.'");</SCRIPT>'; //? <snip of code>
1
4147
by: Jerim79 | last post by:
I have a simple 3 page registration form. One form, one "data validation" script and one "insert into database" script. The customer bounces back and forth from the form to the verification script until the data is all correct. (When I say bounces, I mean logically. All the customer ever sees is the registration form, plus or minus error messages.) The problem I am having, is that if verification fails, the customer is redirected to the...
5
4156
by: Fran Jakers | last post by:
Hello all, I'm new to all this and I could really use some help. I've searched the web but cannot find an answer. I have an HTML form with 3 radio buttons and a search field that calls a MySQL database using JavaScript to find a product either by Product ID, Description, or Both. Originally, the 'Both' radio button was "checked" but I now want the 'Product ID' button set as the default choice (as you can see from the code below). ...
8
4123
by: ilikephp | last post by:
hello. when I am creating a form using the PHP language, everything is going fine and I have the data stored in the sql database, But when I add some radio button for example: <body> age:&nbsp; &lt;12 <input type="radio" value="V1" name="12" /> &nbsp;&nbsp;&nbsp; 13 - 18 <input type="radio" name="13-18" value="V2" />
0
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9497
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.