I am a bit confused on this code, which is breaking...
<?php
$dest = $_POST['select'];
switch $dest {
case 'Microsoft Access':
header("location: http://somedomain.com/somepage1.php");
break;
case 'excel':
header("location: http://somedomain.com/somepage2.php");
break;
}
?>
I get the following error:
Parse error: parse error, unexpected T_VARIABLE, expecting '(' in /home/mypath/public_html/step1b.php on line 2
What am I doing wrong? What does the field name have to be on my first page?
Can you explain what $_POST['select']; does please?
Thanks,
Jon