I am not familiar with PHP programming. Why does ')' exception always occur?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.