Hi all,
I am brand spankin' new to the forum and PHP (hence newbie post). I am hoping someone can help me with a problem I'm having. I currently have a form mail which allows people to submit their name and email address to me. The PHP form works fine, the problem I have is with the redirect.
I can't seem to find a way to just refresh my web page rather than display a new one. In essence, don't redirect the submission and either point to the home page of my site or just refresh the page I'm on, minus the name and email address entered in the form.
The current code I am using (which isn't suffice) is below;
// if the redirect option is set: redirect them
if ($redirect) {
header ("Location: $redirect");
exit;
} else {
print "Thank you for signing up for the newsletter\n";
exit;
}
Can someone tell me how to update this code so it works?
thanks
mcmost