Forum Moderators: coopster
$loc = '/?e=' . $_POST['affiliate'];
header("Location: $loc");
<form onsubmit="return affi(this)" action="/processing.php" method="post">
<input type="text" name="affiliate" id="affiliate" />
<input type="submit" />
</form>
[code][/code]<script type="text/javascript">
var afi = document.getElementById('affiliate').value;
function affi(form) {
if(afi != "") {
window.location.href = "/?e=" + afi;
} else {
alert("Please enter an affiliate ID.");
}
return false;
}
</script>
$loc = '/?=' . $_POST['affiliate'];
header("Location: $loc"); http://www.thesite.com/?e=<?php echo $affiliate ?>