PHP LOGIN FORMS

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Jay

Postby Jay » Thu Oct 03, 2002 11:33 pm

Make a form, set the action to a PHP page, method to POST (for security). When they submit the form you get the variables through the $_POST array, and you can do what you wish with it from here!

mjr
New php-forum User
New php-forum User
Posts: 18
Joined: Fri Sep 27, 2002 6:35 am
Contact:

Re: PHP LOGIN FORMS

Postby mjr » Fri Oct 04, 2002 6:50 am

illegalport wrote:Can Sumone Please Tell Me How To Make A PHP Login Form~? :o


make html form like

Code: Select all

<form action="test.php">
Login: <input type=text name=frmLogin><br>
password: <input type=password name=frmPassword>
</form


and then in test.php

Code: Select all

<?
  echo "Login is $frmLogin; password is $frmPassword";
?>


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google Feedfetcher and 2 guests