whizzykid Posted August 7, 2009 Share Posted August 7, 2009 my code i tried to make it such that it uniquely goes to a profile but it doesnt. here is my code. if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $insertSQL = sprintf("INSERT INTO `Login form` (`Account Number`, Password) VALUES (%s, %s)", GetSQLValueString($_POST['Account_Number'], "text"), GetSQLValueString($_POST['Password'], "int")); mysql_select_db($database_oceapcom_oceanicgroup, $oceapcom_oceanicgroup); $Result1 = mysql_query($insertSQL, $oceapcom_oceanicgroup) or die(mysql_error()); $insertGoTo = "oc.jpg"; if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo)); } Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted August 7, 2009 Share Posted August 7, 2009 Could you expand on that a little more? Thanks! Quote Link to comment Share on other sites More sharing options...
whizzykid Posted August 7, 2009 Author Share Posted August 7, 2009 Ok,tht is the login page,i want to such that they can uniquely login to their profile. hope this explains better. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted August 7, 2009 Share Posted August 7, 2009 Usually the profile page is built off session values, so that way everyone goes to the exact same page it just loads information according to his/her session id a.k.a. user id. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.