I have created a contact form for user to send their message.
When they click on "send" the data goes to my database and under the form I wanted to have a paragraph saying that the data are sends, so I proceeded like this:
<p25>sent succesfully! thanks<p25>
<?php
echo "<script>setTimeout(\"location.href = 'no-sidebar.php';\",8000);</script>";
?>
When it's done the page is reloaded, it displays the part from above.
My problem is that I wanted it to stay in the section where my contact form can see the message.
Thanks for helping.