At the bottom of a contact.php page I'm using for a form, I have if($sent) {print "Your mail was sent successfully"; } else {print "We encountered an error sending your mail"; } ?> So when someone hits send it just takes them to a white page that says Your mail was sent successfully How do I edit the code to send someone to a specific url after they hit send instead of this default print your mail was sent page. Thanks.
if($sent) { @header("location:http://yahoo.com"); exit(); } else {print "We encountered an error sending your mail"; } ?>