php submit button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ajithkumar h
    New Member
    • Oct 2008
    • 1

    php submit button

    I have a submit button and i want to view next page after clicking that button
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    And what's the problem?

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Originally posted by Dormilich
      And what's the problem?
      Hit the nail on the head there.

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        Ajithkumar.
        First of all, welcome to Bytes!

        Eager as we are to help you solve your coding problems, in order to do so, you will need to provide an actual question.
        And know that we do not like guessing, so you will also have to provide the details we will need to help you.

        What those details are, and how this information should be presented is explained in the Posting Guidelines, which we require all members to read and abide by when posting in these forums.

        Please keep that in mind in the future.

        Thank you
        Moderator

        Comment

        • vinay2110
          New Member
          • Feb 2008
          • 6

          #5
          write a php code for it which can be
          [PHP]<?
          if($_post['submit'])
          {
          header("locatio n: nextpage.php");// give the name of the page you want in place of nextpage
          }
          ?>[/PHP]
          Last edited by Atli; Oct 14 '08, 04:01 PM. Reason: Added [code] tags.

          Comment

          • nomad
            Recognized Expert Contributor
            • Mar 2007
            • 664

            #6
            Originally posted by vinay2110
            write a php code for it which can be
            [PHP]<?
            if($_post['submit'])
            {
            header("locatio n: nextpage.php");// give the name of the page you want in place of nextpage
            }
            ?>[/PHP]
            Why are you using a php code for this?

            Comment

            • santhu76
              New Member
              • Oct 2008
              • 2

              #7
              Code:
              <form method="post" action="nextpage.php">
              <input type="submit">
              </form>

              Comment

              • Markus
                Recognized Expert Expert
                • Jun 2007
                • 6092

                #8
                Originally posted by santhu76
                Code:
                <form method="post" action="nextpage.php">
                <input type="submit">
                </form>
                You neglected to use [code] tags again. For this you are receiving a formal warning.

                Comment

                Working...