Form Submit Dynamic URL, Leave Fields Off

Discussion in 'Javascript' started by Mitchell Fisher, May 27, 2007.

  1. Hi, I need to send a URL from a form like:

    http://thehost/12345?A=B

    where the number comes from a form text field. I can't send

    http://thehost/12345?A=B&formnum=12345

    where formnum is the field name, because I can't change the
    server-side application, and the application rejects the request if
    the formnum parameter is present.

    I am using JavaScript to build document.formname.action from the form,
    but the browsers (both IE 6 & Netscape 8) are appending the form
    fields too. I can't leave the name= part off of the form fields, can
    I, and still be able to access the fields?

    --
    Mitchell Fisher, Unisys Corp.
    remove spamnot before replying
     
    Mitchell Fisher, May 27, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    Multiple "Submit" Buttons & Form Fields

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, May 6, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    5,721
    Steven Cheng[MSFT]
    May 10, 2006
  2. Replies:
    2
    Views:
    1,137
    Adrienne Boswell
    Apr 4, 2008
  3. News Groups

    Exclude some input fields from form submit

    News Groups, Aug 25, 2004, in forum: ASP General
    Replies:
    1
    Views:
    2,110
    Tim Slattery
    Aug 25, 2004
  4. alan_atwood
    Replies:
    2
    Views:
    296
  5. Derek Basch
    Replies:
    1
    Views:
    216
  6. Derek Basch
    Replies:
    0
    Views:
    252
    Derek Basch
    May 24, 2007
  7. Replies:
    3
    Views:
    1,047
  8. Replies:
    23
    Views:
    963
    Tim Streater
    Dec 18, 2013
Loading...