How can I get 2 forms into 1 page?

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

    How can I get 2 forms into 1 page?

    I got one form working properly. Then I tried to introduce a second. For a
    while, sending information through either form went through just the second.
    Then I rearranged some script, and now nothing gets sent at all.

    (There's also an email link between the two forms.)

    What should be the correct order? Here's the basic code.

    <div class="commentf orm">
    <form action="MAILTO: timwalters@terr ano.es" method="post">
    <br>
    <span style="color: rgb(0, 0, 0);">name:</span>
    <br>
    <input style="color: rgb(0, 0, 0);" name="name"
    value="" size="40" type="text">
    <br>
    <span style="color: rgb(0, 0, 0);">e-mail:</span>
    <input style="color: rgb(0, 0, 0);" name="mail"
    value="" size="40" type="text">
    <br>
    </form>
    <input value="Send" class="formbutt on" type="submit">
    </div>
    <br>
    <span
    style="font-weight: bold; color: rgb(0, 0, 0); font-family: Arial;">
    <br>
    text:</span>
    <div style="font-family: Arial;" class="content" >
    <small>
    <a
    style="font-weight: normal;"
    href="mailto:ti mwalters@terran o.es">timwalter s@terrano.es</a>
    </small>
    </div>
    <br>
    <div class="commentf orm">
    <form action="MAILTO: timwalters@terr ano.es" method="post">
    <div style="color: rgb(0, 0, 0); font-weight: bold;">
    text</div>
    <span style="color: rgb(0, 0, 0);">name:</span>
    <br>
    <input style="color: rgb(0, 0, 0);" name="name"
    value="" size="40" type="text"><br >
    <span style="color: rgb(0, 0, 0);">e-mail:</span>
    <br>
    <input style="color: rgb(0, 0, 0);" name="mail"
    value="" size="40" type="text">
    <span style="color: rgb(0, 0, 0);">telephone number:</span>
    <br>
    <input style="color: rgb(0, 0, 0);" name="name"
    value="" size="40" type="text">
    <br>
    <span style="color: rgb(0, 0, 0);">texto: </span>
    <br>
    <textarea style="color: rgb(0, 0, 0);" name="body"
    class="formfiel d" cols="60" rows="20"
    id="nucleus_cf_ body"></textarea<br>
    </form>
    <input value="Enviar" class="formbutt on" type="submit">
    </div>

    Thanks for any help.

    Tim



  • Jukka K. Korpela

    #2
    Re: How can I get 2 forms into 1 page?

    Scripsit Tim:
    I got one form working properly.
    Actually, no.
    Then I tried to introduce a second.
    For a while, sending information through either form went through
    just the second. Then I rearranged some script, and now nothing gets
    sent at all.
    Not really surprising, when the page is syntactically malformed.
    What should be the correct order?
    Normally you don't put two forms on one page, but if you do, the other form
    must follow the other; they cannot overlap. And any field that should have
    an effect on something should appear inside the form to which it belongs.
    Here's the basic code.
    You should have posted the URL, as usual.
    <div class="commentf orm">
    <form action="MAILTO: timwalters@terr ano.es" method="post">
    You can assign styles directly to the form; normally no need for an
    enclosing <divelement.

    The action="mailto: ..." attribute has undefined effect, by the
    specifications. It certainly fails to do what you want in _many_ occasions.

    Consider whether you need a comment form at all. The odds are that you
    don't, at this point.
    <br>
    <span style="color: rgb(0, 0, 0);">name:</span>
    <br>
    That looks like the output of some odd page generation program. Get your
    money back. A simple feedback form should be written by hand - far easier
    than using e.g. a wysiwyg tool and cleaning up the mess.
    </form>
    Here you close a form.
    <input value="Send" class="formbutt on" type="submit">
    So what does this field relate to? (Answer: nothing.)
    <small>
    <a
    style="font-weight: normal;"
    href="mailto:ti mwalters@terran o.es">timwalter s@terrano.es</a>
    </small>
    That's suitable contact information (though <smallserves no useful
    purpose). The forms would not add much to it, even if they worked.
    </form>
    <input value="Enviar" class="formbutt on" type="submit">
    Here, too, you close the form too early.

    --
    Jukka K. Korpela ("Yucca")


    Comment

    • Tim

      #3
      Re: How can I get 2 forms into 1 page?


      "Jukka K. Korpela" <jkorpela@cs.tu t.fiwrote in message
      news:oTcOh.2555 5$Kk4.18801@rea der1.news.sauna lahti.fi...
      Scripsit Tim:
      >
      I got one form working properly.
      >
      Actually, no.

      Actually, yes. The syntax was originally right and the form worked.

      >
      Then I tried to introduce a second.
      For a while, sending information through either form went through
      just the second. Then I rearranged some script, and now nothing gets
      sent at all.
      >
      Not really surprising, when the page is syntactically malformed.
      >
      What should be the correct order?
      >
      Normally you don't put two forms on one page, but if you do, the other
      form
      must follow the other; they cannot overlap. And any field that should have
      an effect on something should appear inside the form to which it belongs.
      >
      Here's the basic code.
      >
      You should have posted the URL, as usual.
      >
      <div class="commentf orm">
      <form action="MAILTO: timwalters@terr ano.es" method="post">
      >
      You can assign styles directly to the form; normally no need for an
      enclosing <divelement.
      >
      The action="mailto: ..." attribute has undefined effect, by the
      specifications. It certainly fails to do what you want in _many_
      occasions.


      Could you explain this remark, please?

      By the way, I've made the modifications to </form>, and the first form
      works, but the second form now has a different email address, yet the
      message is still being sent to the first address.

      What is the correct syntax for two forms sending to 2 different addresses?

      Thank you for your help.

      Tim


      >
      Consider whether you need a comment form at all. The odds are that you
      don't, at this point.
      >
      <br>
      <span style="color: rgb(0, 0, 0);">name:</span>
      <br>
      >
      That looks like the output of some odd page generation program. Get your
      money back. A simple feedback form should be written by hand - far easier
      than using e.g. a wysiwyg tool and cleaning up the mess.
      >
      </form>
      >
      Here you close a form.
      >
      <input value="Send" class="formbutt on" type="submit">
      >
      So what does this field relate to? (Answer: nothing.)
      >
      <small>
      <a
      style="font-weight: normal;"
      href="mailto:ti mwalters@terran o.es">timwalter s@terrano.es</a>
      </small>
      >
      That's suitable contact information (though <smallserves no useful
      purpose). The forms would not add much to it, even if they worked.
      >
      </form>
      <input value="Enviar" class="formbutt on" type="submit">
      >
      Here, too, you close the form too early.
      >
      --
      Jukka K. Korpela ("Yucca")

      >
      >


      Comment

      • Mumia W.

        #4
        Re: How can I get 2 forms into 1 page?

        On 03/27/2007 06:09 PM, Tim wrote:
        "Jukka K. Korpela" <jkorpela@cs.tu t.fiwrote in message
        news:oTcOh.2555 5$Kk4.18801@rea der1.news.sauna lahti.fi...
        >Scripsit Tim:
        >>
        >>I got one form working properly.
        >Actually, no.
        >
        >
        Actually, yes. The syntax was originally right and the form worked.
        >
        >
        Actually, no. It doesn't work on Firefox even when I put the second form
        within a comment block.

        >>Then I tried to introduce a second.
        >>For a while, sending information through either form went through
        >>just the second. Then I rearranged some script, and now nothing gets
        >>sent at all.
        >Not really surprising, when the page is syntactically malformed.
        >>
        >>What should be the correct order?
        >Normally you don't put two forms on one page, but if you do, the other
        form
        >must follow the other; they cannot overlap. And any field that should have
        >an effect on something should appear inside the form to which it belongs.
        >>
        >>Here's the basic code.
        >You should have posted the URL, as usual.
        >>
        >><div class="commentf orm">
        >><form action="MAILTO: timwalters@terr ano.es" method="post">
        >You can assign styles directly to the form; normally no need for an
        >enclosing <divelement.
        >>
        >The action="mailto: ..." attribute has undefined effect, by the
        >specifications . It certainly fails to do what you want in _many_
        occasions.
        >
        >
        Could you explain this remark, please?
        >
        Evidently you're writing a web page exclusively for the Microsoft
        Internet Explorer because no other web browser would ever attempt to do
        anything with a "mailto:... " form action. "Mailto:" as a form action is
        undefined outside of MSIE.

        By the way, I've made the modifications to </form>, and the first form
        works, but the second form now has a different email address, yet the
        message is still being sent to the first address.
        >
        What is the correct syntax for two forms sending to 2 different addresses?
        >
        Thank you for your help.
        >
        Tim
        >
        [...]
        Here is a good place to start learning about HTML:


        Here is where you find out about the HTML 4.01 standard:


        Here is where you find out about HTML forms:


        Notice what it says about the "action" attribute to the FORM element.

        If you still want to have a form that sends people e-mail, you can
        either ask about this in a newsgroup devoted to MSIE, or you can disable
        the firewall on your Windows computer*.

        ---------------
        * Just a joke. Please don't do this. :-)

        Comment

        • Jukka K. Korpela

          #5
          Re: How can I get 2 forms into 1 page?

          Scripsit Mumia W.:
          Evidently you're writing a web page exclusively for the Microsoft
          Internet Explorer because no other web browser would ever attempt to
          do anything with a "mailto:... " form action. "Mailto:" as a form
          action is undefined outside of MSIE.
          Not quite so. The use of action="mailto: ..." has a long tradition, but it
          was never officially endorsed and it was never useful in WWW use. The
          formulation in the HTML 4.01 specification isn't an absolute prohibition: it
          only says that anything may happen. If you use action="mailto: ..." in a
          restricted environment, you might make some use of. In the WWW context,
          though, it's foolish due to the risks.

          For example, on Lynx, I was able to fill out and send the form. But the data
          arrives as encoded in a format that Outlook Express cannot handle. I know
          how to deal with such issues, on both sides, but I also know that such
          things should not be done.

          On Firefox 2, I can fill out the form and click Submit, and I get an email
          program opened with the recipient address filled - and all my input data
          lost.

          Depending on environment settings, on any browser, such a form may
          completely fail because the browser has not been configured to use an email
          program.

          It's the complete and possibly unrecoverable loss of user's input that makes
          such forms a _very_ bad idea on the WWW.

          --
          Jukka K. Korpela ("Yucca")


          Comment

          • Tim

            #6
            Re: How can I get 2 forms into 1 page?


            "Mumia W." <paduille.4060. mumia.w+nospam@ earthlink.netwr ote in message
            news:zIjOh.1722 0$tD2.5615@news read1.news.pas. earthlink.net.. .
            On 03/27/2007 06:09 PM, Tim wrote:
            "Jukka K. Korpela" <jkorpela@cs.tu t.fiwrote in message
            news:oTcOh.2555 5$Kk4.18801@rea der1.news.sauna lahti.fi...
            Scripsit Tim:
            >
            >I got one form working properly.
            Actually, no.

            Actually, yes. The syntax was originally right and the form worked.
            >
            Actually, no. It doesn't work on Firefox even when I put the second form
            within a comment block.
            >
            >
            >Then I tried to introduce a second.
            >For a while, sending information through either form went through
            >just the second. Then I rearranged some script, and now nothing gets
            >sent at all.
            Not really surprising, when the page is syntactically malformed.
            >
            >What should be the correct order?
            Normally you don't put two forms on one page, but if you do, the other
            form
            must follow the other; they cannot overlap. And any field that should
            have
            an effect on something should appear inside the form to which it
            belongs.
            >
            >Here's the basic code.
            You should have posted the URL, as usual.
            >
            ><div class="commentf orm">
            ><form action="MAILTO: timwalters@terr ano.es" method="post">
            You can assign styles directly to the form; normally no need for an
            enclosing <divelement.
            >
            The action="mailto: ..." attribute has undefined effect, by the
            specifications. It certainly fails to do what you want in _many_
            occasions.


            Could you explain this remark, please?
            >
            Evidently you're writing a web page exclusively for the Microsoft
            Internet Explorer because no other web browser would ever attempt to do
            anything with a "mailto:... " form action. "Mailto:" as a form action is
            undefined outside of MSIE.
            >
            >
            By the way, I've made the modifications to </form>, and the first form
            works, but the second form now has a different email address, yet the
            message is still being sent to the first address.

            What is the correct syntax for two forms sending to 2 different
            addresses?

            Thank you for your help.

            Tim

            [...]
            >
            Here is a good place to start learning about HTML:

            >
            Here is where you find out about the HTML 4.01 standard:

            >
            Here is where you find out about HTML forms:

            >
            Notice what it says about the "action" attribute to the FORM element.
            Duly noticed.

            I also noticed:

            <<Users interact with forms through named controls.

            <<A control's "control name" is given by its name attribute. The scope of
            the name attribute for a control within a FORM element is the FORM
            element.>>

            You have *got* to be kidding!

            Tim



            >
            If you still want to have a form that sends people e-mail, you can
            either ask about this in a newsgroup devoted to MSIE, or you can disable
            the firewall on your Windows computer*.
            >
            ---------------
            * Just a joke. Please don't do this. :-)
            >


            Comment

            Working...