473,383 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

form is submitting even if blank

1
I have a form on a website written in the <Form> tag, using Method="Post", and then all the fields of the form are coded. This form will submit itself at any time a person touches the "enter" key, whether or not anything was entered in the fields.
The "Submit" and "Reset" buttons at the bottom of the form work fine.
How do I force the form to be submitted only with the Submit button?

http://www.appraisejax.com/appraisals.cfm, if you need to see this form.
Many thanks.
Diane
Sep 1 '06 #1
3 1210
Stucco
4
I think you can interrupt this with the onClick. You should set this to call a function that checks if data has been entered. If it has, submit the form, otherwise, do nothing (return false).
Sep 1 '06 #2
izzy
12
ColdFusion has more advanced validation than JavaScript, you can look into that as well.
Sep 3 '06 #3
ronverdonk
4,258 Expert 4TB
No real need for JavaScript. You can handle the submitted data in the same form as the one you submitted it. That way you can validate any submitted value.
If any field is not correct, you drop straight thru to the user-entry form and echo the errors, so the user can see what he did wrong.

Ronald :cool:
Sep 3 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Damon | last post by:
I've downloaded dozens of form mailers and processors looking for a good all-purpose PHP based script. Of all the ones I've tried (both commercial and open source), this one called Mail Manage EX...
11
by: Jim | last post by:
Hi, I keep getting form results emailed to me that would indicate a form from my web site is getting submitted with all fields blank or empty, but my code should preventing users from proceeding...
2
by: www | last post by:
Hi there, I' m getting a (0x80040E2F) error, if I submit my form, with blank textboxes to my update stored procedure. The stored procedure expect values, so how can I detect if a form field was...
2
by: Terence Parker | last post by:
How does one go about submitting a form with a link - but submitting it to a new window AND to a page different to that described within the action="" option of the <form> tag? Say, for example,...
0
by: Ken | last post by:
We have a shared hosting plan (Windows-based) with GoDaddy.com. GD.com has a "generic" form mailer script (gdform.asp) that allows us to set up a "Contact Us" page, which, when the user clicks...
4
by: nalls | last post by:
Hi, I am experiencing data loss while submitting the form. After submitting the form, the data goes to the next page( a .php file) where it has to be encrypted and inserted into the database. But...
2
by: rciiipo | last post by:
I am new to access. I have a form titled "form1" with a textfield titled "code." If the textfield "code" is left blank in the form by the person submitting the form and they click submit, then I...
2
by: vikasbatra | last post by:
i m submitting (posting) a form to some external site url . By clicking on submit it opens up new window (target='_blank' set) and my form is submitted there. but if i tries to submit a form using...
1
Claus Mygind
by: Claus Mygind | last post by:
I am having some trouble submitting a form in IE. Works fine with FireFox. I have tried two methods. method #1 function validateForm(form) { if (document.getElementById("NAME").value...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.