Ezilon.com - Target Your Audience, be Seen in Your Region

php/form/redirect

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.
adalt's picture

They have: 72 posts

Joined: Dec 2000

Fixed the problem now !!! Laughing out loud
semicolon missing at the end on line 3

Hi,
I am trying to get a php script to redirect depending on the values submitted by a form. I am new to php and cant figure out what is going wrong. I keep getting a "parse error at line 5"
the form is at http://www.omahost.com/ordertest.html
and the php is

<?php

$total = $plan + $frequency

switch ($total) {

    case "11";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "12";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "13";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "21";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "22";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "23";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "31";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "32";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    case "33";
       
header("Location:<a href="http://www.4legs.fi" class="bb-url">http://www.4legs.fi</a>");
   
break;

    default;
        Echo "You failed to fill out the form completely.";
    break;

}
?>

'

Thanks in advance

Tony

Before you criticise someone walk a mile in their shoes......
Then, if they don't like what you say they are 1 mile away and barefoot.

Mark Hensler's picture

He has: 4,044 posts

Joined: Aug 2000

The simplest mistakes can cause the biggest problems.

Subscribe to this feed: Syndicate content