lmayer
09-01-2006, 08:52 PM
Afternoon,
I've removed every, allright I guess not every, bit of white space I could find. If someone could take a quick look and tell me if they see anything that would be great....
session_start();
header("Cache-control: private"); //IE 6 Fix
include ("connect.php");
$Nickname = $_POST['Nickname'];
$Sex = $_POST['Sex'];
$Major = $_POST['Major'];
$Residence_Hall = $_POST['Residence_Hall'];
$Room = $_POST['Room'];
$Campus_Phone = $_POST['Campus_Phone'];
$Cell_Phone = $_POST['Cell_Phone'];
$Email = $_POST['Email'];
$Ethnicity = $_POST['Ethnicity'];
$Privacy_Flag = $_POST['Privacy_Flag'];
$query = "INSERT INTO PersonTbl (CampusID,Nickname,Sex,Major,Residence_Hall,Room,Campus_Phone,Cell_Phone,Email,Ethnicity,Privacy_Fla g)VALUES ('" .$_SESSION['Campus_ID'] . "','" . $Nickname . "','" . $Sex . "','" . $Major . "','" . $Residence_Hall . "','" . $Room . "','" .$Campus_Phone . "','" . $Cell_Phone . "','" . $Email . "','" . $Ethnicity . "','" . $Privacy_Flag . "')";
header("Location: Academic.php");
and the include file
$database='Res_Life_Dev';
$link=mysql_connect('localhost','username','xxxxxx');
$connection=mysql_select_db($database,$link);
Thanks for any help
Laura
I've removed every, allright I guess not every, bit of white space I could find. If someone could take a quick look and tell me if they see anything that would be great....
session_start();
header("Cache-control: private"); //IE 6 Fix
include ("connect.php");
$Nickname = $_POST['Nickname'];
$Sex = $_POST['Sex'];
$Major = $_POST['Major'];
$Residence_Hall = $_POST['Residence_Hall'];
$Room = $_POST['Room'];
$Campus_Phone = $_POST['Campus_Phone'];
$Cell_Phone = $_POST['Cell_Phone'];
$Email = $_POST['Email'];
$Ethnicity = $_POST['Ethnicity'];
$Privacy_Flag = $_POST['Privacy_Flag'];
$query = "INSERT INTO PersonTbl (CampusID,Nickname,Sex,Major,Residence_Hall,Room,Campus_Phone,Cell_Phone,Email,Ethnicity,Privacy_Fla g)VALUES ('" .$_SESSION['Campus_ID'] . "','" . $Nickname . "','" . $Sex . "','" . $Major . "','" . $Residence_Hall . "','" . $Room . "','" .$Campus_Phone . "','" . $Cell_Phone . "','" . $Email . "','" . $Ethnicity . "','" . $Privacy_Flag . "')";
header("Location: Academic.php");
and the include file
$database='Res_Life_Dev';
$link=mysql_connect('localhost','username','xxxxxx');
$connection=mysql_select_db($database,$link);
Thanks for any help
Laura