hello,
Can you help me figure this out? I want to give a message to the user (via text or pop up window) that there email has been sent.
This is my situation:
I have contact_us.html page. It has form fields and a submit button.
the user fills out field and presses the submit button.
the submit button calls my send_contact_form.php file. This php file formats the text and sends the data via the mail() function.
NOW, is the part I can't figure out....
I have this line of code after the mail() funcion:
header("Location: $HTTP_REFERER");
which refreshes the contact_us.html page. That is good, however, I want to let the user know the email was actually sent.
How can I do that?
Notes:
1. I don't want to load another page, that states, "your email has been sent"
Can the .php open a small browser window, like a pop-up window? So to process the data/send the email and let the user know it happened.
I would like the contact_us.html page to be refreshed with text at the top giving the confirmation.
THANK You Very Much for helping
larry