Wrox Programmer Forums
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 20th, 2005, 07:01 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
Default email forwarding

I'm developing a website for a charity.

Having tested the script it works until it gets to the redirecting
part which it seems to ignore.

So once form data has been submitted it stops at this page.

Have I missed something? or could this be a server issue? or scripts I have written work fine.

Not sure why this one wouldnt.

Code:
<?php

// Once code below has been executed goto thank you page at Solace website

header("http://www.mediamole.net/solaceweb/thankyou.html");
?>

<?php

// Start of email script to post information submitted from contact form
// to main email address of Solace


// start building email mail string
$msg = "$_POST[comments]";

// set up the mail
$recipient = "To:[email protected]";
$subject = "Message about $_POST[subject] from $_POST[yourname]";
$mailheaders = "From: $_POST[email]";

// send email

mail($recipient, $subject, $msg, $mailheaders); 

// End of email script

?>
Gaz
__________________
Gaz
 
Old October 21st, 2005, 12:30 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default

One correction is header("Location: http://www.mediamole.net/solaceweb/thankyou.html");. There may be others..

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Support Indian students' finances http://scholarship.mediasworks.com/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding emails problem.. kabucek Wrox Book Feedback 0 August 8th, 2006 09:08 AM
mask my IP address (forwarding) crmpicco Classic ASP Basics 0 February 4th, 2005 08:11 AM
forwarding a parameter to the subreport ! sansmail Crystal Reports 0 April 19th, 2004 10:19 AM
Domain forwarding with web.config? mcpine9 ASP.NET 1.0 and 1.1 Basics 8 March 16th, 2004 01:42 AM
URL forwarding and Login lmasullo BOOK: Beginning ASP 3.0 0 November 7th, 2003 05:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.