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!
Script function process () {// alert ("start test! "); If (form1.2 _ ytbyx. value =" ") {alert (" The value 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! ");}
Reply to discussion (solution)
It is completely JavaScript code, and php's
The error is excerpted from this section. the main program is as follows:
Script
Var form1 = getElementsByTagName ('form ');
Try again by changing the name of input. do not start with a number.
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.
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
It is indeed a problem with naming rules. it seems that we are still studying it systematically! Thank you!