Posting form contents without having to push the button

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

    Posting form contents without having to push the button

    Hi All,

    Is there a way to post the contents of a form without having to click on the
    Submit button, i.e

    <form method="post" action="http://www.whereever.c om/ProcessTheData. php">
    <INPUT name="Field1" type="text">
    <INPUT name="Field2" type="text">
    <INPUT name="Field3" type="text">
    <INPUT name="EsendexRe cipient" type="text">
    <TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
    <input type="submit" value="Submit">
    </form>

    Can it be done as follows, are am I going to end up red faced again?

    http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .

    Any help gratefully accepted

    Cheers

  • Schraalhans Keukenmeester

    #2
    Re: Posting form contents without having to push the button

    At Wed, 09 May 2007 18:08:41 +0100, Johnny BeGood let his monkeys type:
    Hi All,
    >
    Is there a way to post the contents of a form without having to click on the
    Submit button, i.e
    >
    <form method="post" action="http://www.whereever.c om/ProcessTheData. php">
    <INPUT name="Field1" type="text">
    <INPUT name="Field2" type="text">
    <INPUT name="Field3" type="text">
    <INPUT name="EsendexRe cipient" type="text">
    <TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
    <input type="submit" value="Submit">
    </form>
    >
    Can it be done as follows, are am I going to end up red faced again?
    >
    http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .
    >
    Any help gratefully accepted
    >
    Cheers
    No reason to go red faced.

    Using Javascript you could send the data to a script once a given field or
    number of fields contain values. Why on earth you would want to use a form
    in this manner is beyond me. Ask in Javascript groups how to.

    If you want the form to be interactive (e.g. the form changes
    following a certain choice, or a form field has code completion or
    hinting) you could have a look at an AJAX solution. This (it's not
    a product but a concept) combines javascript, xml and server-side
    scripting to modify part of a page in your browser without having to
    reload the complete page first)

    AJAX is an acronym for Asynchronous Java And XML.
    HTH

    Sh



    Comment

    • ZeldorBlat

      #3
      Re: Posting form contents without having to push the button

      On May 9, 1:08 pm, "Johnny BeGood" <j...@jbg.netwr ote:
      Hi All,
      >
      Is there a way to post the contents of a form without having to click on the
      Submit button, i.e
      >
      <form method="post" action="http://www.whereever.c om/ProcessTheData. php">
      <INPUT name="Field1" type="text">
      <INPUT name="Field2" type="text">
      <INPUT name="Field3" type="text">
      <INPUT name="EsendexRe cipient" type="text">
      <TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
      <input type="submit" value="Submit">
      </form>
      >
      Can it be done as follows, are am I going to end up red faced again?
      >
      http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .
      >
      Any help gratefully accepted
      >
      Cheers
      You should patent this idea before Amazon does: "Zero-Click Shopping."

      Comment

      • =?ISO-8859-15?Q?Iv=E1n_S=E1nchez_Ortega?=

        #4
        Re: Posting form contents without having to push the button

        Johnny BeGood wrote:
        Is there a way to post the contents of a form without having to click on
        the Submit button,
        Yeah... Press "enter" on any text field!!

        --
        ----------------------------------
        Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

        Un ordenador no es un televisor ni un microondas, es una herramienta
        compleja.

        Comment

        • shimmyshack

          #5
          Re: Posting form contents without having to push the button

          On May 9, 6:08 pm, "Johnny BeGood" <j...@jbg.netwr ote:
          Hi All,
          >
          Is there a way to post the contents of a form without having to click on the
          Submit button, i.e
          >
          <form method="post" action="http://www.whereever.c om/ProcessTheData. php">
          <INPUT name="Field1" type="text">
          <INPUT name="Field2" type="text">
          <INPUT name="Field3" type="text">
          <INPUT name="EsendexRe cipient" type="text">
          <TEXTAREA name="Block" rows="3" cols="20"></TEXTAREA>
          <input type="submit" value="Submit">
          </form>
          >
          Can it be done as follows, are am I going to end up red faced again?
          >
          http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .
          >
          Any help gratefully accepted
          >
          Cheers
          your form is set to POST so the URL above
          http://www.whereever.com/ProcessTheD...ield1&B=Field2. . . . .
          wont happen,
          also this script has a habit of revealing email addresses as they hard
          coded in the form, as was the password as well in some old cases.
          javascript is a way to POST the form,
          <body onload="documen t.getElementByI d('form_id').su bmit()" >
          or use the more traditional method of referencing the form by its
          name.

          if you wanted to just submit info you could indeed use get.
          <script type="text.java script" src="http://www.whereever.c om/
          ProcessTheData. php?A=Field1&B= Field2"></script>
          that would do, stick it in the head and the data is sent to the
          script.
          ProcessTheData. php
          should return the correct content-type for javascript.
          header( 'Content-Type: text/x-javascript' );
          If you users have javascript off, you will need to use an image, if
          they have images off, use an invisible iframe.
          We arent talking professional solutions here right. We are talking a
          bounce page of some sort which is for your own use.

          Comment

          • Michael Fesser

            #6
            Re: Posting form contents without having to push the button

            ..oO(shimmyshac k)
            >if you wanted to just submit info you could indeed use get.
            ><script type="text.java script" src="http://www.whereever.c om/
            >ProcessTheData .php?A=Field1&B =Field2"></script>
            >that would do, stick it in the head and the data is sent to the
            >script.
            >ProcessTheData .php
            >should return the correct content-type for javascript.
            >header( 'Content-Type: text/x-javascript' );
            JFTR: There are registered MIME types for JavaScript:




            Micha

            Comment

            • shimmyshack

              #7
              Re: Posting form contents without having to push the button

              On May 9, 7:50 pm, Michael Fesser <neti...@gmx.de wrote:
              .oO(shimmyshack )
              >
              if you wanted to just submit info you could indeed use get.
              <script type="text.java script" src="http://www.whereever.c om/
              ProcessTheData. php?A=Field1&B= Field2"></script>
              that would do, stick it in the head and the data is sent to the
              script.
              ProcessTheData. php
              should return the correct content-type for javascript.
              header( 'Content-Type: text/x-javascript' );
              >
              JFTR: There are registered MIME types for JavaScript:
              >

              >
              Micha
              whoops yeah 2 typos
              header( 'Content-Type: application/x-javascript' );
              (although I use x-, this is only because its the default on apache
              2.2.x and why change the worlds most popular server to the "correct"
              mimetype, I'll wait till they change it!)
              also
              <script type="text/javascript" ...

              Comment

              • Johnny BeGood

                #8
                Re: Posting form contents without having to push the button

                Shimmy,

                Thanks for your help, I want to keep things php, what I've done works just
                fine, as you can probably tell I'm fairly new to php and all things similar.



                "shimmyshac k" <matt.farey@gma il.comwrote in message
                news:1178737752 .687352.189960@ e65g2000hsc.goo glegroups.com.. .
                On May 9, 7:50 pm, Michael Fesser <neti...@gmx.de wrote:
                >.oO(shimmyshac k)
                >>
                >if you wanted to just submit info you could indeed use get.
                ><script type="text.java script" src="http://www.whereever.c om/
                >ProcessTheData .php?A=Field1&B =Field2"></script>
                >that would do, stick it in the head and the data is sent to the
                >script.
                >ProcessTheData .php
                >should return the correct content-type for javascript.
                >header( 'Content-Type: text/x-javascript' );
                >>
                >JFTR: There are registered MIME types for JavaScript:
                >>
                >http://www.rfc-editor.org/rfc/rfc432...s/application/
                >>
                >Micha
                >
                whoops yeah 2 typos
                header( 'Content-Type: application/x-javascript' );
                (although I use x-, this is only because its the default on apache
                2.2.x and why change the worlds most popular server to the "correct"
                mimetype, I'll wait till they change it!)
                also
                <script type="text/javascript" ...
                >

                Comment

                • Johnny BeGood

                  #9
                  Re: Posting form contents without having to push the button

                  And you should learn some manners - if you are not capable of making a valid
                  contribution, don't contribute, you f**king muppet!

                  "ZeldorBlat " <zeldorblat@gma il.comwrote in message
                  news:1178734252 .098513.216490@ o5g2000hsb.goog legroups.com...
                  >
                  You should patent this idea before Amazon does: "Zero-Click Shopping."
                  >

                  Comment

                  • Johnny BeGood

                    #10
                    Re: Posting form contents without having to push the button

                    That works just fine!!

                    "Iván Sánchez Ortega" <ivansanchez-alg@rroba-escomposlinux.-.punto.-.org>
                    wrote in message news:f1t2u5$d8b $1@hercules.coh p1...
                    Johnny BeGood wrote:
                    >
                    >Is there a way to post the contents of a form without having to click on
                    >the Submit button,
                    >
                    Yeah... Press "enter" on any text field!!
                    >
                    --
                    ----------------------------------
                    Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
                    >
                    Un ordenador no es un televisor ni un microondas, es una herramienta
                    compleja.

                    Comment

                    • Jerry Stuckle

                      #11
                      Re: Posting form contents without having to push the button

                      Johnny BeGood wrote:
                      And you should learn some manners - if you are not capable of making a
                      valid contribution, don't contribute, you f**king muppet!
                      >
                      "ZeldorBlat " <zeldorblat@gma il.comwrote in message
                      news:1178734252 .098513.216490@ o5g2000hsb.goog legroups.com...
                      >>
                      >You should patent this idea before Amazon does: "Zero-Click Shopping."
                      >>
                      >
                      Yep, you need to learn some manners - and get a sense of humor, asshole.

                      His contribution was valid - with a subtle amount of humor. Go back to
                      alt.grouches, where you belong.

                      --
                      =============== ===
                      Remove the "x" from my email address
                      Jerry Stuckle
                      JDS Computer Training Corp.
                      jstucklex@attgl obal.net
                      =============== ===

                      Comment

                      • ZeldorBlat

                        #12
                        Re: Posting form contents without having to push the button

                        On May 10, 1:57 am, "Johnny BeGood" <j...@jbg.netwr ote:
                        And you should learn some manners - if you are not capable of making a valid
                        contribution, don't contribute, you f**king muppet!
                        >
                        "ZeldorBlat " <zeldorb...@gma il.comwrote in message
                        >
                        news:1178734252 .098513.216490@ o5g2000hsb.goog legroups.com...
                        >
                        >
                        >
                        You should patent this idea before Amazon does: "Zero-Click Shopping."
                        Yes -- you, too, should get some manners and stop top-posting.

                        Comment

                        • -Lost

                          #13
                          Re: Posting form contents without having to push the button

                          shimmyshack wrote:
                          should return the correct content-type for javascript.
                          header( 'Content-Type: text/x-javascript' );
                          Just wondering, where did you get that MIME from?

                          I thought it was supposed to be:

                          application/x-javascript

                          At least "applicatio n/javascript" is not obsolete yet.

                          Then again, I cannot read an RFC to save my life.

                          --
                          -Lost
                          Remove the extra words to reply by e-mail. Don't e-mail me. I am
                          kidding. No I am not.

                          Comment

                          • -Lost

                            #14
                            Re: Posting form contents without having to push the button

                            -Lost wrote:
                            shimmyshack wrote:
                            >should return the correct content-type for javascript.
                            >header( 'Content-Type: text/x-javascript' );
                            >
                            Just wondering, where did you get that MIME from?
                            >
                            I thought it was supposed to be:
                            >
                            application/x-javascript
                            >
                            At least "applicatio n/javascript" is not obsolete yet.
                            >
                            Then again, I cannot read an RFC to save my life.
                            Bah, disregard shimmyshack. I didn't even see any posts beyond yours
                            until I posted the above.

                            --
                            -Lost
                            Remove the extra words to reply by e-mail. Don't e-mail me. I am
                            kidding. No I am not.

                            Comment

                            • shimmyshack

                              #15
                              Re: Posting form contents without having to push the button

                              On May 12, 12:42 pm, -Lost <maventheextraw o...@techie.com wrote:
                              -Lost wrote:
                              shimmyshack wrote:
                              should return the correct content-type for javascript.
                              header( 'Content-Type: text/x-javascript' );
                              >
                              Just wondering, where did you get that MIME from?
                              >
                              I thought it was supposed to be:
                              >
                              application/x-javascript
                              >
                              At least "applicatio n/javascript" is not obsolete yet.
                              >
                              Then again, I cannot read an RFC to save my life.
                              >
                              Bah, disregard shimmyshack. I didn't even see any posts beyond yours
                              until I posted the above.
                              >
                              --
                              -Lost
                              Remove the extra words to reply by e-mail. Don't e-mail me. I am
                              kidding. No I am not.
                              dont worry, its my fault for being so slap dash with the keyboard.
                              I actually just copy the apache default, it seems to be very
                              prevelant, although google get it right as per RFC, so perhaps I could
                              start to change my coding habits, or at least my mimes.type file!!

                              Comment

                              Working...