To build and display your form, you have to include four PHP code blocks:
The first block at the very beginning of your page to include the autoloader and build the form.
The second block in your <head></head>
section to call required css files for plugins.
The third block in <body></body>
section to render your form.
The fourth block just before </body>
to call required js files and js code to activate plugins.
Here is an example of a page containing a form:
To build and display your form, you have to include four PHP code blocks:
The first block at the very beginning of your page to include the autoloader and build the form.
The second block in your
<head></head> section to call required css files for plugins.
The third block in
<body></body> section to render your form.
The fourth block just before </body> to call required js files and js code to activate plugins.
Here is an example of a page containing a form:
<!DOCTYPE html>
<html>
<head>
<title>Test Form</title>
<!-- Bootstrap 5 CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
</head>
<body>
<h1>My first form</h1>
<!-- Bootstrap 5 JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"></script>
</body>
</html>