Posted by Hyshiro Fri 2nd Mar 2007 17:12 - Syntax is XML - 129 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
-
-
/* Program: new_member.php
-
* Desc: Displays the new member wleocme page. Greets member by name and gives user choice to enter
-
* restricted section or go back to main page.
-
*/
-
session_start();
-
-
if (@$_SESSION['auth'] != "yes")
-
{
-
header("Location: login.php");
-
exit();
-
}
-
include("conf.inc");
-
$connection = mysql_connect($host,$user,$password)
-
or die ("Couldn't connect to server.");
-
$db = mysql_select_db($database,$connection)
-
or die ("Couldn't select database.");
-
$sql = "SELECT firstName, lastName FROM Member
-
WHERE loginName='{$_SESSION['logname']}'";
-
$result = mysql_query($sql)
-
or die ("Couldn't execute query 1.");
-
$row = mysql_fetch_array($result,MYSQL_ASSOC);
-
extract($row);
-
echo "
-
British Computer Solutions Ltd -
-
-
Welcome $firstName $lastName\n";
-
?>
-
Your new Member Account lets you enter the Members Only section of our web site. And you are now entitled to
-
the discounts!
-
Your new member ID and password were emailed to you. Store them carefully for future use.
-
">
">
Glad you could join us!POST">"value="Enter the members only section">POST">" value="Go to home page"> -
-
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
Download | New Post | Modify | Hide line numbers
Comments: 0