R
R
rinaz222019-07-31 21:59:54
AJAX
rinaz22, 2019-07-31 21:59:54

What if you write & in the field, then ajax splits the request?

Hello! There is the simplest ajax code.
data is specified like this: I take data from input and send it to the server. If an & occurs in input, then the word after this character is sent as the name of the query. For example, if you write in the field like this: text&abc=sss, then abc becomes the name, and sss becomes the value. How can I fix this so that the data is sent as it is written in the input?
data: "name1=val1&name2=val2",

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question