Updating a date??? How to update.

Results 1 to 2 of 2

Thread: Updating a date??? How to update.

  1. #1
    Join Date
    Dec 1969

    Default Updating a date??? How to update.

    I have an update page thatI need to have change the last modified field only if the user changes any data. As of now the field has to be manually changed. Can anyone help?? thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Updating a date??? How to update.

    Should be easy. When you detect that the user has changed something, just set that field in the table as well.<BR><BR>Is the problem that you don&#039t know if the user has changed anything? There are several ways to detect changes. My favorite is to duplicate all the data in HIDDEN fields with parallel names.<BR><BR>Something like this:<BR><BR>&#060;INPUT Type=Text Name="email" Value="&#060;% RS("email") %&#062;"&#062;<BR>&#060;INPUT Type=HIDDEN Name="OLD_email" Value="&#060;% RS("email") %&#062;"&#062;<BR><BR>And then, on the next page, you can easily do<BR><BR>changedFlag = false<BR>...<BR>If Request.Form("email") &#060;&#062; Request.Form("OLD_email") Then changedFlag = true<BR><BR>Sorry if I am pointing out the obvious.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts