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 Link to comment https://forums.phpfreaks.com/topic/113862-unexpected-ending/ 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; } } ?> Link to comment https://forums.phpfreaks.com/topic/113862-unexpected-ending/#findComment-585113 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? Link to comment https://forums.phpfreaks.com/topic/113862-unexpected-ending/#findComment-585122 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.