Skip to content

Instantly share code, notes, and snippets.

Created October 24, 2013 00:46
Show Gist options
  • Save anonymous/7129407 to your computer and use it in GitHub Desktop.
Save anonymous/7129407 to your computer and use it in GitHub Desktop.
Here is a sample code where in the origpage.php passed the value to targetpage_is_very_long.php. The targetpage must be rewrite to targetpage.php.
<?php
echo '<form method="POST" action="targetpage_is_very_long.php">';
echo '<input type="text" name="txt1" value="this is a sample">';
echo '<input type="submit" name="submit">';
echo'</form>';
?>
<?php
if (isset($_POST['submit']))
{
echo $_POST['txt1'];
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment