phpbb to my website

  • saad_sinpk
  • Born
  • Born
  • saad_sinpk
  • Posts: 3

Post 3+ Months Ago

hi i want to make 1 login for my website and phpbb forum , i try, i join both db and make 1 table phpbb_user, now i am getting this error
1062 - Duplicate entry '' for key 2

insert into phpbb_users (user_name, user_email, user_forname, user_nickname, user_gender, user_birthday, username, user_password, user_image, user_ip, user_status) values ('sadsa', 'emailcom', 'asdasdas', '', 'Mlle', '--', 'sadasd', '25f9e794323b453885f5181f1b624d0b', '', '119.63.136.101', 'active')
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

List the steps you took to get where you are right now.
  • saad_sinpk
  • Born
  • Born
  • saad_sinpk
  • Posts: 3

Post 3+ Months Ago

first, i move my website db connection to phpbb website, then i remove my website user table and movie to phpbb_user, and change coding in my files,
one more thing when i first try i join at first, but when i try second time, it is not allow me, then i delete that user from db, and again i try to join, i get in
here is my db phpbb_user structure
Attachments:
5.JPG

here is my db structure 5

Attachments:
4.JPG

here is my db structure 4

Attachments:
3.JPG

here is my db structure 3

Attachments:
2.JPG

here is my db structure 2

Attachments:
1.JPG

MY DB STRUCTURE

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Sounds like there's a flaw in the code that handles new members. Duplicate key sounds like either you're trying to set the user_id which should be auto_incremented, or you haven't accounted for existing email addresses or something.

Have you been through the following ?
http://wiki.phpbb.com/Authentication_plugins
  • saad_sinpk
  • Born
  • Born
  • saad_sinpk
  • Posts: 3

Post 3+ Months Ago

here is my register.php code
Code: [ Select ]
<?php require_once('admin/inc/config.php');?>
<?
switch($action)
{
    case 'register':
        
        $user_gender    =$_POST['gender'];
        $user_name    =$_POST['name'];
        $user_email    =$_POST['user_email'];
        $user_forname=$_POST['forname'];
        $user_nickname=$_POST['nickname'];
        $user_birthday     =$_POST['dd'].'-'.$_POST['mm'].'-'.$_POST['yy'];
        $username =$_POST['username'];
        $user_password=$_POST['user_password'];
        
        $sql    ="select * from ".TABLE_USERS." where username='$username' or user_email='$user_email'";
        $res    =tep_db_query($sql);
        $row    =tep_db_fetch_assoc($res);
        if(tep_db_num_rows($res) > (int)1)
        {
            $err=base64_encode("e-mail ou l'ID utilisateur existe déjà s'il vous plaît choisir un autre!");
        }
        else if($row['user_email']==$user_email)
        {
            $err=base64_encode("Cet e-mail id existe déjà s'il vous plaît choisir un autre!");
        }
        else if($row['username']==$username)
        {
            $err=base64_encode("Cet ID utilisateur existe déjà choisir un autre!");
        }
        else{
            $image=uploadImage('image', 'images/users/',96,'',32,"register.php?err=Please upload specified file size!",600);
            
            $sql_data_array=array('user_name'            =>$user_name,
                                 'user_email'            =>$user_email,
                                  'user_forname'            =>$user_forname,
                             'user_nickname'        =>$user_nickname,
                                 'user_gender'            =>$user_gender,
                             'user_birthday'    =>$user_birthday,
                                 'username'            =>$username,
                                 'user_password'        =>md5($user_password),
                                 'user_image'            =>$image,
                                 'user_ip'            =>USER_IP,
                                 'user_status'            =>'active'    
                                 );
            $res=tep_db_perform(TABLE_USERS, $sql_data_array);
            if($res)
            {
                tep_redirect("register.php?msg=".base64_encode("You are successfuly registered now you can access your account"));
            }                         
        }
    break;
    case 'edit':
        $sql="select * from ".TABLE_USERS." where user_id='".$_SESSION['site_username']."'";
    break;    
        
    case 'login':
            
            $username    =$_POST['username'];
            $user_password    =md5($_POST['user_password']);
            $sql ="select * from ".TABLE_USERS." where username='".tep_db_input($username)."' and user_password='".tep_db_input($user_password)."'";
            $res =tep_db_query($sql);
            $row =tep_db_fetch_assoc($res);
            if($username=='' && $_POST['user_password']=='')
            {
                tep_redirect("login.php?err=".base64_encode("Sorry user id and password canot left blank!"));
            }
            else if($row['user_status']=='inactive')
            {
                tep_redirect("login.php?err=".base64_encode("Your account has not activated contact administrator!"));
            }
            else if(tep_db_num_rows($res)>(int)0)
            {
                tep_session_register("site_user_name");
                tep_session_register("site_username");
                $_SESSION['site_user_name']=$row['username'];
                $_SESSION['site_username'] =$row['user_id'];                
                //previous page
                if(isset($_SESSION['last_return_url']))    {
                    list($page)= explode('.php',basename($_SESSION['last_return_url']) );
                }else{
                    $page='';
                }
                //end
                //check weather session is active or not
                if(isset($_SESSION['cId']) && $_SESSION['cId']==1){
                    tep_redirect('checkout.php?step=1');
                }else if(isset($_SESSION['last_return_url']) && $page=='video' ){
                    tep_redirect($_SESSION['last_return_url']);
                }else{
                    tep_redirect('dashboard.php');
                }
                //end
            }
            else{
                tep_redirect("login.php?err=".base64_encode("Wrong user id or password!"));
            }                    
        break;
    case 'logout':
            if(tep_session_is_registered('site_user_name')){
                tep_session_unregister('site_user_name');
                tep_session_unregister('site_username');
                tep_session_unregister('last_return_url');
                tep_redirect("login.php?msg=".base64_encode("You have successfully signed out!"));
            }else{
                tep_redirect("login.php");
            }
        break;    
}
// date month year
$date    =array('01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26',
            '27','28','29','30','31');
