Thanks for you help I got this to work But at the head of both tabs, before the content I have FAQ:FAQ
and the tabs are no longer conditional they appear in all products with the text FAQ:FAQ
$spes_tab = "(tab=Specification)".$p_type."<br />";
if ($p_type =="Specification

pecification"> "") {
$template = str_replace( "{spes_tab}", $spes_tab, $template );
} else {
$template = str_replace( "{spes_tab}", "", $template );
}
$faq_tab = "(tab=FAQ)".$p_type."<br />";
if ($p_type =="FAQ:FAQ"> "") {
$template = str_replace( "{faq_tab}", $faq_tab, $template );
} else {
$template = str_replace( "{faq_tab}", "", $template );
}
The system works with out the conditional statements I seem to be somewhat out of my depth here
also tried this
$spes_tab = "(tab=Specification)".$key."<br />";
if ($p_type =="Specification

pecification"> "") {
$template = str_replace( "{spes_tab}", $spes_tab, $template );
} else {
$template = str_replace( "{spes_tab}", "", $template );
}
$faq_tab = "(tab=FAQ)".$key."<br />";
if ($p_type =="FAQ:FAQ"> "") {
$template = str_replace( "{faq_tab}", $faq_tab, $template );
} else {
$template = str_replace( "{faq_tab}", "", $template );
}
This just dumped both params in both Tabs without the text FAQ:FAQ
Graeme