[jQuery] $.post to submit form data?
Another problem I am having.
I have tried using jQuery's $.post function from within a form. i.e:
onclick="$.post(\'login.php\', this.form ,function(data)
{ document.getElementById(\'login_container\').innerHTML = data; }) ;
which ... kind of works
on the other end I have:
if (isset($_POST['usern'])) {
$usern = $_POST['usern'];
$pass = $_POST['pass'];
Simple. However it doesn't work, and if I echo the contents of the
strings I get...
[object HTMLInputElement]
Any help?
Thanks