It's just a strange thing. let's take a look at the cause.

Source: Internet
Author: User
This is a strange event. you can help me analyze the cause. I have several pages added to the product category, including PHP files, html files, and js files. Is an example of a book, I follow the code written. After writing, clicking the submit button does not respond, but I run the source code with the book and can submit data to the mysql database. There is no way. it is a strange thing for me to copy the relevant files to my generation.
I have several page categories for adding products, including PHP files, html files, and js files. Is an example of a book, I follow the code written. After writing, clicking the submit button does not respond, but I run the source code with the book and can submit data to the mysql database.
I couldn't help it. I copied the relevant files to my code folder, but the submit button still didn't respond. I checked them carefully. besides these files, it has nothing to do with other files. My program and source code use a database and data tables.

After several days, I cannot figure out why. if I want code, I can post it, but I guess it is not a code task, because it can be run in the source code folder, in my folder, it cannot be run.

By the way, this item uses the smarty template and the adodb class library, but I can see it normally.

------ Solution --------------------
Check if there are any js errors.
------ Solution --------------------
First, determine several questions.
1. is it a single entry mode?
2. the button is submitted. Form?
Whether the action = 'current page' is in it. if yes, check the path passed by js and change it to absolute.
3. do I use ajax for submission? If yes, please introduce the same version of jquery1.XX under the source code.

------ Solution --------------------
I followed the written code. After writing, click the submit button.

I run the source code with the book and can submit data to the mysql database.

There is no way. I copied the relevant files to my code folder, but the submit button still didn't respond.

So how do you run the source code with books?
Because it is a copy of the relevant files, there are differences between at least two runtime environments.

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.