Form submit on load

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hans Recter

    Form submit on load

    Hi

    I have a form with hidden fields that gather information from another form.

    I would like this form to submit itself as soon as it is loaded.
    Can anyone tell me if it is possible to do this and if so how?

    Thanks in advance
    Hans Recter



  • Stuart Palmer

    #2
    Re: Form submit on load

    don't get why you'd wanna do it but it would be something like:-

    <body onload="documen t.MyForm.submit ();">

    doesn't seem to work in NS 4.75 though or defo won't work for non JS users.

    Stu

    "Hans Recter" <hrsoftware@hot mail.com> wrote in message
    news:3f6d21f4$1 @news.iconz.co. nz...[color=blue]
    > Hi
    >
    > I have a form with hidden fields that gather information from another[/color]
    form.[color=blue]
    >
    > I would like this form to submit itself as soon as it is loaded.
    > Can anyone tell me if it is possible to do this and if so how?
    >
    > Thanks in advance
    > Hans Recter
    >
    >
    >[/color]


    Comment

    • Hans Recter

      #3
      Re: Form submit on load

      I want to use the Pay Pal shopping cart on my site. The button and code they
      provide create a form with hidden fields to link to your cart. I am using a
      DHTML menu system on my site which will only point to a URL or run a
      JavaScript command and I want to use it to open the cart.
      My thought was to open a page with the hidden fields and have it submit
      automatically. Maybe there is a better way?
      Hans Recter

      "Stuart Palmer" <tryandspamme@y oucant.com> wrote in message
      news:N7cbb.27$W 03.1@newsfep3-gui.server.ntli .net...[color=blue]
      > don't get why you'd wanna do it but it would be something like:-
      >
      > <body onload="documen t.MyForm.submit ();">
      >
      > doesn't seem to work in NS 4.75 though or defo won't work for non JS[/color]
      users.[color=blue]
      >
      > Stu
      >
      > "Hans Recter" <hrsoftware@hot mail.com> wrote in message
      > news:3f6d21f4$1 @news.iconz.co. nz...[color=green]
      > > Hi
      > >
      > > I have a form with hidden fields that gather information from another[/color]
      > form.[color=green]
      > >
      > > I would like this form to submit itself as soon as it is loaded.
      > > Can anyone tell me if it is possible to do this and if so how?
      > >
      > > Thanks in advance
      > > Hans Recter
      > >
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...