> Hi I am trying to work out how to use Ajax and I am stuck on the POST side of the line for Construct2
> this is the .php
$Username = mysqli_real_escape_string($con, $_POST['Username']);
> $Password = mysqli_real_escape_string($con, $_POST['Password']);
> $sql="INSERT INTO members (username, password)VALUES ('$Username', '$Password')";
You've probably figured it out now, but '$Username' takes the string literally (when using single quotation marks), it should be "$Username", and in this case it may also simply be $Username as other text isn't appended to the string.