Author Topic: Sample PHP login and welcome script  (Read 1167 times)

administrator

  • Administrator
  • Full Member
  • *****
  • Posts: 69
Sample PHP login and welcome script
« on: November 03, 2011, 10:22:45 pm »
The content of portal_login.php is given below:

Code: (php)
//Source Code Listing

<form action="portal_welcome.php" method="post" name="myLogin" id="myLogin" >

User Name: <input type="text" name="username" size="10" class="input_text"/>

Password: <input type="password" name="password" size="10" class="input_password"/>

<input type="submit" />

</form> 

The content of portal_welcome.php is given below:

Your username is:
<?php
   echo $_POST["username"]; 
   echo '<br/>';
?>
<br />
You password is: <?php echo $_POST["password"]; ?>.
« Last Edit: December 13, 2011, 11:34:06 pm by administrator »

 


Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer.
Content copyright 2010-2014. Kathiresan. All rights reserved.
This page is using SMF version 2.0.1