0
display a message in <p> with php
hi guys when click a submit of form I wanna display a text in <p> tag with using php code
1 Answer
0
Hi!
I'm not sure this is what you need, but maybe.
HTML part:
<form method="GET">
<input type="text" name="displayed_text">
<input type="submit" value="Submit button">
</form>
PHP part:
<?php
if (isset($_GET['displayed_text']))
{
echo "<p>" . $_GET['displayed_text'] . "</p>";
}
?>