This is for an online form for product returns. The user selects from a menu, Refund, Replacement, 90DaysExpired, etc... (choices shown below). Each of those choices, has a corresponding message(inside a variable, also shown below). I want the value of the variable($tbrefund, $tbreplace, etc), based on the choice of the user, to be passed to the variable '$message'.
This is what I have so far, and I get the following error:
Notice: Undefined variable: message
$Rarray = array(
"Refund" => "$tbrefund",
"Replacement" => "$tbreplace",
"90DaysExpired" => "$expiredwarranty",
"ContactTech" => "$contacttech",
"RefundExpiredReplace" => "$outsiderefund",
"NoExRefund" => "$noexchange",
"ManuWarranty" => "$manuwarranty",
);
if (isset($Rarray[$Request]))
$message = $Rarray[$Request];
Any help is greatly appreciated.
edit: this is the line producing the error, I already know it's not relevent...
$send_contact=mail($to,$subject,$message,$header);
Why would you downvote someone asking for help? It will only make new people reluctant to ask anything...