Registration with image upload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tutusaint
    New Member
    • Sep 2010
    • 18

    Registration with image upload

    Hello,
    I need to capture users image during registration.
    I have a working registration script but needs to add user image.

    Here is the add.php script.

    =============== =============== ===
    <?
    include("db.inc ");
    $username=$_POS T['username'];
    $password=$_POS T['password'];
    $name=$_POST['name'];
    $year=$_POST['year'];
    $program=$_POST['program'];
    $session=$_POST['session'];
    $department=$_P OST['department'];
    $rno=$_POST['rno'];
    $phone_no=$_POS T['phone_no'];
    $current_positi on=$_POST['current_positi on'];
    $job_status=$_P OST['job_status'];
    $address=$_POST['address'];
    $email=$_POST['email'];


    // prepare the query string
    $query = "SELECT * FROM contents";
    # check of query
    $result = mysql_query($qu ery) or die('Error, query failed for Selection of table');
    $result =mysql_query("I NSERT INTO contents(userna me,password,nam e,year,program, session,departm ent,rno,phone_n o,current_posit ion,job_status, address,email) VALUES ('$username','$ password','$nam e','$year','$pr ogram','$sessio n','$department ','$rno','$phon e_no','$current _position','$jo b_status','$add ress','$email') ") or die("Inseration query Failed");

    mysql_close();
    header('Locatio n:login.php');
    ?>

    =============== =============== ============

    How do i capture pics (image) as i capture users details.
  • kovik
    Recognized Expert Top Contributor
    • Jun 2007
    • 1044

    #2
    Capture? You mean, allow the user to upload an image? These tutorials should be helpful.

    Comment

    • pradeepkr13
      New Member
      • Aug 2010
      • 43

      #3
      Lookout your inbox ...

      Comment

      Working...