0
I am facing a basic language problem (in my view), and I am not being able to solve it. I have a form and am taking the form data via Jquery and playing to a file to assemble a PDF. But this data is being sent via $_GET.
However one of the fields is text, and I noticed a situation where if the user puts the character '&', the text is lost, due to the way of sending this data.
I know I could resolve sending the data via POST, however I can not submit the form.
You are mounting the URL in hand when submitting... normally the content of the text field is encoded appropriately, even if it contains the character
&
?– Miguel Angelo
The value of
&
is coded as%26
by browser.– Miguel Angelo
Enter the code you call the form and also the PDF.
– Patrick Maciel
As you are using Jquery, make by serialize(), that it will automatically propose the conversion of & for %26
– user6026
Where the user passes the jquery date parameter use the $("#idform"). serialize();
– Hiago Souza