Hi All
Im not sure if this is possible but here is the thing
I have thankyou.html page that should be opened in the lightbox when a submit button is clicked and the email is sent, I have a contact.php that send an email to the person with the details filled in an HTML form
the problem is I Cant open the lightbox and send the email at the same if I call the lightbox class in the submit button, that only opens the lightbox and doesnt send the email,
I am a novice in PHP and I need to know if I can link the lightbox with PHP, like calling a lightbox class in an PHP file
another thing I am recieving an error when the below code is executed but the message is sent
if($send) {header( "Location: thankyou.html" );}
else {print "We encountered an error sending your mail, please notify thandeka@sayovi.org.za"; } } } ?>
and this is the error
Warning: Cannot modify header information - headers already sent by (output started at /home/sayovjcv/public_html/contact.php:1) in /home/sayovjcv/public_html/contact.php on line 36
} ?>
I hope this make sense