Sorry about the french speaking inconvenient. It’s the next big step i’ll work on, to make it bilingual depending on the browser’s language preference.
I thank you for taking part of your time to do it. I’ve done a litttle testing of it this night and i’ve found just a problem. I don’t knowif it’s my coding or my host (multimania) 'cause it worked fine on my computer. The confirmation page doesn’t loads the table it contains when the registration is done. Here’s the code
[code]<?php
include “include/connexion.inc.php”;
$loginame = $_POST[‘loginame’];
$loginpword = $_POST[‘loginpword’];
$usermail = $_POST[‘usermail’];
$userlocation = $_POST[‘userlocation’];
// check if the username entered already exist in the table
$sql_1 = “select * from reg_member where loginame=’$loginame’”;
$reg_result_1 = mysql_db_query($dbname,$sql_1,$id_link);
$reg_num_1 = @mysql_num_rows($reg_result_1);
if(!$reg_num_1 || $reg_num_1>1) {
// check if the email entered already exist in the table
$sql_2 = “select * from reg_member where usermail=’$usermail’”;
$reg_result_2 = mysql_db_query($dbname,$sql_2,$id_link);
$reg_num_2 = @mysql_num_rows($reg_result_2);
if(!$reg_num_2 || $reg_num_2>1) {
// record the data’s in the table if everything is ok
$sql=“INSERT INTO reg_member (loginame,loginpword,usermail,userlocation) VALUES (’$loginame’,’$loginpword’,’$usermail’,’$userlocation’)”;
@mysql_db_query($dbname,$sql,$id_link);
?>
Welcome <?php echo($loginame) ?> |
<?php
} else { // if the email already exist
header("Location: pages.php?page=register&msg=umail");
}
} else { // if the username already exist
header("Location: pages.php?page=register&msg=uname");
}
//
?>[/code]
When i go to the PhpMyAdmin, the data’s are recorded in the appropriate table.
Thanks again and in advance for any help.
Friendly, Lucifer Christ, php beginner