Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 17th, 2003, 11:51 PM
Authorized User
 
Join Date: Aug 2003
Location: , , India.
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

Reply With Quote
  #2 (permalink)  
Old November 18th, 2003, 02:01 AM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
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
:::::::::::::::::::::::::::::::::
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


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



All times are GMT -4. The time now is 08:42 AM.


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