Hi im new in php and i got a problem(T_ELSE) with this code please help!
"Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs \update.php on line 15"
"Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs \update.php on line 15"
Code:
<?php
include 'db_connect.php';
$name = $_POST['Fname'];
$surname = $_POST['Sname'];
$pass = $_POST['Pname'];
$user = $_POST['Uname'];
if (!$_post['submit']);
{
echo "echo please fill out the form";
header('location: hello.php');
}
else
{
$sql_insert = "INSERT INTO membersinfo ('name', 'surname', 'pass', 'user')
values ('Fname', 'Sname', 'Pname', 'Uname')};
echo "user has been created!";
header('location: hello.php');
?>
Comment