form processing technique

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Man-wai Chang

    #1

    form processing technique

    <form name="frmTest" type="submit" method="post">
    <input type="textbox" name="txtA" size=10 value="">
    <select name="cboB" value="">
    <option value="1">1
    <option value="2">1
    </select>
    <input type="submit" name="cmdSave">
    </form>

    Normally when I click cmdSave, the form will be submitted, with cmdSave
    set.

    Now I need to open a popup for selecting a value into txtA and then
    submit the form without setting cmdSave, so that I could re-populate the
    options for cboB. How should I do it? I don't plan to use AJAX for the
    moment, but old techniques.

    --
    iTech Consulting Services Limited
    Expert of ePOS solutions
    Website: http://www.itech.com.hk (IE only)
    Tel: (852)2325 3883 Fax: (852)2325 8288
  • ZeldorBlat

    #2
    Re: form processing technique

    On Apr 26, 9:44 pm, Man-wai Chang <toylet.toy...@ gmail.comwrote:
    <form name="frmTest" type="submit" method="post">
    <input type="textbox" name="txtA" size=10 value="">
    <select name="cboB" value="">
    <option value="1">1
    <option value="2">1
    </select>
    <input type="submit" name="cmdSave">
    </form>
    >
    Normally when I click cmdSave, the form will be submitted, with cmdSave
    set.
    >
    Now I need to open a popup for selecting a value into txtA and then
    submit the form without setting cmdSave, so that I could re-populate the
    options for cboB. How should I do it? I don't plan to use AJAX for the
    moment, but old techniques.
    >
    --
    iTech Consulting Services Limited
    Expert of ePOS solutions
    Website:http://www.itech.com.hk(IE only)
    Tel: (852)2325 3883 Fax: (852)2325 8288
    Ask a Javascript newsgroup.

    Comment

    • Rami Elomaa

      #3
      Re: form processing technique

      "Man-wai Chang" <toylet.toylet@ gmail.comwrote in message
      news:4631557b$1 @127.0.0.1...
      <form name="frmTest" type="submit" method="post">
      <input type="textbox" name="txtA" size=10 value="">
      <select name="cboB" value="">
      <option value="1">1
      <option value="2">1
      </select>
      <input type="submit" name="cmdSave">
      </form>
      >
      Normally when I click cmdSave, the form will be submitted, with cmdSave
      set.
      >
      Now I need to open a popup for selecting a value into txtA and then submit
      the form without setting cmdSave, so that I could re-populate the options
      for cboB. How should I do it? I don't plan to use AJAX for the moment, but
      old techniques.

      Dude, how much did you lie in your resume to get that job? I mean these past
      few weeks you've been bombarding the group with a myriad of questions as if
      you hadn't got any idea what you're doing and a deadline approaching.

      --
      Rami.Elomaa@gma il.com

      "Good tea. Nice house." -- Worf


      Comment

      • Man-wai Chang

        #4
        Re: form processing technique

        Dude, how much did you lie in your resume to get that job? I mean these past
        few weeks you've been bombarding the group with a myriad of questions as if
        you hadn't got any idea what you're doing and a deadline approaching.
        I am a newbie in web app. My employer allows me to learn. So here are
        questions that I should have asked an expert in own company. But there
        is no web app expert here. :)

        --
        iTech Consulting Services Limited
        Expert in ePOS (Point-Of-Sales) solutions
        Website: http://www.itech.com.hk (IE only)
        Tel: (852)2325 3883 Fax: (852)2325 8288

        Comment

        • Man-wai Chang

          #5
          Re: form processing technique

          Dude, how much did you lie in your resume to get that job? I mean these past

          For this part: I got my 2nd Upper Class Honor in 1990 from a polytechnic
          that's renamed/upgraded to a university. There was no PHP or Java back then.

          --
          iTech Consulting Services Limited
          Expert in ePOS (Point-Of-Sales) solutions
          Website: http://www.itech.com.hk (IE only)
          Tel: (852)2325 3883 Fax: (852)2325 8288

          Comment

          • Man-wai Chang

            #6
            Re: form processing technique

            Ask a Javascript newsgroup.

            What if javascript is banned in a project? How would you implement a
            popup window for user to select a value out of a searchable list?

            --
            iTech Consulting Services Limited
            Expert in ePOS (Point-Of-Sales) solutions
            Website: http://www.itech.com.hk (IE only)
            Tel: (852)2325 3883 Fax: (852)2325 8288

            Comment

            • Schraalhans Keukenmeester

              #7
              Re: form processing technique

              Man-wai Chang wrote:
              <form name="frmTest" type="submit" method="post">
              <input type="textbox" name="txtA" size=10 value="">
              <select name="cboB" value="">
              <option value="1">1
              <option value="2">1
              </select>
              <input type="submit" name="cmdSave">
              </form>
              >
              Normally when I click cmdSave, the form will be submitted, with cmdSave
              set.
              >
              Now I need to open a popup for selecting a value into txtA and then
              submit the form without setting cmdSave, so that I could re-populate the
              options for cboB. How should I do it? I don't plan to use AJAX for the
              moment, but old techniques.
              >
              What's the hype with popups? I hate the friggin' things. I fail to see
              (exceptions excluded) the benefit of having a popup. If you must, don't
              look at PHP for it. Javascript is what you're after.

              Is there a project you are working on making you ask a load of questions
              about every day? The majority of your posts could simply be answered by:
              use google and/or RTFM.

              It's quite easy to lose sympathy/support here, it's getting a bit
              annoying to see people bypassing the normal route: doing their own
              homework and search the net or a manual for answers before falling back
              on usenet.

              Maybe a good primer on PHP is what you really need most right now.
              Don't mean to be rude, but please don't abuse the group just because
              it's easy to.

              Rgds
              Sh.

              Comment

              • Man-wai Chang

                #8
                Re: form processing technique

                It's quite easy to lose sympathy/support here, it's getting a bit
                annoying to see people bypassing the normal route: doing their own
                homework and search the net or a manual for answers before falling back
                on usenet.
                Homework means reading and understanding the codes used by the inventor
                of PHP or experienced PHP programmers. That's why I asked.

                And if you aren't interested in teaching or code sharing, you could
                simply ignore my questions.

                And what would you pay for a university course and then the lecturers
                and professors just ask you to go home and read the books yourself?

                --
                iTech Consulting Services Limited
                Expert in ePOS (Point-Of-Sales) solutions
                Website: http://www.itech.com.hk (IE only)
                Tel: (852)2325 3883 Fax: (852)2325 8288

                Comment

                • Geoff Berrow

                  #9
                  Re: form processing technique

                  Message-ID: <4631c8ad$1@127 .0.0.1from Man-wai Chang contained the
                  following:
                  >And what would you pay for a university course and then the lecturers
                  >and professors just ask you to go home and read the books yourself?
                  Erm... all university courses expect you to read the books yourself.

                  Stop digging.

                  --
                  Geoff Berrow (put thecat out to email)
                  It's only Usenet, no one dies.
                  My opinions, not the committee's, mine.
                  Simple RFDs http://www.ckdog.co.uk/rfdmaker/

                  Comment

                  • Rami Elomaa

                    #10
                    Re: form processing technique

                    "Man-wai Chang" <toylet.toylet@ gmail.comwrote in message
                    news:4631c8ad$1 @127.0.0.1...
                    And what would you pay for a university course and then the lecturers and
                    professors just ask you to go home and read the books yourself?

                    So how much are you paying for the volunteer help you get here? The php
                    developer community is offering you support FOR FREE. If you don't even try
                    to look into something yourself and just drop a message to the group every
                    time you hit a wall, people start feeling you're taking advantage of them if
                    you do it on daily basis.

                    --
                    Rami.Elomaa@gma il.com

                    "Good tea. Nice house." -- Worf


                    Comment

                    • Jerry Stuckle

                      #11
                      Re: form processing technique

                      Man-wai Chang wrote:
                      >Ask a Javascript newsgroup.
                      >
                      What if javascript is banned in a project? How would you implement a
                      popup window for user to select a value out of a searchable list?
                      >
                      You don't. Server-side languages like PHP cannot popup a window on the
                      client's machine.

                      If you want it, ask in a Javascript newsgroup.

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

                      Comment

                      • Jerry Stuckle

                        #12
                        Re: form processing technique

                        Man-wai Chang wrote:
                        >Dude, how much did you lie in your resume to get that job? I mean
                        >these past
                        >
                        For this part: I got my 2nd Upper Class Honor in 1990 from a polytechnic
                        that's renamed/upgraded to a university. There was no PHP or Java back
                        then.
                        >
                        So? Your training is 17 years old.

                        I was in college back in the early 70's. There was no Java, PHP, or
                        even C and C++ back then. In fact, it was almost entirely Fortran,
                        Cobol and Assembler.

                        But since then I've learned over a dozen languages - mostly before the
                        internet was "public access". And I generally didn't have a "mentor"
                        available. I did it by taking classes, buying books and studying.

                        I did not bombard newsgroups.

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

                        Comment

                        • Jerry Stuckle

                          #13
                          Re: form processing technique

                          Man-wai Chang wrote:
                          >It's quite easy to lose sympathy/support here, it's getting a bit
                          >annoying to see people bypassing the normal route: doing their own
                          >homework and search the net or a manual for answers before falling back
                          >on usenet.
                          >
                          Homework means reading and understanding the codes used by the inventor
                          of PHP or experienced PHP programmers. That's why I asked.
                          >
                          And if you aren't interested in teaching or code sharing, you could
                          simply ignore my questions.
                          >
                          And what would you pay for a university course and then the lecturers
                          and professors just ask you to go home and read the books yourself?
                          >
                          If you want to pay me my normal consulting rate, I'll be glad to answer
                          all of your questions. And I'm sure most other people would here, also.

                          We're all volunteers helping one another. We are not your (unpaid)
                          personal tutors.

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

                          Comment

                          • Schraalhans Keukenmeester

                            #14
                            Re: form processing technique

                            On Fri, 27 Apr 2007 17:55:43 +0800, Man-wai Chang wrote:
                            >It's quite easy to lose sympathy/support here, it's getting a bit
                            >annoying to see people bypassing the normal route: doing their own
                            >homework and search the net or a manual for answers before falling back
                            >on usenet.
                            >
                            Homework means reading and understanding the codes used by the inventor
                            of PHP or experienced PHP programmers. That's why I asked.
                            >
                            And if you aren't interested in teaching or code sharing, you could
                            simply ignore my questions.
                            >
                            And what would you pay for a university course and then the lecturers
                            and professors just ask you to go home and read the books yourself?
                            Man-wai. I was trying to get a point across. Of course you're free to
                            become defensive, but there's no need to. Take a step back, swallow pride,
                            take a deep breath and see you're not attacked in person.

                            Really, try to show a bit more effort on your own part wrt the questions
                            you put forward, be a little more specific about issues you run into, and
                            we're glad to help out. I know this PHP group has often been qualified as
                            'very friendly'. So it can't be that we're all brutal cavemen. And I am
                            sure a good PHP book or two, or a few decent online sources will answer
                            many of the questions you have asked here.

                            No offense taken btw.
                            Sh.

                            (And yes, sad to inform my Alma Mater required us to plan and do our own
                            work, be it reading, test lab experiments and what have you. Classical
                            lecture was mostly reserved for answering questions the self study
                            material put forward.) ;-)



                            Comment

                            • Manuel Lemos

                              #15
                              Re: form processing technique

                              Hello,

                              on 04/26/2007 10:44 PM Man-wai Chang said the following:
                              <form name="frmTest" type="submit" method="post">
                              <input type="textbox" name="txtA" size=10 value="">
                              <select name="cboB" value="">
                              <option value="1">1
                              <option value="2">1
                              </select>
                              <input type="submit" name="cmdSave">
                              </form>
                              >
                              Normally when I click cmdSave, the form will be submitted, with cmdSave
                              set.
                              >
                              Now I need to open a popup for selecting a value into txtA and then
                              submit the form without setting cmdSave, so that I could re-populate the
                              options for cboB. How should I do it? I don't plan to use AJAX for the
                              moment, but old techniques.
                              You can use the form.submit() function when the value is changed.

                              Now if you want to search or auto-complete a text value, you may want to
                              take a look at this forms generation and validation class that comes
                              with a plug-in exactly for that. Here is an example script in action:



                              The class and this and other pĺug-ins are available here:

                              http://www.phpclasses.org/formsgeneration

                              Here you can watch tutorial video on this subject:

                              http://www.phpclasses.org/browse/vid...-complete.html


                              --

                              Regards,
                              Manuel Lemos

                              Metastorage - Data object relational mapping layer generator


                              PHP Classes - Free ready to use OOP components written in PHP
                              http://www.phpclasses.org/

                              Comment

                              Working...