Page 1 of 1

Making Simple Form

Posted: Tue Jan 06, 2009 2:37 pm
by ahuacatlan
Hi,
On the following page, can someone show me the code to make the field that currently contains "secret" into a form that visitors to this page can fill out themselves. (I have little to no PHP knowledge)

http://99.166.12.61/pass.php

Thanks!

Re: Making Simple Form

Posted: Tue Jan 06, 2009 4:01 pm
by nvartolomei

Code: Select all

<?php
if (isset($_POST['secret'])) {
    echo "Secret is: " . $_POST['secret'];
    die();
}
?>
<form name="user_form" method="POST">
    <input name="secret" type="text" />
    <input type="submit" />
</form>