Thursday, 14 April 2011

PHP Problem

I had another problem when creating the contact form for the Bluebell webpage. When data was filled out into the form and the send button was pressed, rather than sending it to the correct address and redirecting to the 'message sent' page, a page with the PHP which sends the message appeared;



I felt it must have been a small problem with the HTML of the contact page as I could see the PHP was all correct. It took me while to find it but I had made a small error in the HTML for the form and had entered an incorrect value for the 'class' section. I corrected it to this;



The contact form now works fine.

No comments: