Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 17th, 2003, 11:51 PM
Authorized User
 
Join Date: Aug 2003
Posts: 78
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to spraveens
Default Mandatory Forms in Html

Hi Everone

Now I have 5 text fields in my html form ,I want the user to enter data into all the 5 fields without leaving out a single one.If the user skips any field and presses 'Submit' then a message box should pop up prompting the user to enter the empty fields.How is this done?

Praveen

 
Old November 18th, 2003, 02:01 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Well you need to use JavaScript if you intend to do this client-side.

If the information is of any significant importance I recommend doing server-side validation as well which can be accomplished with PHP, ASP, or a smörgåsbord of other technologies.

Here is one site you can visit to find examples done in JavaScript:
http://javascript.internet.com

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::





Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandatory date values rajat_aggarwal03 XML 3 November 6th, 2008 09:47 AM
Sending info to HTML forms.... Sildaekar C++ Programming 0 April 2nd, 2007 01:24 PM
HTML forms AND Screen resolution prabodh_mishra HTML Code Clinic 2 March 8th, 2006 07:41 PM
Database entry from HTML forms gmoney060 Classic ASP Basics 4 March 31st, 2004 04:50 AM
IS ROLLBACK MANDATORY AFTER A TIMEOUT FAILURE ? antocaro SQL Server 2000 0 March 10th, 2004 04:33 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.