PHP $_POST Function
Collect values from a form sent with method post.
- Requirement(s): PHP Server
index.php
<form action="post.php" method="post">
<input type="text" name="link"><br>
<input type="text" name="category"><br>
<input type="submit" value="Submit">
<input type="text" name="link"><br>
<input type="text" name="category"><br>
<input type="submit" value="Submit">
post.php
<?php
$link = $_POST["link"];
$category = $_POST["category"];
echo $link;
echo '<br>';
echo $category;
?>
$link = $_POST["link"];
$category = $_POST["category"];
echo $link;
echo '<br>';
echo $category;
?>