HighDots Forums  

Re: submit form question

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Re: submit form question in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Monty
 
Posts: n/a

Default Re: submit form question - 07-08-2003 , 02:07 PM






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 (AT) yahoo (DOT) com> wrote

Quote:
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" <monty (AT) gumbotech (DOT) com> wrote in message
news:becoii$pc5$1 (AT) forums (DOT) 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







Reply With Quote
  #2  
Old   
Monty
 
Posts: n/a

Default Re: submit form question - 07-08-2003 , 05:42 PM






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



"Monty" <monty (AT) gumbotech (DOT) com> wrote

Quote:
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 (AT) yahoo (DOT) com> wrote in message
news:becpkg$r5e$1 (AT) forums (DOT) 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" <monty (AT) gumbotech (DOT) com> wrote in message
news:becoii$pc5$1 (AT) forums (DOT) 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









Reply With Quote
  #3  
Old   
Bonnie In Sacramento
 
Posts: n/a

Default Re: submit form question - 07-08-2003 , 11:04 PM



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" <monty (AT) gumbotech (DOT) com> wrote

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



"Monty" <monty (AT) gumbotech (DOT) com> wrote in message
news:bef18c$pa6$1 (AT) forums (DOT) 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 (AT) yahoo (DOT) com> wrote in message
news:becpkg$r5e$1 (AT) forums (DOT) 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" <monty (AT) gumbotech (DOT) com> wrote in message
news:becoii$pc5$1 (AT) forums (DOT) 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











Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.