Issue: 5437 apostrophe issue resolve,input added to params

Ticket Link: http://atutor.ca/atutor/mantis/view.php?id=5437

The code was sending the inputs as query rather than paramters. Only parameters are added with escape sequence. I changed it to send the input as parameters.
Now the user can enter any text containing apostrophe also