Page 1 of 1

php help

Posted: Sat May 09, 2009 8:04 am
by noriko94
creat signon.php, contains a form for entering usernam and passwprd with submit botton and cancel buttons

Re: php help

Posted: Sat May 09, 2009 8:10 am
by harlemblues

Code: Select all

<html>
<body>
        <form method="POST" action="signon.php">
            <label>Username:</label><input type="text" name="user"><br>
            <br>
            <label>Password:</label><input type="password" name="pass"><br>
            <br>
            <input type="reset" value="Cancel">
            <input type="submit" value="Submit">
        </form>
</body> 
</html>

Re: php help

Posted: Sat May 09, 2009 8:16 am
by mickd
Is this a PHP question?

If you meant to ask about how to actually do stuff with the information, the answer lies with PHP! Here is a bit to get you started.

Code: Select all

 
if(isset($_POST['signup'])) {
 
   $username = $_POST['username'];
   //etc
 
   // putting them into a database needs you to learn about sql
   //start learning :) any questions, or if you get stuck, ask here
 
}
 

Re: php help

Posted: Sat May 09, 2009 8:24 am
by noriko94
ADD; the pass word field shall obscure the characters type by the user

Re: php help

Posted: Sat May 09, 2009 8:26 am
by harlemblues
It is already included ;)

Re: php help

Posted: Sat May 09, 2009 10:02 am
by Benjamin
Come on guys. This forum is for helping people, not requesting code that others shall write for you. Let's show some effort here.

@noriko94, why not post what you have tried and let us know where you are stuck? Also, use more descriptive subjects from now on.