Fixed the problem now !!! 
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 posted this at 00:39 — 28th August 2001.
He has: 4,044 posts
Joined: Aug 2000
The simplest mistakes can cause the biggest problems.