Jump to content

kamal_g

New Members
  • Posts

    1
  • Joined

  • Last visited

kamal_g's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. -2 down vote favorite I have a form with many fields and a drop down list for the title. In the drop down list as shown below, I can select the title and update the mysql table properly, when the record is selected for the edition, the title is displayed appropriately too. However if the title is not modified the update sends null to the title value. How can I ensure the title is not updated if not modified? The title part is attached here. can someone send me a sample code? <form id="form1" name="form1" method="post" action="prcuded.php"> <div> <div ><label>Title<span style="color:red;"> * </span></label><span class=""> <select id="custitle" name="custitle" value=<?php echo $rE['cust_title'];?>" style="height:30px;width:188px"> <?php echo "<option value=''>$title</option>"; ?> <option value=""> </option> <option value="MS.">MS.</option> <option value="Mrs.">Mrs</option> <option value="Mr.">Mr</option> <option value="Miss.">Miss</option> <option value="Master.">Master</option> </select><label>Title</label></span> </form>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.