0

Hello
I found some great php code on this site yet I have a question.
regarding the php script below:

<?php
$to = "orders@babyresume.com";
$subject = "Contact Us";
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
$headers = "From: $email";
$sent = mail($to, $subject, $message, $headers) ;
if($sent)
{print "Your mail was sent successfully"; }
else
{print "We encountered an error sending your mail"; }
?>

The final output once email successfully is to print to the screen.
Is there a way to re-direct the succesful output to a url , if so , can I get an example?

Thanks
Tomj

Edited by Dani: Formatting fixed

2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by tjenning27
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.