I have a a HTML form, Which when Submited i would like it to store in a text file and show on a php echo which will show text enterd in the form.
HTML Form :
HTML Code:
<form action="script1.php" method="post" name="" id=""> <input name="username" type="text" id="username"> <input name="firstname" type="text" id="firstname"> <input type="submit" name="Submit" value="Submit"> </form>
PHP :
PHP Code:
<?php
if(isset($_POST['submit'])) :
$username = strip_tags($_POST['username']);
$password = strip_tags($_POST['firstname']);
echo $username ;
?>
I dunno what else to put in the scrip to make it store the inputed info and then echo it, Can any one help?