How does php receive the value returned by jsconfirm?

Source: Internet
Author: User
How does php receive the value returned by jsconfirm? See the following code: phpcode=deloadlang (& quot; pub/message. php & quot;); $ error = $ message php how to receive the value returned by js confirm?
See the following code:
PHP code
  Include LoadLang ("pub/message. php "); $ error = $ message_r [ClassChangeModHaveInfo]; echo" script confirm ('". $ error. "'); script";


The first two sentences are the error prompt language. how can I receive js feedback?
My current code continues to execute the next code no matter whether you click OK or cancel the program. I hope to Click Cancel to execute and return to the page history. go (-1)

------ Solution --------------------
This is not usable, but you can add ajax or cookie operations to the code.
------ Solution --------------------
Php parses on the server and js in the browser. you must know that the return value of js running on the client can only resend the request, which is correct on the third floor.

You can upload the page after confirmation and insert it to the page using JavaScript to operate DOM.
------ Solution --------------------
The tragedy of PHP cannot be solved when it comes to this issue. the server side is the server side...

Learn jquery
------ Solution --------------------
JS is run on the client, and PHP is run on the server. Once the box pops up, it indicates that the server has already been output to the client, and it has nothing to do with the server.

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.