www.webdeveloper.com
Results 1 to 4 of 4

Thread: Insert information to form

  1. #1
    Join Date
    May 2006
    Posts
    2

    Insert information to form

    I have to design a page with the following specifications...

    - It has two fields, name and age and a submit button
    - Once the user hits submit, I need the name and age information to get forwarded to a foreign URL, with similar fields and submit that information automatically. In other words I want to skip the foreign URL and just submit the information.

    How can I implement this?

    Thanks in advance...

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Make your form name, action method and field names match the "foreign" form.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  3. #3
    Join Date
    May 2006
    Posts
    2

    multiple form submit

    I also plan to make this page link up to multiple "foreign" forms with those two fields (although they might have different action methods and form names)...

    I have to put in more than one submit button for those different forms. Can I still copy the action methods from those forms as well?

  4. #4
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    In your onsubmit handler you can change the action and method before doing a submit.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles