Click here to Skip to main content
15,511,503 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionBLDMAKE ERROR: Can't find any RVCT installation. Pin
Raj Aryan 100110-May-11 6:03
Raj Aryan 100110-May-11 6:03 
AnswerRe: BLDMAKE ERROR: Can't find any RVCT installation. Pin
Uilleam23-Jul-11 16:17
Uilleam23-Jul-11 16:17 
QuestionExecuting PHP script without leaving the page Pin
AmbiguousName3-May-11 6:03
AmbiguousName3-May-11 6:03 
AnswerRe: Executing PHP script without leaving the page Pin
enhzflep3-May-11 6:09
enhzflep3-May-11 6:09 
AnswerRe: Executing PHP script without leaving the page PinPopular
enhzflep3-May-11 7:39
enhzflep3-May-11 7:39 
QuestionTo use or not to use Pin
astra.20123-May-11 1:10
astra.20123-May-11 1:10 
QuestionPHP Form help Pin
Dave McCool30-Apr-11 9:54
Dave McCool30-Apr-11 9:54 
AnswerRe: PHP Form help Pin
Peter_in_27801-May-11 5:59
professionalPeter_in_27801-May-11 5:59 
Briefly, you will need to add a scrap of javascript to your page. In your <form ... > add something like
onsubmit="return check_fields()"
Somewhere in your page (I put it in the head section) put something like
<script type="text/javascript">
    function check_fields() {
        if (document.getElementById("xxx").checked || document.getElementById("yyy").checked)
	    return true;
	alert("You must select either xxx or yyy!");
	return false;
}
</script>

The function should return true if it's OK to submit. If there's something wrong, spit out an alert to say what the problem is, and return false so the form won't actually be submitted. Obviously, your checking will be more complex than this example which I ripped out of one of my sites.

Cheers,
Peter
If this answers your question, vote for it.
Software rusts. Simon Stephenson, ca 1994.

GeneralRe: PHP Form help Pin
Dave McCool1-May-11 6:08
Dave McCool1-May-11 6:08 
Questionthe apache service doesn't start Pin
Farhaneh25-Apr-11 21:10
Farhaneh25-Apr-11 21:10 
AnswerRe: the apache service doesn't start Pin
Gerben Jongerius25-Apr-11 21:41
Gerben Jongerius25-Apr-11 21:41 
QuestionAn XML printer thingy Pin
freeluna22-Apr-11 15:23
professionalfreeluna22-Apr-11 15:23 
QuestionClosing a window with button?? Pin
AmbiguousName21-Apr-11 7:00
AmbiguousName21-Apr-11 7:00 
AnswerRe: Closing a window with button?? Pin
Ali Al Omairi(Abu AlHassan)21-Apr-11 16:21
professionalAli Al Omairi(Abu AlHassan)21-Apr-11 16:21 
AnswerRe: Closing a window with button?? Pin
enhzflep3-May-11 7:53
enhzflep3-May-11 7:53 
QuestionHow to open Perl files / Perl Module files in Design Layout Pin
sr15920-Apr-11 20:04
sr15920-Apr-11 20:04 
QuestionFuzzy C Means in PHP Code and My SQL Database, Please Help! Pin
edrianhadinatazz18-Apr-11 20:35
edrianhadinatazz18-Apr-11 20:35 
AnswerRe: Fuzzy C Means in PHP Code and My SQL Database, Please Help! Pin
edrianhadinatazz18-Apr-11 20:38
edrianhadinatazz18-Apr-11 20:38 
GeneralRe: Fuzzy C Means in PHP Code and My SQL Database, Please Help! Pin
User 171649218-Apr-11 23:07
professionalUser 171649218-Apr-11 23:07 
GeneralRe: Fuzzy C Means in PHP Code and My SQL Database, Please Help! Pin
Smithers-Jones19-Apr-11 2:53
Smithers-Jones19-Apr-11 2:53 
GeneralRe: Fuzzy C Means in PHP Code and My SQL Database, Please Help! Pin
edrianhadinatazz28-Apr-11 18:31
edrianhadinatazz28-Apr-11 18:31 
Questioncheckboxes from hell Pin
Joan M13-Apr-11 5:24
professionalJoan M13-Apr-11 5:24 
AnswerRe: checkboxes from hell Pin
Graham Breach13-Apr-11 6:32
Graham Breach13-Apr-11 6:32 
GeneralRe: checkboxes from hell Pin
Joan M13-Apr-11 6:48
professionalJoan M13-Apr-11 6:48 
AnswerRe: checkboxes from hell Pin
Luc Pattyn13-Apr-11 7:11
sitebuilderLuc Pattyn13-Apr-11 7:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.