I am handling a scenario in PhP where the input is in %XXXXX% format, where XXXXX can be any number of characters/numbers. The input will be sent to sql for processing (the main intention is to send the input that contains %TEXT% to sql).
What I understand from the scenario is that the input text is being encoded as %257445D%25 and later it is decoded to t445D%. Here the value of ‘%74’ is ‘t’ and in this case any hexa decimal number followed by % gives the decoded form. Here is the ASCII encoding for reference " http://ift.tt/1iJoiug "
The ultimate goal is to get the output same as input. I dont want the input to be encoded and decoded.
Here is the piece of code: form:
\ (ex:%7445% or %anything) \
Getting value: $ss= $_GET['name_1'];
Please help me in getting raw data without encoding and decoding the value. I have tried using many scenario’s including the decoded version of htmlentities, utf8_encode, rawurlencode, using regex and replacing strings and many more.
The actual code contains more text boxes and other functions, if one thing works i can replicate the same and make it work for others.
Thank you!
Aucun commentaire:
Enregistrer un commentaire