I am doing the login page and yes, I know how to do it the standard way but since I am going to use Ajax for that, I just need to know the 1 line of syntax that goes upon clicking the Submit button. I already have the Ajax code and also know how to write the php handling script, what I dont know is how exactly the syntax from button to Ajax function is in order to send it the 2 parameters, the username and the pwd
More or less I thought about this
Code: Select all
<input type = button onclick=" checkUser"'.stripslashes(['username']).'" .stripslashes(['password'])'.'" >
but they are pretty much necessary because a sql injection could delete the users table ...
thank you very much
Emi