Posted by Hyshiro Fri 2nd Mar 2007 17:11 - Syntax is PHP - 37 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
  1.  /* Program: new_member.php
  2.   * Desc:    Displays the new member wleocme page. Greets member by name and gives user choice to enter
  3.   *          restricted section or go back to main page.
  4.   */
  5.  
  6.   if (@$_SESSION['auth'] != "yes")
  7.   {
  8.      header("Location: login.php");
  9.      exit();
  10.   }
  11.   include("conf.inc");
  12.   $connection = mysql_connect($host,$user,$password)
  13.     or die ("Couldn't connect to server.");
  14.   $db = mysql_select_db($database,$connection)
  15.     or die ("Couldn't select database.");
  16.   $sql = "SELECT firstName, lastName FROM Member
  17.          WHERE loginName='{$_SESSION['logname']}'";
  18.   $result = mysql_query($sql)
  19.     or die ("Couldn't execute query 1.");
  20.   $row = mysql_fetch_array($result,MYSQL_ASSOC);
  21.   extract($row);
  22.   echo "
  23.         British Computer Solutions Ltd
  24.    
  25.    

  26.     Welcome $firstName $lastName\n";
  27.  ?>
  28.  

    Your new Member Account lets you enter the Members Only section of our web site. And you are now entitled to

  29.      the discounts!
  30.  

    Your new member ID and password were emailed to you. Store them carefully for future use.

  31.  
    "center">
  32.  

    "margin-top: .5in!">Glad you could join us!

  33.  
    "Member_Page.php" method="POST">
  34.     "submit"
  35.            value="Enter the members only section">
  36.  
  37.  
    "index.php" method="POST">
  38.     "submit" value="Go to home page">
  39.  
  40.  
  •  
  •  

  • PermaLink to this entry https://pastebin.co.uk/11301
    Posted by Hyshiro Fri 2nd Mar 2007 17:11 - Syntax is PHP - 37 viewsRun this post in the PHP shell
    Download | New Post | Modify | Hide line numbers

     

    Comments: 0