Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

create input

<form method="GET">
    <input type="text" name="person">
    <button>SUBMIT</button>
</form>

<?php
$name=$_GET['person'];
echo $name."is a great person";
/*method in form tag and action too but method we use in the same page and
action is if we need to call something like phph file*/
/*make sure that i put suporator betweenn variable name and string */
?>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.