Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,152,726 members, 7,816,987 topics. Date: Friday, 03 May 2024 at 10:19 PM

Creating Good Web Forms - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Creating Good Web Forms (675 Views)

7 Essential Features Of A Good Web Design / How To Get A Good Web Hosting In Nigeria / Good Web Design Services in Nigeria? (2) (3) (4)

(1) (Reply) (Go Down)

Creating Good Web Forms by Nobody: 9:50am On Dec 29, 2013
I am still a newbie in the art of web development, but I guess this write-up will help a lot of people in web design/development.. To create a good form for your website, applying these tips might be of great help:

1. Keep the form as simple as possible, while maintaining a professional look

2. Remove any questions/fields that aren't really necessary. For example if
you will never phone them, don't ask for a telephone number!

3. Be careful labeling the fields. Do NOT use lesser- known acronyms or any
technical terms. If people aren't sure, they won't complete your form

4. Use validations to HELP your visitor in completing the form for you. For
example if you need a postal code then give an error message if there isn't
one - but don't demand it the letters have to be in upper-case capitals, as
that's not a help, that's a hindrance!

5. Ensure any error messages are polite, helpful and spelt correctly. Never
use something as rude and unhelpful as "Wrong Input!" or anything like
that.

6. Avoid creating unnecessary hurdles such as 'CAPTCHA' puzzles. Even if you do create one, don't make it complex and make it clear(Some CAPTCHAS can be annoying)..

Culled from: www.simfatic.com

You can also download the ebook from:
http://www.simfatic.com/book/download-book-c82741.html?utm_source=profforms&utm_medium=aresp&utm_campaign=aresp

Happy Sunday..
Re: Creating Good Web Forms by adewasco2k(m): 12:24pm On Dec 29, 2013
in addition

1. if a field is not too necessary or important don't make it required e;g middle name
2. This is probably the most important, always always have a way to retain filled in values after an error

<label for='name'>Name: </label><input type="text" value="<?php echo htmlspecialchars($_POST['name']); ?>" name="name" />


the above code will give an error though when the submit button is yet to be clicked if you dnt have variable $_POST['name'] already defined before that script.

3. Always have a file limit size for your input file type and dont forget to add enctype='multipart/form-data' to your form tag if you are going to use the file type

4. Another problem people face if using th <textarea></textarea> when using it make sure no space between the open and closing tag if not if you do if(empty){} you will be surprise it will not be empty because of that space.
Re: Creating Good Web Forms by Nobody: 12:30pm On Dec 29, 2013
In addition MaKe ur forms especially login forms sql injection proof! There are several ways to do so
Re: Creating Good Web Forms by Nobody: 12:31pm On Dec 29, 2013
@adewasco

Nice Input esp the last tip.. I didn't know leaving spaces will affect using if(empty) function..

Thanks Bro..
Re: Creating Good Web Forms by Nobody: 12:33pm On Dec 29, 2013
iam_Demigod: In addition MaKe ur forms especially login forms sql injection proof! There are several ways to do so

You Can drop yours here bro.. Any advice on forms will be appreciated as we all are newbies to Rasmus Leedorf..

(1) (Reply)

Web Design Training In Enugu / Waxspace.com- Cheap Reseller Hosting | Cheap Unlimited Hosting Plans At $6.90/mo / Web Training In Enugu State

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 13
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.