Hi i have a php mailer which i use with a html email form and this php file has
header(“Location:
to redirect it to google at the end.
I would like to somehow add a popup that says “Thank you for your message” before changing the page i managed to get a popup to work by echoing a javascript alert but this gives the redirect a error about already setting headers.
Has anyone got a suggestion on what i should do?
(if this is in the wrong section im sorry i thought it would be best in php since its in a php file but if you feel it should be in client side somewhere please move it)
If anyone can help i would be very grateful.