Reply
need help understanding FORMS
Old 06-23-2008, 05:59 AM need help understanding FORMS
atouck's Avatar
Skilled Talker

Posts: 53
Name: Atouck
Location: Bucharest, Romania
I almost finished designing and coding my first website. Got stuck thou at the contact.html page.
i want in this page a contact form that can be completed by the website visitors.
I designed a form like many around the web. name>input field / e-mail>input field and message>inputfiled
My questions are:

1. I want the user to be prompted when one of the fields does not have any information. a pop up or something. how do I do that?
2. I want in the message input box a scroll bar to appear if the message is longer than the actual design dimensions. how do i code this?
3. What am I supposed to do so that the info completed in the form reach it's destination? the destination is me ... can't figure out the process. Is there a e-mail box or something and the data filed in reach this e-mail box? I really need guidance here ...
4. I want to create an e-mail for this website: info at websitename dot com. When visitors click this it should open outlook or something so that they can write the e-mail. How do I do that?

10x Atouck

Last edited by atouck : 06-23-2008 at 06:00 AM.
atouck is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-23-2008, 06:54 AM Re: need help understanding FORMS
stoot98's Avatar
Ultra Talker

Posts: 379
Name: Stuart
Location: Glasgow, Scotland
Im afraid i dont have time to go into details but im sure someone behind me will but...

1. You want some javascript validation, there are many pre-written validation libraries out there but try a google search - http://www.google.co.uk/search?q=jav...ient=firefox-a

2. I would suggest using a Textarea instead of a text field and it should automatically create a scrollbar when the content becomes too big.

3. I would suggest using a server side language to validate the data again and then email it to you (e.g. PHP) although there are other ways of simply emailing the form fields to a certain address.

4. You can usually create email addresses for your domain through your host's admin panel (often cPanel) and to create a link that will automatically open an email try:

Code:
<a href="mailto:info@domain.com?subject=mySubject&body=myBbody">Email me</a>
Hope this helps in some way...

Stuart
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 06-23-2008, 07:08 AM Re: need help understanding FORMS
atouck's Avatar
Skilled Talker

Posts: 53
Name: Atouck
Location: Bucharest, Romania
Quote:
Originally Posted by stoot98 View Post

3. I would suggest using a server side language to validate the data again and then email it to you (e.g. PHP) although there are other ways of simply emailing the form fields to a certain address.


Stuart
Is it possible to send the info from the fields to the same address the web site uses for contact?
atouck is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need help understanding FORMS
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.12263 seconds with 12 queries