what are php scripts?

PHP is a website development programming language, you can create dynamic pages using all sorts of variables, data bases, and quite a bit more.

If you want ot make a log in page in php, you're going to have to get a html form, and process it in php. Here's a simple example.

In a file called 'login.php'
<?php
if (!empty($_POST['username']) && !empty($_POST['password'])) {
/* not using any databases but hard coded login. */
if($_POST['username'] == "admin" && $_POST['password'] == "1234") {
echo 'You logged in!'; exit;
}
} ?>
<form method="POST">
Username: <input type="text" name="username"><br />
Password: <input type="password" name="password"><br />
<input type="submit" value="Login!">
</form>
/* untested */

Enjoy, you do need a webserver with html/php installed.
 
Back
Top