Pls help! track stages of submit

Results 1 to 2 of 2

Thread: Pls help! track stages of submit

  1. #1
    Fion Guest

    Default Pls help! track stages of submit

    I&#039m using a self-referencing page with one form.<BR>the form is generated and filled with values retrieved from the database according to what the user selects in a dropdown list. This part is triggered by an onChange with a form.submit() I need to allow the user to edit the entries on the form and click on update(if it is an edit) or submit(if it is a new entry) to insert into the table.<BR><BR>Currently, trying to track the stages of the submit() but not successful. Is there a way to do this or any other recommended ways to go about doing this?<BR>Your help will be greatly appreciated.<BR>Thanks in advance

  2. #2
    toby_2 Guest

    Default RE: Pls help! track stages of submit

    if you set a hidden input field in your form with name="submit_value".<BR>Then call a javasript function from your submit buttons that sets the hidden input field to the value of the button pressed. i.e. "update" or "submit"<BR><BR>eg<BR><BR>function sendForm(submit_value)<BR>{<BR>document.forms[&#039formname&#039].submit_value = submit_value;<BR>document.forms[&#039formname&#039].submit():<BR>}<BR><BR>is called as a JavaScript function<BR>when user selects edit...<BR>sendForm("edit")<BR>submit...<BR>sendFo rm("submit")<BR><BR><BR><BR>haven&#039t tested this...for info purposes only :)

Posting Permissions

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