Need pass JS vars to PHP without using <form> <input> <button> w/ AJAX POST method.
I'm a newbie in web aplications development and I've been studing in the W3Schools tutorials ( and other places in web ).
I want to record in a MySQL table the date and time the visitor entered and left tha page.
But although I've found the AJAX, I just can't make it works.
I don't need a form or input HTML tag.
Both codes are ok and have been tested separated. The rows are inserted in the MySQL table correctly when I initialize them inside the PHP code.