basically i want to have a link
inside a div
when clicked it will display a <form>
<sidebar>
<h2>Title</h2>
<a href="display.php"> Display </a>
<hr>
//display here
</sidebar>
display.php
function display() {
$test = echo '<input type="text" name="text">';
return
}
the logic goes like, if i clicked the href="display.php"
it will display the function display();
how can i display the returned value in display()
function below <hr>
i cant seem to figure our the correct logic for it,
<hr>
if (display() == true) {
$test = echo '<input type="text" name="text">';
return
}