change your code around a bit:
put
PHP Code:
<?php
if( $email and $wn and $wurl and $wage )
{
//create the query//
$sql="insert into affiliates (email, wn, wurl, wage) values ( $email, '$wn', '$wurl', '$wage')";
//EXECUTE THE QUERY//
$rs = $DB->Query( $sql );
//confirm the added entry//
if($rs)
{
echo 'Thank You For submiting Your Request we will be in contact with you.';
}
?>
after the first bit of code and then put exit; where you want it to stop the script, in your case after the thanks message.