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

9th Apr 2020, 2:30 PM
Mostafa
1 Respuesta
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>"; } ?>
14th Apr 2020, 8:29 PM
DRen
DRen - avatar