michelleqw
Programmer
Dear php users,
Is it possible to send via a hyperlink a value to a php page with the help of a post variable. If yes can someone give source?
Source I tried but no results:
<form action="index.php" method="post">
<p align="center">
<?php
echo $_POST['test'] . "<br>";
echo $_POST['xx'] . "<br>";
?>
<input type="submit" name="test" value="test">
<p align="center"><a href="index.php"><name="xx" value="xx">tryout</a></p>
</form>
Is it possible to send via a hyperlink a value to a php page with the help of a post variable. If yes can someone give source?
Source I tried but no results:
<form action="index.php" method="post">
<p align="center">
<?php
echo $_POST['test'] . "<br>";
echo $_POST['xx'] . "<br>";
?>
<input type="submit" name="test" value="test">
<p align="center"><a href="index.php"><name="xx" value="xx">tryout</a></p>
</form>