Professional Web Applications Themes

submit form question - HTML & CSS

I need the form to submit as soon as the page loads, before they go to another page, and without any interaction from the viewer. Is this possible? "Les Matthews" <LesAMatthews> wrote in message news:becpkg$r5e$1forums.macromedia.com... > Since you are obviously using server-side script with your database, why not > create a page that just contains your insert or update statement. Then on > the previous page submit the form to the page with the insert. That page > should just request the appropriate values and insert/update the db, then > redirect as appropriate. > > "Monty" <montygumbotech.com> wrote in message ...

  1. #1

    Default Re: submit form question

    I need the form to submit as soon as the page loads, before they go to
    another page, and without any interaction from the viewer. Is this
    possible?


    "Les Matthews" <LesAMatthews> wrote in message
    news:becpkg$r5e$1forums.macromedia.com...
    > Since you are obviously using server-side script with your database, why
    not
    > create a page that just contains your insert or update statement. Then on
    > the previous page submit the form to the page with the insert. That page
    > should just request the appropriate values and insert/update the db, then
    > redirect as appropriate.
    >
    > "Monty" <montygumbotech.com> wrote in message
    > news:becoii$pc5$1forums.macromedia.com...
    > > Can I make a form submit info to a database when the page loads, like:
    > <form
    > > name="form1" method="POST" action="onLoad<%=MM_editAction%>">
    > >
    > > Thanks,
    > > Monty
    > >
    > >
    >
    >

    Monty Guest

  2. #2

    Default Re: submit form question

    O.K. I figured it out. It was so simple that I overlooked the obvious: <body
    onload="formName.submit()">



    "Monty" <montygumbotech.com> wrote in message
    news:bef18c$pa6$1forums.macromedia.com...
    > I need the form to submit as soon as the page loads, before they go to
    > another page, and without any interaction from the viewer. Is this
    > possible?
    >
    >
    > "Les Matthews" <LesAMatthews> wrote in message
    > news:becpkg$r5e$1forums.macromedia.com...
    > > Since you are obviously using server-side script with your database, why
    > not
    > > create a page that just contains your insert or update statement. Then
    on
    > > the previous page submit the form to the page with the insert. That page
    > > should just request the appropriate values and insert/update the db,
    then
    > > redirect as appropriate.
    > >
    > > "Monty" <montygumbotech.com> wrote in message
    > > news:becoii$pc5$1forums.macromedia.com...
    > > > Can I make a form submit info to a database when the page loads, like:
    > > <form
    > > > name="form1" method="POST" action="onLoad<%=MM_editAction%>">
    > > >
    > > > Thanks,
    > > > Monty
    > > >
    > > >
    > >
    > >
    >
    >

    Monty Guest

  3. #3

    Default Re: submit form question

    Just curious-- I'm a newbie, so maybe this is a stupid question, but why
    would you want someone to submit a form right after they enter your site and
    before they do anything else? ?

    Bonnie


    "Monty" <montygumbotech.com> wrote in message
    news:befdrj$imu$1forums.macromedia.com...
    > O.K. I figured it out. It was so simple that I overlooked the obvious:
    <body
    > onload="formName.submit()">
    >
    >
    >
    > "Monty" <montygumbotech.com> wrote in message
    > news:bef18c$pa6$1forums.macromedia.com...
    > > I need the form to submit as soon as the page loads, before they go to
    > > another page, and without any interaction from the viewer. Is this
    > > possible?
    > >
    > >
    > > "Les Matthews" <LesAMatthews> wrote in message
    > > news:becpkg$r5e$1forums.macromedia.com...
    > > > Since you are obviously using server-side script with your database,
    why
    > > not
    > > > create a page that just contains your insert or update statement. Then
    > on
    > > > the previous page submit the form to the page with the insert. That
    page
    > > > should just request the appropriate values and insert/update the db,
    > then
    > > > redirect as appropriate.
    > > >
    > > > "Monty" <montygumbotech.com> wrote in message
    > > > news:becoii$pc5$1forums.macromedia.com...
    > > > > Can I make a form submit info to a database when the page loads,
    like:
    > > > <form
    > > > > name="form1" method="POST" action="onLoad<%=MM_editAction%>">
    > > > >
    > > > > Thanks,
    > > > > Monty
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Bonnie In Sacramento Guest

  4. #4

    Default Submit Form Question

    :beer;

    I am having a problem with the "validate form behavior" and the "Go to URL
    behavior" on a form button. Both work just fine on there own. The issue is I
    have the form validated on the button and it completes it. if an error occurs,
    it will inform me of the issue then go to the url without making me change it.
    How do I set the button to first validate, then (if) all the info is good to
    go, go to URL? If the info is flagged, it will not submit.


    ebose Guest

  5. #5

    Default Re: Submit Form Question

    I assume you set the Validate Form behaviour
    and then the Goto URL behaviour with action onclick applied on the submit
    button.
    just goto code view and add
    if (doent.MM_returnValue == true)
    between the method
    MM_validateForm(.........);
    and
    MM_goToURL(..........);


    andy81 Guest

Similar Threads

  1. Submit form
    By Chris Kennedy in forum ASP.NET Building Controls
    Replies: 3
    Last Post: May 24th, 03:04 PM
  2. Form Submit question
    By KJASMIN in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 3rd, 11:16 PM
  3. question on form element type 'submit'
    By djc in forum ASP Database
    Replies: 2
    Last Post: November 19th, 01:38 PM
  4. Replies: 4
    Last Post: September 24th, 12:34 PM
  5. Submit Form Question ... please help.
    By ChrisRRoussel webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 0
    Last Post: July 8th, 07:43 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139