+ 2

How to do i use php to collect data in html?

i have learned html long ago with this app i learned php basic o want to use php to collect data from <form>

26th Mar 2017, 5:38 PM
A.l.
A.l. - avatar
1 Answer
+ 20
Based on form method: <form action="" method="GET"> <input type=text name=data> </form> <?php if(isset($_GET["data"])){ echo "<script>alert(' ".$_GET["data"]." ')</script>"} elseif (isset($_POST["data"])){/*code*/} ?>
26th Mar 2017, 5:58 PM
Valen.H. ~
Valen.H. ~ - avatar