I am workign ona sign in app in HTML/PHP.
I am using this PHP code:
```
<?php
var_dump(_$POST);
?>
```
and html:
```
<form id="myForm" action="home.html">
<div class="sign">
<p>Username:</p>
<div class="incorrect incorrect-a" id="incorrect-a"><font size="2.3584782562126348594">Username must be a minimum length of 7 characters</font></div>
<input placeholder="Username" id="inc-a"></input>
<p>Email:</p>
<div class="incorrect incorrect-b" ><font size="2.3584782562126348594">Invalid Email</font></div>
<input placeholder="Email" id="incb"></input>
<p>Password:</p>
<div class="incorrect incorrect-c"><font size="2.3584782562126348594">This password is not of good quality.</font></div>
<input placeholder="Password"></input>
<button class="submit" onclick="mfunction();" type="button"><span>Submit</span></button>
</div>
</form>
```
and js code:
```
const request= new XMLHttpRequest;
request.open("post", "signup.php")
request.onload = function() {
console.log(request.responseText)
}
request.send(new FormData(form));
```
But, in the console, it shows this:
```
<br />
<b>Parse error</b>: syntax error, unexpected variable "$POST", expecting "" in <b>C:\xampp\htdocs\social\signup.php</b> on line <b>2</b><br />
```
How do I fix this??
I am using this PHP code:
```
<?php
var_dump(_$POST);
?>
```
and html:
```
<form id="myForm" action="home.html">
<div class="sign">
<p>Username:</p>
<div class="incorrect incorrect-a" id="incorrect-a"><font size="2.3584782562126348594">Username must be a minimum length of 7 characters</font></div>
<input placeholder="Username" id="inc-a"></input>
<p>Email:</p>
<div class="incorrect incorrect-b" ><font size="2.3584782562126348594">Invalid Email</font></div>
<input placeholder="Email" id="incb"></input>
<p>Password:</p>
<div class="incorrect incorrect-c"><font size="2.3584782562126348594">This password is not of good quality.</font></div>
<input placeholder="Password"></input>
<button class="submit" onclick="mfunction();" type="button"><span>Submit</span></button>
</div>
</form>
```
and js code:
```
const request= new XMLHttpRequest;
request.open("post", "signup.php")
request.onload = function() {
console.log(request.responseText)
}
request.send(new FormData(form));
```
But, in the console, it shows this:
```
<br />
<b>Parse error</b>: syntax error, unexpected variable "$POST", expecting "" in <b>C:\xampp\htdocs\social\signup.php</b> on line <b>2</b><br />
```
How do I fix this??