Hello, i'm a student and i've been asked to make a website for a project. I would like to make a contact form on a website.
So i have a simple form to send an e-mail. I know i need to use PHP to process the data.
Are you sure you need to use PHP? Can't you use another backend?
If you can use a different backend language, perhaps make a Python or NodeJS repl, set up Flask or HTTP respectively, and move the HTML files to there.
Then add some systems in the Python/NodeJS for handling the form.