Hi,
Many thanks for taking the time to reply - I think it is getting somewhere - but at the moment that somewhere is an access denied - error ID:33
I think it may be something to do with my new php script that I am calling from product.php.
This is just a duplicate of send2friend.php:
Code:
if ( !defined('XCART_START') ) { header("Location: home.php"); die("Access denied"); }
if(!$productid)
func_header_location ("error_message.php?access_denied&id=48");
if($mode == 'send') {
if($email && $from && $name) {
$mail_smarty->assign ("product", $product_info);
$mail_smarty->assign ("name", $name);
func_send_mail ($email, "mail/send2friend_subj.tpl", "mail/send2friend.tpl", $from, false);
$top_message["content"] = func_get_langvar_by_name("txt_recommendation_sent");
} else {
$top_message["content"] = func_get_langvar_by_name("err_filling_form");
$top_message["type"] = "E";
}
func_header_location("product.php?productid=".$productid);
}
?>
It has references to Access denied (although one is ID:48 )
Is there anything else I should be changing here or adding somewhere?
Thanks