![]() |
Need help with HTML5 & PHP coding
Desperately need help with my website coding. The 'contact form' and 'site search' facility not working properly.
Contact form works i.e. I get the email but it does not show the message that has been written by the sender. The site search facility just does not work. website is colourflow-images.co.uk Really need help with this one:eek: |
form on contact page
Code:
<form id="ContactForm" form action="contact.php" method="post" id="form" class="ContactForm">You have two IDs.can only have one. Your search form doesn't seem to have a file or function it is submitted to. So no processing. |
Hi sunfighter, I have absolutely no idea what you are talking about. I am new to coding!
|
This is your contact form:
Code:
<form id="ContactForm" form action="contact.php" method="post" id="form" class="ContactForm">The dark red attribute reads "form action". Remove the word form so that it is just action="contact.php". Your contact email should be generated by contact.php. It should be in the same folder as the Contact.html file. --------------------------------------- Instead of Code:
<a href="#" class="button" onClick="document.getElementById('ContactForm').reset()">Clear</a>Code:
<input type="submit" value="Submit">====================================================================== Your search form is: Code:
<form id="search" method="post"> |
Sunfighter
Many thanks I really appreciate your guidance. Unfortunately having made the changes you suggested the email did not even go through, whereas before the email went through but no test arrived. |
Hi Sunfighter
Apologies - double checked and noticed that in the Contact.php I had made an error in the email address. Have put your coding back in and although the email arrives it still does not show the text. |
Think your email problem is in the Contact.php file. post that.
|
| All times are GMT +1. The time now is 07:09 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.