Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Two forms in one page?

Reply
Thread Tools

Two forms in one page?

 
 
Tim
Guest
Posts: n/a
 
      03-27-2007
I'm a real newby. I'm trying to get 2 submission forms onto the same page,
one activated by Return, the other by a Send button. A little while ago I
found that the contents of the buttoned form were sent by both sending
methods. I rearranged the "action" and "div class="commentform" lines, and
now nothing at all gets sent.

Which of my many errors do you think might be responsible for this cockup?

Tim



 
Reply With Quote
 
 
 
 
Brian Cryer
Guest
Posts: n/a
 
      03-27-2007
"Tim" <> wrote in message
news:...
> I'm a real newby. I'm trying to get 2 submission forms onto the same page,
> one activated by Return, the other by a Send button. A little while ago I
> found that the contents of the buttoned form were sent by both sending
> methods. I rearranged the "action" and "div class="commentform" lines, and
> now nothing at all gets sent.
>
> Which of my many errors do you think might be responsible for this cockup?


I suspect you've probably broken the mark-up. Try running your page through
http://validator.w3.org/ and fix any errors that that generates and/or try
posting a url to your page so that we can see what's going on.

There is no fundamental reason why having two (or more) forms on a page
shouldn't work. The only thing to remember is that only one form can post
back.
--
Brian Cryer
www.cryer.co.uk/brian


 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      03-27-2007
Scripsit Tim:

> I'm a real newby.


Then stop acting like a _clueless_ newbie. You multiposted. Multiposting is
bad. Don't do multipost. Check my answer in c.i.w.a.h.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
Mike Minor
Guest
Posts: n/a
 
      03-27-2007
whatever the heck c.i.w.a.h. is.......


Mike Minor

Phone: 407-656-4990
Fax: 407-656-5785
"Jukka K. Korpela" <> wrote in message
news:WldOh.25579$ .fi...
> Scripsit Tim:
>
>> I'm a real newby.

>
> Then stop acting like a _clueless_ newbie. You multiposted. Multiposting
> is bad. Don't do multipost. Check my answer in c.i.w.a.h.
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/



 
Reply With Quote
 
Tim
Guest
Posts: n/a
 
      03-27-2007

"Brian Cryer" <> wrote in message
news:V7udnR0dCcfhpZTbnZ2dnUVZ8q-...
> "Tim" <> wrote in message
> news:...
> > I'm a real newby. I'm trying to get 2 submission forms onto the same

page,
> > one activated by Return, the other by a Send button. A little while ago

I
> > found that the contents of the buttoned form were sent by both sending
> > methods. I rearranged the "action" and "div class="commentform" lines,

and
> > now nothing at all gets sent.
> >
> > Which of my many errors do you think might be responsible for this

cockup?
>
> I suspect you've probably broken the mark-up. Try running your page

through
> http://validator.w3.org/ and fix any errors that that generates



I did this. It validated the code. But Jukka has pointed out elsewhere that
I had a form relevant line outside the </form> limit.



and/or try
> posting a url to your page so that we can see what's going on.



It's being tested on my computer. It hasn't been posted yet.


>
> There is no fundamental reason why having two (or more) forms on a page
> shouldn't work. The only thing to remember is that only one form can post
> back.



Sorry. What does this last sentence mean?

Thanks for your interest and help.

Tim



> --
> Brian Cryer
> www.cryer.co.uk/brian
>
>
>




 
Reply With Quote
 
Tim
Guest
Posts: n/a
 
      03-27-2007

"Jukka K. Korpela" <> wrote in message
news:WldOh.25579$ .fi...
> Scripsit Tim:
>
> > I'm a real newby.

>
> Then stop acting like a _clueless_ newbie. You multiposted. Multiposting

is
> bad.


I hadn't realized. Apologies.


Don't do multipost. Check my answer in c.i.w.a.h.
>
> --
> Jukka K. Korpela ("Yucca")
> http://www.cs.tut.fi/~jkorpela/
>
>




 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      03-28-2007
Mike Minor wrote:
> whatever the heck c.i.w.a.h. is.......
>


Another NG "comp.infosystems.www.authoring.html"

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Brian Cryer
Guest
Posts: n/a
 
      03-28-2007
"Tim" <> wrote in message
news:...
>
> "Brian Cryer" <> wrote in message

<snip>
>> There is no fundamental reason why having two (or more) forms on a page
>> shouldn't work. The only thing to remember is that only one form can post
>> back.

>
> Sorry. What does this last sentence mean?


Simply that you can have more than one form on a page, but only one of them
can be submitted. So if you had say a search box and a shopping-cart both as
forms, either the search-box or the shopping-cart form would fire (in
response to the user), but not both. So the user would end up either
searching or doing some shopping-cart function (but not both). Clear?
--
Brian Cryer
www.cryer.co.uk/brian


 
Reply With Quote
 
Mike Minor
Guest
Posts: n/a
 
      03-28-2007
Thanks....I hadn't seen that one before....


Thank you,

Mike Minor

"Jonathan N. Little" <> wrote in message
news:b75ca$4609b628$40cba7cc$...
> Mike Minor wrote:
>> whatever the heck c.i.w.a.h. is.......
>>

>
> Another NG "comp.infosystems.www.authoring.html"
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIO
> http://www.LittleWorksStudio.com



 
Reply With Quote
 
Tim
Guest
Posts: n/a
 
      03-28-2007

"Brian Cryer" <> wrote in message
news:...
> "Tim" <> wrote in message
> news:...
> >
> > "Brian Cryer" <> wrote in message

> <snip>
> >> There is no fundamental reason why having two (or more) forms on a page
> >> shouldn't work. The only thing to remember is that only one form can

post
> >> back.

> >
> > Sorry. What does this last sentence mean?

>
> Simply that you can have more than one form on a page, but only one of

them
> can be submitted. So if you had say a search box and a shopping-cart both

as
> forms, either the search-box or the shopping-cart form would fire (in
> response to the user), but not both. So the user would end up either
> searching or doing some shopping-cart function (but not both). Clear?


I think so. You're saying that each form is entirely independent. The
instruction to send one would leave the other unacted upon. Right?


> --
> Brian Cryer
> www.cryer.co.uk/brian
>
>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic form question - two forms one page. ?? Aussie Rules ASP .Net 6 08-15-2007 12:34 PM
forms authentication -- expired forms cookie vs. not provided forms cookie Eric ASP .Net Security 2 01-27-2006 10:09 PM
forms authentication - One login form for two folders Walter W ASP .Net 0 07-22-2005 03:15 AM
CSS aligning two things on one line with one left and one right news.frontiernet.net HTML 6 04-16-2004 02:44 AM
two post forms on one page? Andrew HTML 1 02-05-2004 05:21 AM



Advertisments
 



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