This is a discussion on "Contact Us Form - Help Please" within the JavaScript Forum section. This forum, and the thread "Contact Us Form - Help Please are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Contact Us Form - Help Please
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Contact Us Form - Help Please
Hi Everyone!
I'm new here and was hoping you wouldnt mind giving me some help? Firstly I'm Rachelle and live in Sydney I am in need of a Contact Us Validation Form - I've been using getElementbyID & if else statements but I'm coming unstuck a bit These are the requirements for the form: First Name Surname Address Postcode (min 4 max 4 digits) Nature of Enquiry (drop down menu - with default 'general') Telephone number (max 10 digits) Date you would like us to contact you (in the form dd/mm/yyyy) I've attached what I've done so far - its not pretty though sorry - please be gentle with me - I'm learning! Thanks in advance Rachelle |
|
|
|
#2
|
|||
|
|||
|
Re: Contact Us Form - Help Please
It can be done using php. I have some simple validation that checks for empty fields and aslo validation on my registration page that checks to make sure in a number field only numbers are entered.
You could also look at learning CSS to stle your form Have a look at http://www.sitepoint.com/article/fancy-form-design-css and also http://www.webcredible.co.uk/user-fr...ss-forms.shtml You need php or some other server side script to process the form which you should be able to get help with in the php forums and als o help with CSS in the css forum. if you want any server side (php) validation I can help you with that. You could also look at http://www.ibdhost.com/contact/ becuase there is a contact form there with some form processing |
|
#3
|
|||
|
|||
|
Re: Contact Us Form - Help Please
Hi
thanks very much for your reply. I'll check those sites out. I'm really trying to work with Javascript a bit to get my head around it a bit more. I'd like to be able to write my own script rather than copying and pasting all the time but at the moment I'm not having much luck! Thanks again Rach |
|
#4
|
|||
|
|||
|
Re: Contact Us Form - Help Please
You definitely need to use some CSS to style the forms and make them look pretty as well as usuability and accessibility.
But as to php, I suggested that becuase if you want form validation and the user has JS disabled in their browser, your validation won't work. You could have both, client side and server side |
|
#5
|
|||
|
|||
|
Re: Contact Us Form - Help Please
Hi again
Thanks for that. Yes I'll be working on the style side of things - just wanted to get my head around the script first. Take care Rach |
![]() |
| Tags |
| contact us javascript, form validation |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] PHP contact form redirect to same form | Posie | PHP Forum | 14 | Jan 29th, 2008 21:28 |
| help with asp contact form? | Ella | Classic ASP | 4 | Jan 2nd, 2008 01:45 |
| php contact form | geyids | PHP Forum | 5 | Jun 14th, 2007 17:59 |
| what is the best contact form | Phixon | Web Page Design | 10 | May 15th, 2007 19:47 |
| Need Quote Form and Contact Form | Av8er | Flash & Multimedia Forum | 5 | Oct 30th, 2003 18:14 |