Here there is an answer for an image from a url.
I try to retrieve it from a submit process using this but it it not the right echo.
<?php echo $_POST['onclick']; ?>
Here there is an answer for an image from a url.
I try to retrieve it from a submit process using this but it it not the right echo.
<?php echo $_POST['onclick']; ?>
This will do the job for you, please look into php's $_POST more because this question is unneeded and can easily be searched for on the internet.
<?php
if(isset($_POST['image'])) {
echo "<img src='" . $_POST['image'] . "' />";
}
?>
<form action="" method="POST">
<input type="text" name="image" />
<button type="submit">Show image</button>
</form>