What is the correct syntax for displaying variables in PHP forms?

When displaying variables in PHP forms, you need to use the `echo` or `print` functions to output the variable value within the HTML code. This allows you to dynamically display the variable value on the webpage. Make sure to enclose the variable within double quotes to concatenate it with the HTML code.

<?php
$variable = "Hello, World!";
?>

<form>
  <input type="text" value="<?php echo $variable; ?>">
</form>