Skip to main content
Participant
February 8, 2011
Answered

How to select what record to update

  • February 8, 2011
  • 1 reply
  • 472 views

Created a update record form in dreamweaver cs5, in the form i created a dynamic list that user selects item to be updated however rest of form only shows the default record data no matter what item is selected in drop down list.

How do get data to change to match what item user selects from list and that item will get updated and not the default item

kennyhp

This topic has been closed for replies.
Correct answer bregent

OK, DW's server behaviors won't do this for you - you will need to code this by hand. Essentially your page needs two forms. One to submit a query whose results will repopulate the form fields, and another to submit the form for update. And of course your page needs additional code that evaluates which form was submitted and take appropriate action. Or, you could use AJAX if you don't want the entire page to reload.

1 reply

Participating Frequently
February 8, 2011

It's not exactly clear what you are trying to do. Are you selecting a value from the dropdown in the form, and then passing that to another page to update? Or, are you trying to have the value from the dropdown repopulate the form with new values on the same page?

kennyhpAuthor
Participant
February 8, 2011

Hi

thanks for reply, i'm trying to repopulate the same page from the value selected in the drop down

kenny

bregentCorrect answer
Participating Frequently
February 8, 2011

OK, DW's server behaviors won't do this for you - you will need to code this by hand. Essentially your page needs two forms. One to submit a query whose results will repopulate the form fields, and another to submit the form for update. And of course your page needs additional code that evaluates which form was submitted and take appropriate action. Or, you could use AJAX if you don't want the entire page to reload.