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.