require_once "common.php"; include_once "functions.php"; $memid = $_REQUEST['memid']; $cname = companyname($memid); $productId = getProductId($memid); $newURL = 'http://www.yarnsandfibers.com/product-details/?productId='.$productId; header("Location: $newURL"); ?>