Online-PHP function transfer parameters single quotes and double quotation marks http://software.ftp.sscmoni.com/1.png
You can use the image if it cannot be uploaded.
The parameter passed in this function is base64 decryption in the red box. the passed parameter cannot be decrypted. if it is directly entered, it cannot be completed in single quotes. it is successful in double quotes, the parameter contains the \ n line break, and the double quotation marks take effect. so I want to pass this parameter because it is dynamic and submitted in the POST form. how should I write it?
Reply to discussion (solution)
No matter what the $ user is before base64_encode, after base64_encode, it will never contain line breaks.
Therefore, we cannot discuss it on the basis of nothing.
No matter what the $ user is before base64_encode, after base64_encode, it will never contain line breaks.
Therefore, we cannot discuss it on the basis of nothing.
There was a line break before base64_encode. now the problem is that the line break does not take effect during conversion. what should I do?
There is a line break before base64_encode
Then after $ encryptedData = base64_decode ($ user );
$ EncryptedData contains line breaks.
But you can't see the echo $ decrypted; because the browser won't display the line break as a line break. The line feed in html is the br and p mark.
You must be in the text state to observe
Thank you for helping me solve the problem.