I am trying to do a header redirect using script.I am not well versed with PHP/JS but i can make out there is some syntax error which i am not able to troubleshoot. Following is the code. Experts, please help.
<?php $sendvar = "?subject=".$subjectfromemail."&from=".=$from."&message=".$messagefromemail."&wrong_code=true";
echo "<script type='text/javascript'>
window.top.location='$_SERVER['HTTP_REFERER']+$sendvar';
</script>"; exit;?>