Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Help list/menu update fields

New Here ,
Sep 10, 2008 Sep 10, 2008

Copy link to clipboard

Copied

I am trying to update 3 field when I pick field from List/menu please help how to do this
code below

<select name="LookupLeadNo" id="LookupLeadNo">
<?php
do {
?>
<option value="<?php echo $row_fmLeads['LeadNo']?>"<?php if (!(strcmp($row_fmLeads['LeadNo'], $row_fmcustomer['LeadNo']))) {echo "selected=\"selected\"";} ?>><?php echo $row_fmLeads['Last Name']?></option>
<?php
} while ($row_fmLeads = mysql_fetch_assoc($fmLeads));
$rows = mysql_num_rows($fmLeads);
if($rows > 0) {
mysql_data_seek($fmLeads, 0);
$row_fmLeads = mysql_fetch_assoc($fmLeads);
}
?>
</select>
TOPICS
Server side applications

Views

371
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 10, 2008 Sep 10, 2008

Copy link to clipboard

Copied

Do you really need them shown? - i.e. a refresh?

or are you just looking to update 3 fields in the database?

If you are looking to update the database, you can use the $_POST variable to insert into as many fields in the record as you want. But his would be done in the MySQL statement, not the form.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 10, 2008 Sep 10, 2008

Copy link to clipboard

Copied

Could you please give an example of how its done

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 24, 2008 Sep 24, 2008

Copy link to clipboard

Copied

LATEST
Where in the code do I put the $_POST variable?

thanks

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines