![]() |
PHP Enquiry form
Hi
I need some help, I can battle my way through CSS and HTML, but when it comes to enquiry forms I am out of my depth... This is the site I am putting together and the form is in the end column: http://vicarscafebistro.co.uk/website/contact.html I tried using this form from here: http://css-tricks.com/nice-and-simple-contact-form/ But it was far too big and when I tried to make it smaller it was all over the place so currently has no CSS applied to it... From a layout perspective how can I get the text input fields to stack nicely and all aligned? From a PHP perspective what have I done to break it? I am testing it with my home email address but it is not working... Here is my HTML for it: Code:
Code:
Code:
Code:
|
Style for the form:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">Code:
<input type="text" name="Phonr" id="Phone" />Code:
<input type="text" name="Phone" id="Phone" />The second error is here, in the php file: Code:
$Body .= "Comments: ";Code:
$Body .= "Comments: "; |
Hi
Thanks so much for the quick response, I fixed the errors with the div tag and php and re-uploaded, I get the other script saying message succesful, but the email is not coming through to my inbox :( I checked the webhost and it does support PHP so I really don't know why it's still not working. I am getting other emails to my inbox so it's not that. I also tried the CSS for the layout and it is VERY close, but for some reason it stacks name and city together and I have an extra box for comments and I can't for the life of me figure out why??? See here: http://vicarscafebistro.co.uk/website/contact.html PHP now reads as follows: Code:
CSS added: Code:
}Code:
<div id="page-wrap"> |
try that CSS (that 100px width is just a rough guess, you may want to change it slightly if it's too long)
Code:
label { |
Quote:
Code:
<style type="text/css"> |
Thanks guys! Haha still couldn't work out the layout in CSS with that last form, even with the width thing added and trying diff properties so tried another one in a table with a diff php, still no message so must be something to do with the hosting company?
|
Figured it out, it was getting rejected as spam because the email "from" was not the same as the hosting domain, I have not set that part up yet so unable to test, but makes sense, found this:
Setting the ‘From’ field right Have a ‘From’ field in the emails that you sent through the script. The From address should belong to the domain from where you are running the script. If your script is running on your-website.com then the From address should be like someone@your-website.com. |
| All times are GMT +1. The time now is 07:14 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.