i’m having a problem with my code its not working and submitting i’m using dreamweaver CS4 the code is below
[php]
Contact Us! - Omega Creations<?php $Submit = $_POST['Submit']; $Name = $_POST['Name']; $Want = $_POST['Type']; $Email = $_POST['Email']; $Youtube = $_POST['Youtube'];
if(isset($Submit)){
if($Name == ‘’){
header(‘location: Index.php’);
} else {
if($Want == ‘’){
header(‘location: Index.php’);
} else {
if($Email == ‘’){
} else {
mysql_connect(‘localhost’, ‘Admin’, ‘Password’);
mysql_select_db(‘website’);
mysql_query(“INSERT INTO answer
(ID
, Name
, Email
, Channel
, Want
) VALUES (’’, ‘$Name’,’$Email’,’$Youtube’,’$Want’)”);
mysql_close();
}
}
}
}
?>