Register page mod

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Register page mod

    Hey guys ive being trying to look how to make my register diff anyone can help me i want to make the register where users can enter the username then press next then add email and press next then add pass press next etc etc

    and it will verify if the content have being registered before
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    #2
    You want to do something like this:

    PHP Code:
    <?php 

    $con 
    mysql_connect("localhost","root","");
    $sel mysql_select_db("demo");
    $act $_GET['act'];
    $action = array('details','avatar','extra');
    if(
    $act == 'details'){
    $username mysql_real_escape_string($_POST['username']);
    $password md5($_POST['password']);
    $chec mysql_query("SELECT * FROM users");
    $check mysql_fetch_assoc($chec);
    if(
    $username == $check['username']){ 
       echo 
    'Sorry, the username already exists';
    }else {
       
    $res mysql_query("INSERT INTO users(username,password) VALUES('$username','$password')");
       echo 
    'Inserted username and password.';
    }
    ?>
    <form action="?act=avatar" method="POST">
    <input name="email" type="text" />
    <input name="submit" value="submit" type="submit" />

    </form>
    <?php 
    if(
    $act == 'avatar'){
        
    $email $_POST['email'];
    if(!empty(
    $email)){
        
    $email mysql_query("UPDATE users SET email='$email'");
        }else{
            echo 
    'Please make sure it is all filled in';
        }
    ?>
    <form action="?act=extra" method="POST">
    <input name="contact" type="text" />
    <input name="living" type="text" />
    <input name="country" type="text" />
    <input name="submit" type="submit" value="submit" />
    <?php 
    if(
    $act == 'extra'){
        
    $contact $_POST['contact'];
        
    $living $_POST['living'];
        
    $country $_POST['country'];
      if(!empty(
    $contact) && ($living) &&($country)){
        
    $extra mysql_query("UPDATE users SET contact='$contact',living='$living',country='$country'");
        }else {
            echo 
    'Please make sure it is all filled out';
        }
    ?>



    <?php ?>
    <br /><br /><br /><form action="?act=details" method="POST">
    <input name="username" type="text" />
    <input name="password" type="password" />
    <input name="submit" type="submit" value="Proceed" />
    </form>

    Comment


      #3
      i can help to protect sites... just pm me
      com site: http://vampist.net
      download site: http://wapdloads.net
      fb: http://www.facebook.com/pmplx

      Comment

      Working...
      X