-2
In a 20-page HTML project I would like to put a PHP form to capture emails in each of them. What command, after the alert, the internet user is on the same page where he signed up - and not the Contact page (the only one in PHP)?
if(EnviarEmail($destino, $email, $assunto, $msg)){
echo '<script type="text/javascript">
alert("'.$nome.', sua mensagem foi enviada com sucesso!")
window.location = "../contato.php";
</script>';
Hello. Your question is not very clear. If you do not want to change to the "contact.php" page, why use it
window.location = "../contato.php";
? The "answer" to your question then would not simply be: "just take that line"?– Luiz Vieira
Thank you, Luiz. If I take this line it hangs in the file that "treats data" (the one that checks if the @s are correctly typed).
– Aguinaldo
Thanks for the edition, Luiz!
– Aguinaldo
Not at all. But just look at how you are already receiving negativities. Your question is not at all clear. For example, no one but you knows what the "data file" is. Try to edit the question to correctly write the problem, use screenshots to illustrate, etc. This site is not a forum, okay? If you haven’t done it yet, do the [tour] and mainly read [Ask].
– Luiz Vieira
Okay, Luiz! My first time! I think I better put the full code. Follow:
– Aguinaldo