The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 3 of 3

Thread: passing form values on the same page

  1. #1

    passing form values on the same page

    good day!! can anyone post samples on passing form values on the same page using php? thanks!!

  2. #2
    A simple example
    this is thispage.php..
    <?php
    if($_POST['title']){
    echo $_POST['title'];
    } else {
    echo "<form name=\"postit\" method=\"POST\" action=\"thispage.php\">"
    ."<input type=\"text\" name=\"title\"/>"
    ."<input type=\"submit\" value=\"Add\" name=\"AddThis\" />"
    ."</form>";
    }
    ?>
    Web Site Design and Stuff....One day I will get it.

  3. #3
    PHP Code:
    echo <form action="<? echo $PHPSELF ?>" method="POST">
    google PHPSELF

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012