Submitting Problem

Results 1 to 2 of 2

Thread: Submitting Problem

  1. #1
    Join Date
    Dec 1969

    Default Submitting Problem

    I want to submit a form to different pages depending on the value selected from a drop down, <BR>I&#039;ve picked up the values from the drop down, but I&#039;m stuck on the submit. I&#039;m calling the function onClick<BR><BR>function SubmitForm(){<BR> indexvalue = document.Filters.Reports.selectedIndex;<BR> textvalue = document.Filters.Reports.options[indexvalue].value;<BR> //alert("index ..."+ indexvalue+ "...Text ... "+textvalue);<BR> if (textvalue=="PS"){<BR> document.frmFilters.SubmitForm(&#039;Page1.asp&#03 9;) <BR> } <BR> else{<BR> document.frmFilters.SubmitForm(&#039;Page2.asp&#03 9;) <BR> } <BR> }<BR><BR>many thanks<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Submitting Problem

    function SubmitForm(){<BR>indexvalue = document.Filters.Reports.selectedIndex;<BR>textval ue = document.Filters.Reports.options[indexvalue].value;<BR>//alert("index ..."+ indexvalue+ "...Text ... "+textvalue);<BR>if (textvalue=="PS"){<BR> document.frmFilters.action = "Page1.asp";<BR> document.frmFilters.submit()<BR>} <BR>else{<BR> document.frmFilters.action = "Page2.asp";<BR> document.frmFilters.submit()<BR>} <BR>}<BR><BR>Craig.

Posting Permissions

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