473,507 Members | 8,054 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Have a many but will ask 2!

1 New Member
I am creating a game using html, php, javascript, mysql. I can do the database all that is working but the problem I ran across is this, while I was doing more tweaking i got half way thru the form and accidently hit the return button on my keyboard and entered the data to the database incomplete. How can I prevent this? 2 i have a classifcation of races with a column of 7 check boxes to choose the class the problem is i can check all of them is there a way to let u only select 1???? I hope that's clear enough I google but nothing i could come up with seem close to what I am experiencing!

Thanks In Advance,
Mar 9 '07 #1
4 976
Ganon11
3,652 Recognized Expert Specialist
This question would probably be more relevant in any of the subforums relating to the languages you are using, but not in the Software Development forum.
Mar 9 '07 #2
AricC
1,892 Recognized Expert Top Contributor
I am creating a game using html, php, javascript, mysql. I can do the database all that is working but the problem I ran across is this, while I was doing more tweaking i got half way thru the form and accidently hit the return button on my keyboard and entered the data to the database incomplete. How can I prevent this? 2 i have a classifcation of races with a column of 7 check boxes to choose the class the problem is i can check all of them is there a way to let u only select 1???? I hope that's clear enough I google but nothing i could come up with seem close to what I am experiencing!

Thanks In Advance,
Prevent the incomplete data by validating it before it makes it to the database. If you only want users to be able to select 1 of your 7 boxes uses radio buttons instead of check boxes.


HTH,
Aric
Mar 9 '07 #3
r035198x
13,262 MVP
Moved to Javascript forum.
Mar 10 '07 #4
acoder
16,027 Recognized Expert Moderator MVP
In addition to what Aric posted, also validate on the server side before you enter anything into the database.
Mar 12 '07 #5

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

Similar topics

2
908
by: Keith | last post by:
I am having a problem creating a many-to-many-to-many type relationship. It works fine, but when I create a view to query it and test it, it does not generate the results I expected. Below...
9
1449
by: Carlis | last post by:
I want to make a program that, when you have the mouse on a word, that word is bold... and when you don't have the mouse on that word, the word is not bold. Excuse me for my poor English :-( But...
39
6477
by: Randell D. | last post by:
Folks, I'm sure this can be done legally, and not thru tricks of the trade - I hope someone can help. I'm writing a 'tool' (a function) which can be used generically in any of my projects. ...
4
19639
by: Bayou BoB | last post by:
Hello; Simple question for most I'm sure. I'm curious how many records MS Access will store in a single database? What happens when you reach that number of records? Do you just lose the ability...
13
3577
by: lovecreatesbeauty | last post by:
/* How do free() know how many elements should be freed in a dynamic array? When free a single variable, the amount of byte of memory can be retrieved from the type of variable itself. ...
13
1866
by: the other john | last post by:
The trouble currently with 3 tables. I'm excluding non-relevant fields... tbl_users PK_user_ID tbl_developers PK_developer_ID FK_developer_user_ID FK_developer_project_ID
12
2161
by: bgeneto | last post by:
I know that it's a very basic question, but I can't figure out or find an answer to why do we have to specify a namespace, like this #include<string> using namespace std; when using the...
56
3076
by: Chris Hills | last post by:
Hi, It came up in a standards panel meeting the other day that "all c or C++ programmers" have a copy of ISO C and/or C++ ... I challenged this and said most don't (outside those working on...
18
2433
by: damezumari | last post by:
I would like to know how many of the visitors to my site has js enabled and how many has it turned off. I haven't found a simple solution searching Google groups so I suggest the following using...
158
8905
by: madhawi | last post by:
This question is occur in interview. Please help me.
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.