Jump to content

unexpected ending


Jbert2

Recommended Posts

<?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

 

<?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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.