Html:
<div id="contact-area">
<label id="title" for="Name">Sign Up for the Mail list!</label>
<form name="contactform" method="post" action="contactengine.php">
<label for="Name">name</label>
<input type="text" name="Name" id="Name" />
<label for="Email">email</label>
<input type="text" name="Email" id="Email" />
<p><a href="javascript: submitform()">submit</a></p>
</form>
<script type="text/javascript">
function submitform()
{
document.contactform.submit();
}
</script>
<div style="clear: both;"></div>
</div>
Now what I am wanting to try and attempt is that when the a user enters their name and email address and clicks submit, instead of taking them to totally new page usually "thanks.php" or something like that, to just replace the contact form with a div containing some text saying "Thanks".
This would then stay that way until the user refreshes the page.
Any ideas or resources for such a replacement method with php/js I'd really appreciate it.
This post has been edited by AUAN: 26 February 2010 - 07:20 PM

New Topic/Question
Reply




MultiQuote


|