$month    =array('01','02','03','04','05','06','07','08','09','10','11','12');
// end
$msg=tep_string_convert($msg,'base64');    //calling string convertion function
$err=tep_string_convert($err,'base64');    //calling string convertion function
?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>rougejaunevert</title>
<META name="description" content="rougejaunevert">
<META name="keywords" content="news, guinee, guinea, articles, election, 2010, conakry, labe, kankan, video, radio, candidats, candidat, candidates, candidate, vote, lansana, conte, dadis, moussa, camara, colone,l general, t-shirt, love, shop, achat">

<link rel="shortcut icon" href="favicon.ico" />
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="tutorsty.css" rel="stylesheet" type="text/css" />
<link href="flexcrollstyles.css" rel="stylesheet" type="text/css" />
<script type='text/javascript' src="flexcroll.js"></script>
<script language="javascript" src="js/valid.js"></script>

<!--valid user name-->
<script src="js/jquery.js" type="text/javascript" language="javascript"></script>
<script language="javascript">
//<!---------------------------------+
// Developed by Roshan Bhattarai
// Visit http://roshanbh for this script and more.
// This notice MUST stay intact for legal use
// --------------------------------->
$(document).ready(function()
{
    $("#username").blur(function()
    {
        //remove all the class add the messagebox classes and start fading
        $("#msgbox").removeClass().addClass('messagebox').text('Checking...').fadeIn("slow");
        //check the username exists or not from ajax
        $.post("user_availability.php",{ user_name:$(this).val() } ,function(data)
    {
         if(data=='no') //if username not avaiable
         {
             $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
            {
             //add message and change the class of the box and start fading
             $(this).html('Cet ID utilisateur existe déjà choisir un autre').addClass('messageboxerror').fadeTo(900,1); return false;
             
            });        
     }
         else if(data=='blank') //if username not avaiable
         {
             $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
            {
             //add message and change the class of the box and start fading
             $(this).html('Sil vous plaît entrer votre nom dutilisateur').addClass('messageboxerror').fadeTo(900,1); return false;
             
            });        
     }
         else
         {
             $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
            {
             //add message and change the class of the box and start fading
             $(this).html('Userid disponible pour enregistrer').addClass('messageboxok').fadeTo(900,1);    
            });
         }
                
    });

    });
});
</script>
<style type="text/css">
.top {
    margin-bottom: 15px;
}
.messagebox{
    position:absolute;
    width:100px;
    margin-left:30px;
    border:1px solid #c93;
    background:#ffc;
    padding:3px;
}
.messageboxok{
    position:absolute;
    width:auto;
    margin-left:30px;
    border:1px solid #349534;
    background:#C9FFCA;
    padding:3px;
    font-weight:bold;
    color:#008000;
    
}
.messageboxerror{
    position:absolute;
    width:auto;
    margin-left:30px;
    border:1px solid #CC0000;
    background:#F7CBCA;
    padding:3px;
    font-weight:bold;
    color:#CC0000;
}

