Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. FORM SUBMISSION PROBLEM

FORM SUBMISSION PROBLEM

Scheduled Pinned Locked Moved Web Development
javascriptdatabasesysadminhelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brendan Vogt
    wrote on last edited by
    #1

    I am developing a real estate website. Now on the site are 4 combo boxes. It starts off with a province combo box. When a user selects a province, all the regions for that province are loaded into another combo box, and then if a region is selected, all areas for this region is loaded into another combobox. I do this by making a trip to the server everytime a selection is made. The form is submitted to itself (registration.asp). This works perfectly. My problem starts as soon as when I want to validat the fields and submit the data to another page. I can't because I am already submitting the form to itself (registration.asp). How do I trigger the javascript function when the submit button is clicked and when all fields are filled in submit it to another page, eg test.asp. Here I will retrieve and use the values. I would like to send my code so that you can look at it, not very complicated code. Please return ASAP! Thanks :suss:

    H L 2 Replies Last reply
    0
    • B Brendan Vogt

      I am developing a real estate website. Now on the site are 4 combo boxes. It starts off with a province combo box. When a user selects a province, all the regions for that province are loaded into another combo box, and then if a region is selected, all areas for this region is loaded into another combobox. I do this by making a trip to the server everytime a selection is made. The form is submitted to itself (registration.asp). This works perfectly. My problem starts as soon as when I want to validat the fields and submit the data to another page. I can't because I am already submitting the form to itself (registration.asp). How do I trigger the javascript function when the submit button is clicked and when all fields are filled in submit it to another page, eg test.asp. Here I will retrieve and use the values. I would like to send my code so that you can look at it, not very complicated code. Please return ASAP! Thanks :suss:

      H Offline
      H Offline
      Hesham Amin
      wrote on last edited by
      #2

      Handle the OnSubmit event of the form in the handler set form's action to "test.asp"

      B 1 Reply Last reply
      0
      • B Brendan Vogt

        I am developing a real estate website. Now on the site are 4 combo boxes. It starts off with a province combo box. When a user selects a province, all the regions for that province are loaded into another combo box, and then if a region is selected, all areas for this region is loaded into another combobox. I do this by making a trip to the server everytime a selection is made. The form is submitted to itself (registration.asp). This works perfectly. My problem starts as soon as when I want to validat the fields and submit the data to another page. I can't because I am already submitting the form to itself (registration.asp). How do I trigger the javascript function when the submit button is clicked and when all fields are filled in submit it to another page, eg test.asp. Here I will retrieve and use the values. I would like to send my code so that you can look at it, not very complicated code. Please return ASAP! Thanks :suss:

        L Offline
        L Offline
        lanying_wzw
        wrote on last edited by
        #3

        agree with hspc. You can change the form's action property such as "test.asp" by javascript in form's submit event. Thinking-Asking-Thinking

        1 Reply Last reply
        0
        • H Hesham Amin

          Handle the OnSubmit event of the form in the handler set form's action to "test.asp"

          B Offline
          B Offline
          Brendan Vogt
          wrote on last edited by
          #4

          How do I change this in the onsubmit() method? Isn't this the same as when the form is submitted to itself?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups