Hi

I'm working on a registration form.So every one can register but to regeister you need to upload your logo.!

this is the file:register.php :

<?php
$page_title = "register";
require_once("inc/config.php");
require_once('inc/header.php');
?>
<center>
    <form action="check-register.php" method="POST" encrypt=”mulipart/form-data”>
        <input type="text" name="username" /><br />
        <input type="password" name="password"  /><br />
        <input type="password" name="repassword" /><br />
        <input type="text" name="email"  /><br />
        <input type="text" name="company_name" /><br />
        <input type="text" name="company_phone" /><br />
        <input type="text" name="company_location" /><br />
        <input type="file" name="company_logo" size="40" /><br />
        <input type="hidden" name="flag" value=1><br />
        <input type="submit" value="Register!">
    </form>

</center>

the second page : check-register.php :

<?php
$page_title = "check";
require_once("inc/config.php");
require_once('inc/header.php');
$username = $_POST['username'];
$password = $_POST['password'];
$re_password = $_POST['repassword'];
$email = $_POST['email'];
$company_name = $_POST['company_name'];
$company_phone = $_POST['company_phone'];
$company_location = $_POST['company_location'];







?>

The problem is that I dont know how to get the picture in the check_register.php , and how to upload it to the dir: img/ then save it's name in the database.

Thanks I did it :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.