Need to pass variable from actual site like this
<form id="form" action="Atest.php" method="post" enctype="multipart/form-data">
name: <input name="name" value="" id="name" /> <br />
**<a href='Atest.php?searchname=<?php $_GET['name'];?>'>**GO</a>
</form>
The part searchname= isn t working.
Problem still staying after SET/SET or GET/GET fix
Page throwing :
/Atest.php? searchname= Notice:%20%20Undefined%20index:%20name%20in%20C:\xampp\htdocs\PhpProject3\Atest.php%20on%20line%2032
fULL CODE
<?php
function runMyFunction(){ echo "DONE";
}
if (isset($_GET['searchname'])) {
runMyFunction();
}
?>
<html><head></head>
<body>
<div class="sas">
<form id="form" action="Atest.php" method="post" enctype="multipart/form-data">
Heslo: <input name="name" value="" id="name" /> <br />
<a href='Atest.php?searchname=<?php $_POST['name'];?>'>Run PHP Function</a>
</form></div></body></html>