What are common syntax errors to watch out for when using PHP to manipulate form elements?

One common syntax error to watch out for when using PHP to manipulate form elements is forgetting to use the correct syntax for accessing form data. Make sure to use the $_POST or $_GET superglobals to access form data based on the form method used (post or get). Additionally, be careful with quoting string values or concatenating variables within form element attributes to avoid syntax errors.

// Example of accessing form data using $_POST superglobal
if(isset($_POST['submit'])){
    $username = $_POST['username'];
    $password = $_POST['password'];
    // Perform form data manipulation here
}