I am not familiar with PHP programming. why do I always report a ')' error?

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!
            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!

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.