Jbert2 Posted July 9, 2008 Share Posted July 9, 2008 <?php if(isset($_POST['submit'])) { switch($_POST['filter']) { case 'sepia': header ("Location: http://localhost/sepia.php"); break; case 'filter2': header ("Location: http://localhost/edges.php"); break; case 'filter3': header ("Location: http://localhost/emboss.php"); break; } ?> Why do I get the unexpected ending here. what did I miss? Thanks JIM Quote Link to comment Share on other sites More sharing options...
unsider Posted July 9, 2008 Share Posted July 9, 2008 <?php if(isset($_POST['submit'])) { switch($_POST['filter']) { case 'sepia': header ("Location: http://localhost/sepia.php"); break; case 'filter2': header ("Location: http://localhost/edges.php"); break; case 'filter3': header ("Location: http://localhost/emboss.php"); break; } } ?> Quote Link to comment Share on other sites More sharing options...
dannyb785 Posted July 9, 2008 Share Posted July 9, 2008 uhhhhhhhhhhhhhhhhhhhhhhhhhhhhh... what exactly are you expecting? You didn't comment your code at all so how can we know what you're even trying to do? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.