0

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.

2
Contributors
2
Replies
14
Views
3 Years
Discussion Span
Last Post by keloa
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.