1

I prefered to use ajax with POST. And prepare php pages to accept only POST requests from client. I begin to use jquery ui autocomplete. And get records over source:"action.php"; How ui handles source: while querying server? And is it secure against classic post request?

chema989
  • 3,563
  • 2
  • 18
  • 32
caglaror
  • 447
  • 1
  • 13
  • 27

2 Answers2

3

jquery ui by default uses GET and the default parameter is 'term' therefore it can be received using $_GET['term']

You can also see This if you want to change GET to POST

Community
  • 1
  • 1
1

In pretty much any recent browser, open developer tools (usually F12), go to the "Net" panel (net in firefox, similar in other browsers). Initiate a autocomplete (type something into the box autocomplete is attached to) and you can see the network request which will usually show "GET" or "POST".

Jonathan Kuhn
  • 14,939
  • 3
  • 30
  • 42