First of all, I've just joined, so Hi to everybody.
I'm also just starting to learn php, I have what I thought would be something simple but I keep getting this error
Parse error: syntax error, unexpected T_STRING in /home/sites/poem-n-verse.co.uk/public_html/votes/process.php on line 8
Here is the code that I'm trying, thanks for looking.
<?php
$user = $_POST['user'];
switch ($user){
case "Joe":
$msg=$user;
header ("Location: vote_page.php?$msg=$msg");
break;
case "Jack":
$msg=$user
header ("Location:vote_page.php?$msg=$msg");
break;
case "Jim":
$msg=$user
header ("Location: vote_page.php?$msg=$msg");
break;
default:
echo "username not recognised";
break;
}
?>