</style>
<!--end-->
</head>
<body>
<table width="984" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
  <td class="hraderbg">
  <? require_once('inc/header.php');?>
  </td>
 </tr>
 <tr>
  <td><table width="984" border="0" cellspacing="0" cellpadding="0">
   <tr>
    <td width="657" align="left" valign="top"><table width="657" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td class="padB"><? tep_inner_banner(0);?></td>
     </tr>
     <tr>
      <td class="padB"><table width="100%" border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td style="background:#FFFFFF url(images/content-m-top.gif) no-repeat top;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td style="background:url(images/contnet-m-btm.gif) no-repeat bottom;"><table width="100%" border="0" cellspacing="10" cellpadding="0">
           <tr>
            <td align="left" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                 
             <tr>
              <td class="brdrB"><h1>Vous Tes Un Nouveau Client ?</h1></td>
             </tr>
             <tr>
                 <td class="brdB">(Champs obligatoires <font class="redCommentText">*</font>)</td>
             </tr>
             <tr>
              <td class="padTB">
              <?php echo (!empty($msg)) ? '<div class="success">'.$msg.'</div>' : '';?>
                      <?php echo (!empty($err)) ? '<div class="error">'.$err.'</div>' : '';?>
                    <form method="post" name="userform" action="register.php?action=register" enctype="multipart/form-data" onsubmit="javascript:return validRegister()">
                <table width="100%" cellpadding="4" cellspacing="0" style="padding-left:10px;" bgcolor="#FFFFFF">
                 <tr>
                    <td>Civilite <font class="redCommentText">*</font></td>
                    <td align="left">
                        <table width="200" border="0" cellpadding="2" cellspacing="0">
                       <tr>
                        <td width="20"><input type="radio" name="gender" value="Mlle" <? if(isset($gender) && $gender=='Mile') echo 'checked';?> /></td>
                        <td width="33">Mlle</td>
                        <td width="20"><input type="radio" name="gender" value="Mme" <? if(isset($gender) && $gender=='Mme') echo 'checked';?> /></td>
                        <td width="43">Mme</td>
                        <td width="20"><input type="radio" name="gender" value="M" <? if(isset($gender) && $gender=='M') echo 'checked';?> /></td>
                        <td width="40">M</td>
                       </tr>
                      </table>

                    </td>
                 </tr>
                 <tr>
                    <td>Votre adresse e-mail<font class="redCommentText">*</font></td>
                    <td align="left">
                    <input type="text" name="user_email" class="box" size="40" value="<? echo isset($user_email) ? $email : '';?>" />
                    </td>
                 </tr>
                  <tr>
                    <td>User Id<font class="redCommentText">*</font></td>
                    <td align="left">
                    <input type="text" name="username" id="username" class="box" size="30" maxlength="20" />
                    <span id="msgbox" style="display:none"></span>
                    </td>
                 </tr>
                 <tr>
                    <td>Votremotdepasse<font class="redCommentText">*</font></td>
                    <td align="left">
                    <input type="password" name="user_password" class="box" size="30" maxlength="30" />                    </td>
                 </tr>
                 <tr>
                    <td>Confirmez Votremotdepasse<font class="redCommentText">*</font></td>
                    <td align="left">
                    <input type="password" name="confirm_pass" class="box" size="30" maxlength="30" />                    </td>
                 </tr>
                 <tr>
                    <td width="25%">Nom<font class="redCommentText">*</font></td>
                    <td width="75%" align="left">
                    <input type="text" name="name" class="box" size="40" value="<? echo isset($name) ? $name : '';?>" />
                    </td>
                 </tr>
                 <tr>
                    <td>Prnom<font class="redCommentText">*</font></td>
                    <td align="left">
                    <input type="text" name="forname" size="40" value="<? echo isset($forname) ? $forname : '';?>">
                    </td>
                 </tr>
                 <tr>
                    <td>Pseudo</td>
                    <td align="left">
                    <input type="text" name="nickname" size="40" value="<? echo isset($name) ? $name : '';?>" />
                    </td>
                 </tr>
                 <tr>
                    <td>Date de naissance</td>
                    <td align="left">
                    <select name="dd">
                      <option value="">DD</option>
                      <?
                        foreach($date as $val)
                        {
                      ?>
                      <option value="<? echo $val;?>" <? if(isset($_POST['dd']) && $_POST['dd']==$val) echo 'selected';?>><? echo $val;?></option>
                      <?    
                        }
                      ?>
                    </select>
                    <select name="mm">
                      <option value="">MM</option>
                      <?
                        foreach($month as $val)
                        {
                      ?>
                      <option value="<? echo $val;?>" <? if(isset($_POST['mm']) && $_POST['mm']==$val) echo 'selected';?>><? echo $val;?></option>
                      <?    
                        }
                      ?>
                    </select>
                    <select name="yy">
                      <option value="">YY</option>
                      <?
                        for($i=1920;$i<=2040; $i++)
                        {
                      ?>
                      <option value="<? echo $i;?>" <? if(isset($_POST['yy']) && $_POST['yy']==$i) echo 'selected';?>><? echo $i;?></option>
                      <?    
                        }
                      ?>
                    </select>
                    </td>
                 </tr>
                 <tr>
                  <td>Image Profile</td>
                  <td align="left">
                  <input type="file" name="image" size="40" />
                 </td>
                 </tr>
                  <tr>
                   <td>&nbsp;</td>
                   <td align="left">
                   <input type="image" name="submit" src="images/btn-submit.gif" style="border:none;padding:0px;" value="submit" />
                   <img src="images/btn-cancel.gif" onclick="javascript:document.userform.reset();" />                   </td>
                  </tr>
                 </table>
                </form>
               </td>
             </tr>
             <tr>
              <td class=" brdrT"></td>
             </tr>
            </table></td>
           </tr>
          </table></td>
         </tr>
        </table></td>
       </tr>
      </table></td>
     </tr>
    </table></td>
    <td align="right" valign="top" class="padL"><table width="318" border="0" cellspacing="0" cellpadding="0">
     <tr>
      <td class="padB"><table width="318" border="0" cellspacing="0" cellpadding="0">
       <tr>
        <td style="background:#FFFFFF url(images/content-s-top.gif) no-repeat top;"><table width="318" border="0" cellspacing="0" cellpadding="0">
         <tr>
          <td style="background:url(images/content-s-btm.gif) no-repeat bottom;">
           <? require_once('top_candidats.php');?>
          </td>
         </tr>
        </table></td>
       </tr>
      </table></td>
     </tr>
     <tr>
      <td class="padB">
          <a href="http://www.store.rougejaunevert" target="_blank"><img src="images/shop.jpg" border="0" alt="shop" /></a>
      </td>
     </tr>
     <tr>
      <td class="padB">
      <? include('vote.php');?>
      </td>
     </tr>
     
    </table></td>
   </tr>
  </table></td>
 </tr>
 <? require_once('inc/footer.php');?>
