This will send the message from the msgs
table in the email.
if(msg) {
//Add Close Button and Show up message
div.html( '<a href="javascript:void(0)" class="CloseButton">X</a>' + msg).show('slow',function(){
//Hide On click close Button
$('.CloseButton',div).click(function(){ div.hide() })
});
// Include message in form data
div.val(msg);
}
If you just want the referer URL, whether or not it was in the table, just do:
div.val(ref);
before if (msg)
.
To get this sent to the PHP script, you need to change the form field to:
<input type="hidden" name="referrer" id="WelcomePlaceHolder" placeholder="Referrer" value=""/>
Form fields that have display: none
are not sent to the server, that's what type="hidden"
is for.