Making Simple Form

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ahuacatlan
Forum Newbie
Posts: 1
Joined: Tue Jan 06, 2009 2:34 pm

Making Simple Form

Post 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!
nvartolomei
Forum Newbie
Posts: 11
Joined: Tue Jan 06, 2009 3:46 pm

Re: Making Simple Form

Post 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>
Post Reply