Update, I changed jQuery to this and it still doesn't work:
$("#click").click(function(){
$.post("accountcreation.php",function(response){ userCreation:"userCreation"
$("#justtesting").html(response);
})
})
Nothing is happening. I had the HTML and PHP working, but then I wanted to add live updating and began this jQuery code. What's wrong with it?
Thanks.
jQuery
$("#click").click(function(){
$.post("accountcreation.php", { userCreation:"userCreation"
})
$.get("accountcreation.php", function(data,status){
$("#justtesting").html(data);
})
})
HTML
Username: <input required type="text" name="userCreation"
onchange="userValidate();"
onkeypress="this.onchange();"
onpaste="this.onchange();"
oninput="this.onchange();">
<span id="userRegexJavascriptResponse"></span>
<br>
<input type="button" value="Submit" id="click">
<div id="justtesting"></div>
PHP (Part)
class accountcreation {
private $options;
function __construct($con, $ipCreation) {
$this->passwordCreation = $_POST['passwordCreation'];
$this->userCreation = $_POST['userCreation'];
$this->ipCreation = $ipCreation;
$this->emailCreation = $_POST['emailCreation'];
$this->con = $con;
}