Posted by Hyshiro Fri 2nd Mar 2007 17:12 - Syntax is XML - 129 views
Download | New Post | Modify | Hide line numbers
  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.   session_start();
  6.  
  7.   if (@$_SESSION['auth'] != "yes")
  8.   {
  9.      header("Location: login.php");
  10.      exit();
  11.   }
  12.   include("conf.inc");
  13.   $connection = mysql_connect($host,$user,$password)
  14.     or die ("Couldn't connect to server.");
  15.   $db = mysql_select_db($database,$connection)
  16.     or die ("Couldn't select database.");
  17.   $sql = "SELECT firstName, lastName FROM Member
  18.          WHERE loginName='{$_SESSION['logname']}'";
  19.   $result = mysql_query($sql)
  20.     or die ("Couldn't execute query 1.");
  21.   $row = mysql_fetch_array($result,MYSQL_ASSOC);
  22.   extract($row);
  23.   echo "
  24.         </span>British Computer Solutions Ltd<span class="sc3">
  25.    
  26.    

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

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

  30.      the discounts!

  31.  

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

  32.  
    ">
  33.  

    ">Glad you could join us!

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

  • PermaLink to this entry https://pastebin.co.uk/11302
    Posted by Hyshiro Fri 2nd Mar 2007 17:12 - Syntax is XML - 129 views
    Download | New Post | Modify | Hide line numbers

     

    Comments: 0