submit the form concept

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • strutsng@gmail.com

    submit the form concept

    I want to clarify the concept of submitting the form to the web server.
    PHP is just an example here, it applies to any web programming
    languages.

    On page1.php,
    <form name="myform" action="otherpa ge.php" method="post">

    means 2 steps here:
    1) submit the form called "myform" on page1.php to the web server using
    HTTP POST method.
    2) open otherpage.php

    Also, otherpage.php can be page1.php itself, that means post the page
    to itself, or this is called POST BACK.

    Is that correct? Please advise & comment.

    Thanks!!

  • Gunnar Hjalmarsson

    #2
    Re: submit the form concept

    strutsng@gmail. com wrote:[color=blue]
    > I want to clarify the concept of submitting the form to the web server.
    > PHP is just an example here, it applies to any web programming
    > languages.[/color]

    Since I'm replying from clpmisc, and before somebody else says it: Perl
    is used for more than web programming. Many seasoned Perl programmers
    are not doing web programming at all.
    [color=blue]
    > On page1.php,
    > <form name="myform" action="otherpa ge.php" method="post">
    >
    > means 2 steps here:
    > 1) submit the form called "myform" on page1.php to the web server using
    > HTTP POST method.[/color]

    Almost agreed. Rather than submitting the form you submit a set of data
    by help of the form.
    [color=blue]
    > 2) open otherpage.php[/color]

    I'd say: "ask otherpage.php to do something with the submitted data".
    [color=blue]
    > Also, otherpage.php can be page1.php itself,[/color]

    Yes.
    [color=blue]
    > that means post the page to itself,[/color]

    No. You don't post "the page", you post some data. Neither do you post
    the data to "the page", you post them to the server, asking the server
    to let _the script_ handle the data.
    [color=blue]
    > or this is called POST BACK.[/color]

    Have never heard that expression.

    --
    Gunnar Hjalmarsson
    Email: http://www.gunnar.cc/cgi-bin/contact.pl

    Comment

    • Jürgen Exner

      #3
      Re: submit the form concept

      strutsng@gmail. com wrote:[color=blue]
      > I want to clarify the concept of submitting the form to the web
      > server. PHP is just an example here, it applies to any web programming
      > languages.[/color]

      Ah, ok, thanks for clarifying that you are _not_ talking about Perl.

      [...][color=blue]
      > Is that correct? Please advise & comment.[/color]

      Don't know. Do you have a question about Perl, too?

      jue


      Comment

      • Erwin Moller

        #4
        Re: submit the form concept

        strutsng@gmail. com wrote:
        [color=blue]
        > I want to clarify the concept of submitting the form to the web server.
        > PHP is just an example here, it applies to any web programming
        > languages.
        >
        > On page1.php,
        > <form name="myform" action="otherpa ge.php" method="post">
        >
        > means 2 steps here:
        > 1) submit the form called "myform" on page1.php to the web server using
        > HTTP POST method.
        > 2) open otherpage.php
        >
        > Also, otherpage.php can be page1.php itself, that means post the page
        > to itself, or this is called POST BACK.
        >
        > Is that correct? Please advise & comment.
        >
        > Thanks!![/color]

        Hi struts,

        Please do not post to a zillion newsgroups.
        That is annoying.
        And now I am annoying everybody in groups I never visit too by replying to
        them all.

        It is a common mistake to expect faster answers by posting to all groups
        that possibly might have something to do with your problem.
        Many people get irritated when you do that, as you maybe noticed.

        If you post to 1 active group, you will get your answer.
        Posting to many groups will lead to broken threads, and thus discussions
        become impossible to follow.
        Especially simple questions like this one will be answered in no time in any
        respectable group..

        Regards,
        Erwin Moller

        Comment

        • Tad McClellan

          #5
          Re: submit the form concept


          [ Followups set ]


          strutsng@gmail. com <strutsng@gmail .com> wrote:
          [color=blue]
          > it applies to any web programming
          > languages.[/color]


          Then posting to a programming language newsgroup is inappropriate.

          Also, how is a "web programming language" different from
          a "programmin g language"?

          [color=blue]
          > Please advise & comment.[/color]


          Don't make off-topic postings.


          --
          Tad McClellan SGML consulting
          tadmc@augustmai l.com Perl programming
          Fort Worth, Texas

          Comment

          Working...