Getting a warning re:WAVT_Scripts_PHP.php
I'm having difficulty getting it to send mail and then go to the thank you page. I am a PHP neophyte so I'm not sure how it all works, having only a marginal understanding. I tried searching through here but didn't see anything...
It's on a Linux server at Datapipe.
For this site - contact.php, when I hit submit I get this message...
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/www.skylaire.com/web/ContactForm_GMC/contact.php:1) in /home/sites/www.skylaire.com/web/ContactForm_GMC/WA_ValidationToolkit/WAVT_Scripts_PHP.php on line 68
Here are the lines around 68:
61: if (isset($_SERVER['QUERY_STRING']) && ($_SERVER['QUERY_STRING'] != '')) {
62: if (strpos($thePostURL,"?") !== false) {
63: $thePostURL.= "&" . ($_SERVER['QUERY_STRING']);
64: } else {
65: $thePostURL.= "?" . ($_SERVER['QUERY_STRING']);
66: }
67: }
68: header("Location: ". $thePostURL);
69: exit;
70: }
I tried doing this - changing a line on the contact page as noted in other posts here to if ($_SERVER["REQUEST_METHOD"] == "POST") {, but it didn't help. I have 5 other sites on the same server (I think it's the same, at least) and they all worked after changing that request method line so I'm kind of stymied. None of the others gave a warning, they all just refreshed the contact page.
A programmer said it might have a different IP #... but I'm not sure how that'd affect it.
I think I have to take something out somewhere to let it work, as somewhere it already tried to send it it seems... but I've no idea what or where!
Can someone have a look?
Thanks,
Iggy