Page 1 of 1

PHP ERROR HELP

Posted: Fri Mar 26, 2010 1:06 pm
by fiestaboy
ii need help i am coding a register page but when i go on it , it is just blank, i have already done the database , i just need the code corrected here it is
NOTE I HAVE REMOVED ALL MY DATABASE INFOMATION FROM THIS CODE

Code: Select all

 
<?php
$submit = $_POST["submit"};
 
$name = strip_tags($_POST["name"]);
$lastname = strip_tags($_POST["lastname"]);
$location = strip_tags($_POST["location"]);
$email = strip_tags($_POST["email"]);
$website = strip_tags($_POST["website"]);
$mobile = md5(strip_tags($_POST["mobile"]));
 
 
if ($submit)
{
 
if ($name$$$lastname$$$location$$$email$$$website$$$mobile)
{
}
else
echo "Please Fill In All Fields!";
}
//register
echo "Register Has Been Successful!";
//open database
$connect = mysql_connect("localhost","b11_5246775","password");
mysql)select_db("database"); //select database
 
$queryreg = mysql_query("
INSERT INTO users VALUES ('$name','$lastname','$location','$email','$website','$mobile')
");
die ("You Have Been Sucsessful Accepted And Registered<a href=index.php">Click Here</a>);
?>
<html>
<p>
<head>
<title></title>
</head>
<body bgcolor="#000000" text="#00FF00">
<style type="text/css">
a:link {color: #00FF00;}
a:visited {color: #00FF00;}
a:active {color: #00FF00;}
a:hover {color: #FF0000;}
a {text-decoration: none;}
</style> 
<center>
<small>
<img src="images/banner.PNG"> 
<hr>
<a href="index.php">[Home]</a>
<hr>
<form action="register.php" method="POST">
<table>
   <tr>
       <td>
        First Name:
        </td>
        <td>
        <input type="text" name="name">
         </td>
         
    <tr>
       <tr>
       <td>
        Last Name:
        </td>
        <td>
        <input type="text" name="lastname">
         </td>
         
    <tr>
        <tr>
       <tr>
       <td>
        Country:
        </td>
        <td>
        <input type="text" name="location">
         </td>
         
    <tr>
        <tr>
       <tr>
       <td>
        Email Address:
        </td>
        <td>
        <input type="text" name="email">
         </td>
         
    <tr>
        <tr>
       <tr>
       <td>
        WebSite URL:
        </td>
        <td>
        <input type="text" name="website">
         </td>
         
    <tr>
        <tr>
       <tr>
       <td>
        Mobile Number:
        </td>
        <td>
        <input type="text" name="number">
         </td>
         
    <tr>
    </table>
    <p>
    <input type="submit" name="submit" value="Register">
      </form>
 
 
 
 
<hr>
Copyright &copy; 2010
</small>
</center>
<hr>
</html>
 
 
 

Re: PHP ERROR HELP

Posted: Fri Mar 26, 2010 1:34 pm
by AbraCadaver

Code: Select all

error_reporting(E_ALL);
ini_set('display_errors', '1');