how to pass value from one page to another in php
  • i want to pass value in php from one page to another page how can i pass it?
  • 2 Comments sorted by
  • Vote Up0Vote Down farazfaraz
    10.00 Karma Accepted Answer
    use below code.



    <form action="form2.php" method="post">
    Write Value for pass to form2: <input type="text"

    name="txt_data" />
    <input type="submit" value="Go to form2" />



    You entered value in form1 is: <?php

    echo $_REQUEST ["txt_data"]; ?>!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook


Popular Posts of the Week