I have a webpage with a contact form. When the PHP was on a seperate page it worked. (Emails were sent) I moved the PHP code to the top of my page so that a Div would pop up saying that it was sent. This works but now it's not sending. On the form action I put the name of the page.
<form name="contactform" id="contactform" method="post" action="index.php" maxlength="50" size="30" class="input">
index.php is the name of the page the PHP is on as well as everything else.