</table>
</body>
</html>
  1. <?php require_once('admin/inc/config.php');?>
  2. <?
  3. switch($action)
  4. {
  5.     case 'register':
  6.         
  7.         $user_gender    =$_POST['gender'];
  8.         $user_name    =$_POST['name'];
  9.         $user_email    =$_POST['user_email'];
  10.         $user_forname=$_POST['forname'];
  11.         $user_nickname=$_POST['nickname'];
  12.         $user_birthday     =$_POST['dd'].'-'.$_POST['mm'].'-'.$_POST['yy'];
  13.         $username =$_POST['username'];
  14.         $user_password=$_POST['user_password'];
  15.         
  16.         $sql    ="select * from ".TABLE_USERS." where username='$username' or user_email='$user_email'";
  17.         $res    =tep_db_query($sql);
  18.         $row    =tep_db_fetch_assoc($res);
  19.         if(tep_db_num_rows($res) > (int)1)
  20.         {
  21.             $err=base64_encode("e-mail ou l'ID utilisateur existe déjà s'il vous plaît choisir un autre!");
  22.         }
  23.         else if($row['user_email']==$user_email)
  24.         {
  25.             $err=base64_encode("Cet e-mail id existe déjà s'il vous plaît choisir un autre!");
  26.         }
  27.         else if($row['username']==$username)
  28.         {
  29.             $err=base64_encode("Cet ID utilisateur existe déjà choisir un autre!");
  30.         }
  31.         else{
  32.             $image=uploadImage('image', 'images/users/',96,'',32,"register.php?err=Please upload specified file size!",600);
  33.             
  34.             $sql_data_array=array('user_name'            =>$user_name,
  35.                                  'user_email'            =>$user_email,
  36.                                   'user_forname'            =>$user_forname,
  37.                              'user_nickname'        =>$user_nickname,
  38.                                  'user_gender'            =>$user_gender,
  39.                              'user_birthday'    =>$user_birthday,
  40.                                  'username'            =>$username,
  41.                                  'user_password'        =>md5($user_password),
  42.                                  'user_image'            =>$image,
  43.                                  'user_ip'            =>USER_IP,
  44.                                  'user_status'            =>'active'    
  45.                                  );
  46.             $res=tep_db_perform(TABLE_USERS, $sql_data_array);
  47.             if($res)
  48.             {
  49.                 tep_redirect("register.php?msg=".base64_encode("You are successfuly registered now you can access your account"));
  50.             }                         
  51.         }
  52.     break;
  53.     case 'edit':
  54.         $sql="select * from ".TABLE_USERS." where user_id='".$_SESSION['site_username']."'";
  55.     break;    
  56.         
  57.     case 'login':
  58.             
  59.             $username    =$_POST['username'];
  60.             $user_password    =md5($_POST['user_password']);
  61.             $sql ="select * from ".TABLE_USERS." where username='".tep_db_input($username)."' and user_password='".tep_db_input($user_password)."'";
  62.             $res =tep_db_query($sql);
  63.             $row =tep_db_fetch_assoc($res);
  64.             if($username=='' && $_POST['user_password']=='')
  65.             {
  66.                 tep_redirect("login.php?err=".base64_encode("Sorry user id and password canot left blank!"));
  67.             }
  68.             else if($row['user_status']=='inactive')
  69.             {
  70.                 tep_redirect("login.php?err=".base64_encode("Your account has not activated contact administrator!"));
  71.             }
  72.             else if(tep_db_num_rows($res)>(int)0)
  73.             {
  74.                 tep_session_register("site_user_name");
  75.                 tep_session_register("site_username");
  76.                 $_SESSION['site_user_name']=$row['username'];
  77.                 $_SESSION['site_username'] =$row['user_id'];                
  78.                 //previous page
  79.                 if(isset($_SESSION['last_return_url']))    {
  80.                     list($page)= explode('.php',basename($_SESSION['last_return_url']) );
  81.                 }else{
  82.                     $page='';
  83.                 }
  84.                 //end
  85.                 //check weather session is active or not
  86.                 if(isset($_SESSION['cId']) && $_SESSION['cId']==1){
  87.                     tep_redirect('checkout.php?step=1');
  88.                 }else if(isset($_SESSION['last_return_url']) && $page=='video' ){
  89.                     tep_redirect($_SESSION['last_return_url']);
  90.                 }else{
  91.                     tep_redirect('dashboard.php');
  92.                 }
  93.                 //end
  94.             }
  95.             else{
  96.                 tep_redirect("login.php?err=".base64_encode("Wrong user id or password!"));
  97.             }                    
  98.         break;
  99.     case 'logout':
  100.             if(tep_session_is_registered('site_user_name')){
  101.                 tep_session_unregister('site_user_name');
  102.                 tep_session_unregister('site_username');
  103.                 tep_session_unregister('last_return_url');
  104.                 tep_redirect("login.php?msg=".base64_encode("You have successfully signed out!"));
  105.             }else{
  106.                 tep_redirect("login.php");
  107.             }
  108.         break;    
  109. }
  110. // date month year
  111. $date    =array('01','02','03','04','05','06','07','08','09','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26',
  112.             '27','28','29','30','31');
  113. $month    =array('01','02','03','04','05','06','07','08','09','10','11','12');
  114. // end
  115. $msg=tep_string_convert($msg,'base64');    //calling string convertion function
  116. $err=tep_string_convert($err,'base64');    //calling string convertion function
  117. ?>
  118. <html>
  119. <head>
  120. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  121. <title>rougejaunevert</title>
  122. <META name="description" content="rougejaunevert">
  123. <META name="keywords" content="news, guinee, guinea, articles, election, 2010, conakry, labe, kankan, video, radio, candidats, candidat, candidates, candidate, vote, lansana, conte, dadis, moussa, camara, colone,l general, t-shirt, love, shop, achat">
  124. <link rel="shortcut icon" href="favicon.ico" />
  125. <link href="style.css" rel="stylesheet" type="text/css" />
  126. <link href="tutorsty.css" rel="stylesheet" type="text/css" />
  127. <link href="flexcrollstyles.css" rel="stylesheet" type="text/css" />
  128. <script type='text/javascript' src="flexcroll.js"></script>
  129. <script language="javascript" src="js/valid.js"></script>
  130. <!--valid user name-->
  131. <script src="js/jquery.js" type="text/javascript" language="javascript"></script>
  132. <script language="javascript">
  133. //<!---------------------------------+
  134. // Developed by Roshan Bhattarai
  135. // Visit http://roshanbh for this script and more.
  136. // This notice MUST stay intact for legal use
  137. // --------------------------------->
  138. $(document).ready(function()
  139. {
  140.     $("#username").blur(function()
  141.     {
  142.         //remove all the class add the messagebox classes and start fading
  143.         $("#msgbox").removeClass().addClass('messagebox').text('Checking...').fadeIn("slow");
  144.         //check the username exists or not from ajax
  145.         $.post("user_availability.php",{ user_name:$(this).val() } ,function(data)
  146.     {
  147.          if(data=='no') //if username not avaiable
  148.          {
  149.              $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
  150.             {
  151.              //add message and change the class of the box and start fading
  152.              $(this).html('Cet ID utilisateur existe déjà choisir un autre').addClass('messageboxerror').fadeTo(900,1); return false;
  153.              
  154.             });        
  155.      }
  156.          else if(data=='blank') //if username not avaiable
  157.          {
  158.              $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
  159.             {
  160.              //add message and change the class of the box and start fading
  161.              $(this).html('Sil vous plaît entrer votre nom dutilisateur').addClass('messageboxerror').fadeTo(900,1); return false;
  162.              
  163.             });        
  164.      }
  165.          else
  166.          {
  167.              $("#msgbox").fadeTo(200,0.1,function() //start fading the messagebox
  168.             {
  169.              //add message and change the class of the box and start fading
  170.              $(this).html('Userid disponible pour enregistrer').addClass('messageboxok').fadeTo(900,1);    
  171.             });
  172.          }
  173.                 
  174.     });
  175.     });
  176. });
  177. </script>
  178. <style type="text/css">
  179. .top {
  180.     margin-bottom: 15px;
  181. }
  182. .messagebox{
  183.     position:absolute;
  184.     width:100px;
  185.     margin-left:30px;
  186.     border:1px solid #c93;
  187.     background:#ffc;
  188.     padding:3px;
  189. }
  190. .messageboxok{
  191.     position:absolute;
  192.     width:auto;
  193.     margin-left:30px;
  194.     border:1px solid #349534;
  195.     background:#C9FFCA;
  196.     padding:3px;
  197.     font-weight:bold;
  198.     color:#008000;
  199.     
  200. }
  201. .messageboxerror{
  202.     position:absolute;
  203.     width:auto;
  204.     margin-left:30px;
  205.     border:1px solid #CC0000;
  206.     background:#F7CBCA;
  207.     padding:3px;
  208.     font-weight:bold;
  209.     color:#CC0000;
  210. }
  211. </style>
  212. <!--end-->
  213. </head>
  214. <body>
  215. <table width="984" border="0" align="center" cellpadding="0" cellspacing="0">
  216.  <tr>
  217.   <td class="hraderbg">
  218.   <? require_once('inc/header.php');?>
  219.   </td>
  220.  </tr>
  221.  <tr>
  222.   <td><table width="984" border="0" cellspacing="0" cellpadding="0">
  223.    <tr>
  224.     <td width="657" align="left" valign="top"><table width="657" border="0" cellspacing="0" cellpadding="0">
  225.      <tr>
  226.       <td class="padB"><? tep_inner_banner(0);?></td>
  227.      </tr>
  228.      <tr>
  229.       <td class="padB"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  230.        <tr>
  231.         <td style="background:#FFFFFF url(images/content-m-top.gif) no-repeat top;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  232.          <tr>
  233.           <td style="background:url(images/contnet-m-btm.gif) no-repeat bottom;"><table width="100%" border="0" cellspacing="10" cellpadding="0">
  234.            <tr>
  235.             <td align="left" valign="top">
  236.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  237.                  
  238.              <tr>
  239.               <td class="brdrB"><h1>Vous Tes Un Nouveau Client ?</h1></td>
  240.              </tr>
  241.              <tr>
  242.                  <td class="brdB">(Champs obligatoires <font class="redCommentText">*</font>)</td>
  243.              </tr>
  244.              <tr>
  245.               <td class="padTB">
  246.               <?php echo (!empty($msg)) ? '<div class="success">'.$msg.'</div>' : '';?>
  247.                       <?php echo (!empty($err)) ? '<div class="error">'.$err.'</div>' : '';?>
  248.                     <form method="post" name="userform" action="register.php?action=register" enctype="multipart/form-data" onsubmit="javascript:return validRegister()">
  249.                 <table width="100%" cellpadding="4" cellspacing="0" style="padding-left:10px;" bgcolor="#FFFFFF">
  250.                  <tr>
  251.                     <td>Civilite <font class="redCommentText">*</font></td>
  252.                     <td align="left">
  253.                         <table width="200" border="0" cellpadding="2" cellspacing="0">
  254.                        <tr>
  255.                         <td width="20"><input type="radio" name="gender" value="Mlle" <? if(isset($gender) && $gender=='Mile') echo 'checked';?> /></td>
  256.                         <td width="33">Mlle</td>
  257.                         <td width="20"><input type="radio" name="gender" value="Mme" <? if(isset($gender) && $gender=='Mme') echo 'checked';?> /></td>
  258.                         <td width="43">Mme</td>
  259.                         <td width="20"><input type="radio" name="gender" value="M" <? if(isset($gender) && $gender=='M') echo 'checked';?> /></td>
  260.                         <td width="40">M</td>
  261.                        </tr>
  262.                       </table>
  263.                     </td>
  264.                  </tr>
  265.                  <tr>
  266.                     <td>Votre adresse e-mail<font class="redCommentText">*</font></td>
  267.                     <td align="left">
  268.                     <input type="text" name="user_email" class="box" size="40" value="<? echo isset($user_email) ? $email : '';?>" />
  269.                     </td>
  270.                  </tr>
  271.                   <tr>
  272.                     <td>User Id<font class="redCommentText">*</font></td>
  273.                     <td align="left">
  274.                     <input type="text" name="username" id="username" class="box" size="30" maxlength="20" />
  275.                     <span id="msgbox" style="display:none"></span>
  276.                     </td>
  277.                  </tr>
  278.                  <tr>
  279.                     <td>Votremotdepasse<font class="redCommentText">*</font></td>
  280.                     <td align="left">
  281.                     <input type="password" name="user_password" class="box" size="30" maxlength="30" />                    </td>
  282.                  </tr>
  283.                  <tr>
  284.                     <td>Confirmez Votremotdepasse<font class="redCommentText">*</font></td>
  285.                     <td align="left">
  286.                     <input type="password" name="confirm_pass" class="box" size="30" maxlength="30" />                    </td>
  287.                  </tr>
  288.                  <tr>
  289.                     <td width="25%">Nom<font class="redCommentText">*</font></td>
  290.                     <td width="75%" align="left">
  291.                     <input type="text" name="name" class="box" size="40" value="<? echo isset($name) ? $name : '';?>" />
  292.                     </td>
  293.                  </tr>
  294.                  <tr>
  295.                     <td>Prnom<font class="redCommentText">*</font></td>
  296.                     <td align="left">
  297.                     <input type="text" name="forname" size="40" value="<? echo isset($forname) ? $forname : '';?>">
  298.                     </td>
  299.                  </tr>
  300.                  <tr>
  301.                     <td>Pseudo</td>
  302.                     <td align="left">
  303.                     <input type="text" name="nickname" size="40" value="<? echo isset($name) ? $name : '';?>" />
  304.                     </td>
  305.                  </tr>
  306.                  <tr>
  307.                     <td>Date de naissance</td>
  308.                     <td align="left">
  309.                     <select name="dd">
  310.                       <option value="">DD</option>
  311.                       <?
  312.                         foreach($date as $val)
  313.                         {
  314.                       ?>
  315.                       <option value="<? echo $val;?>" <? if(isset($_POST['dd']) && $_POST['dd']==$val) echo 'selected';?>><? echo $val;?></option>
  316.                       <?    
  317.                         }
  318.                       ?>
  319.                     </select>
  320.                     <select name="mm">
  321.                       <option value="">MM</option>
  322.                       <?
  323.                         foreach($month as $val)
  324.                         {
  325.                       ?>
  326.                       <option value="<? echo $val;?>" <? if(isset($_POST['mm']) && $_POST['mm']==$val) echo 'selected';?>><? echo $val;?></option>
  327.                       <?    
  328.                         }
  329.                       ?>
  330.                     </select>
  331.                     <select name="yy">
  332.                       <option value="">YY</option>
  333.                       <?
  334.                         for($i=1920;$i<=2040; $i++)
  335.                         {
  336.                       ?>
  337.                       <option value="<? echo $i;?>" <? if(isset($_POST['yy']) && $_POST['yy']==$i) echo 'selected';?>><? echo $i;?></option>
  338.                       <?    
  339.                         }
  340.                       ?>
  341.                     </select>
  342.                     </td>
  343.                  </tr>
  344.                  <tr>
  345.                   <td>Image Profile</td>
  346.                   <td align="left">
  347.                   <input type="file" name="image" size="40" />
  348.                  </td>
  349.                  </tr>
  350.                   <tr>
  351.                    <td>&nbsp;</td>
  352.                    <td align="left">
  353.                    <input type="image" name="submit" src="images/btn-submit.gif" style="border:none;padding:0px;" value="submit" />
  354.                    <img src="images/btn-cancel.gif" onclick="javascript:document.userform.reset();" />                   </td>
  355.                   </tr>
  356.                  </table>
  357.                 </form>
  358.                </td>
  359.              </tr>
  360.              <tr>
  361.               <td class=" brdrT"></td>
  362.              </tr>
  363.             </table></td>
  364.            </tr>
  365.           </table></td>
  366.          </tr>
  367.         </table></td>
  368.        </tr>
  369.       </table></td>
  370.      </tr>
  371.     </table></td>
  372.     <td align="right" valign="top" class="padL"><table width="318" border="0" cellspacing="0" cellpadding="0">
  373.      <tr>
  374.       <td class="padB"><table width="318" border="0" cellspacing="0" cellpadding="0">
  375.        <tr>
  376.         <td style="background:#FFFFFF url(images/content-s-top.gif) no-repeat top;"><table width="318" border="0" cellspacing="0" cellpadding="0">
  377.          <tr>
  378.           <td style="background:url(images/content-s-btm.gif) no-repeat bottom;">
  379.            <? require_once('top_candidats.php');?>
  380.           </td>
  381.          </tr>
  382.         </table></td>
  383.        </tr>
  384.       </table></td>
  385.      </tr>
  386.      <tr>
  387.       <td class="padB">
  388.           <a href="http://www.store.rougejaunevert" target="_blank"><img src="images/shop.jpg" border="0" alt="shop" /></a>
  389.       </td>
  390.      </tr>
  391.      <tr>
  392.       <td class="padB">
  393.       <? include('vote.php');?>
  394.       </td>
  395.      </tr>
  396.      
  397.     </table></td>
  398.    </tr>
  399.   </table></td>
  400.  </tr>
  401.  <? require_once('inc/footer.php');?>
  402. </table>
  403. </body>
  404. </html>

what is my problem

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: demonmaestro and 121 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.