newb questions.. I have two variables p and d I want to do something like
<?php
// check to see if p = wall
if ($p == 'wall')
echo "<h2>Fall Protection - Wall Anchors</h2> "
//check what subproduct d is
if ($d == 'thru')
include("Products/wall-thru-bolt.html");
elseif ($d == 'pip')
include("Products/wall-pip.html");
elseif ($d == 'adhesive')
include("Products/wall-adhesive.html");
else
include("Products/wall-thru-bolt.html");
include("Products/wall-pip.html");
include("Products/wall-adhesive.html");
//if p <> wall then check to see if p = roof
elseif ($p == 'roof'){
echo "<h2> Roof Anchors </h2>"
//check what subproduct d is
if (d=='foo')
include("produts/foo.html";
elseif (d=='"fi')
include ("products/fi.html")
else
echo " i can't find your product"
//can't find p then
Else
echo " I can't find the P product