WebPostPHP is a PHP library to build HTML form to send POST request.
Usually POST Requests are better then GET.
Easily convert <a href="index.php?name=adam&city=Berlin&Age=30">Click</a>
as GET request to POST request.
<?php
$WebPost=new WebPostPHP();
$WebPost->add("index.php?name=adam&city=Berlin&Age=30", "Click");
$WebPost->add("index.php", "name=adam&city=Berlin&Age=30", "Click here");
$values=[
"name"=>"adam",
"city"=>"Berlin",
"Age"=>30,
];
$WebPost->add("index.php", $values, "Click here");
?>
<form method="POST" action="index.php" id="web-post-php-1">
<input type="hidden" name="name" value="adam">
<input type="hidden" name="city" value="Berlin">
<input type="hidden" name="Age" value="30">
<button style="background:transparent;border:0px;">Click</button>
</form>
<form method="POST" action="index.php" id="web-post-php-2">
<input type="hidden" name="name" value="adam">
<input type="hidden" name="city" value="Berlin">
<input type="hidden" name="Age" value="30">
<button style="background:transparent;border:0px;">Click here</button>
</form>
<form method="POST" action="index.php" id="web-post-php-3">
<input type="hidden" name="name" value="adam">
<input type="hidden" name="city" value="Berlin">
<input type="hidden" name="Age" value="30">
<button style="background:transparent;border:0px;">Click here</button>
</form>
My nickname is Max, Programming language developer, Full-stack programmer. I love computer scientists, researchers, and compilers. (Max Base)
A team includes some programmer, developer, designer, researcher(s) especially Max Base.