I am not familiar with PHP programming. why do I always report a ')' error? Please help me to see why the if (form1.2 _ ytbyx. value = "") {error is always reported and '(' is missing '('? Thank you! & Nbsp; & nbs are not familiar with PHP programming. Why does the missing ')' error always occur?
Please help me to see why the if (form1.2 _ ytbyx. value = "") {error is always reported and '(' is missing '('? Thank you!
Script
Function process (){
// Alert ("start test! ");
If (form1.2 _ ytbyx. value = ""){
Alert ("The score you entered cannot be blank! ");
Form1.2 _ ytbyx. select ();
} Else if (checkscore20 (form1.2 _ ytbyx. value )! = True ){
Alert ("The score you entered is incorrect! The current score cannot exceed 20! ");
Form1.2 _ ytbyx. select ();
Return (false );
} Else {
Var ytbyx = parseInt (document. getElementById ("2_ytbyx"). value );
// Alert ("The value you entered has passed the test! Please confirm! ");
}
Share:
------ Solution --------------------
Try again by changing the name of input. do not start with a number.
------ Solution --------------------
Listen to the suggestions from the upstairs. Change all input values to the name_number format.
For example, hybrid MnBr => mbnr_1
Otherwise, js warning is reported.
What you don't understand is how you report a php error.
------ Solution --------------------
Follow the variable naming rules instead of listening to the suggestions from the upstairs.
If you do not observe the rules, you are at your own risk.
Variable naming rules: start with a letter or underline, followed by several letters, numbers, underscores