Okay, thank you very much.
Yeah, I want to find out too. I can’t get this part right. Then I checked out the solution, copy pasted, and reset the exercise and I still couldn’t get it correct.
Same thing happening here
it’s a general problem
“./” tells the user agent to look for a file or folder in the current directory. E.g. “./about.html” tells the user agent to look for an HTML document called “about.html” in the current directory.
“/” tells the user agent to look for a file or folder in the root directory. This means that if your website was hosted somewhere and your website domain was https://www.example.com, “/” would refer to your root rout which is https://www.example.com/. “/about.html” tells the user agent to look for an HTML document called “about.html” in the root directory. The user agent would look here: “https://www.example.com/about.html”.
/practice.html means that practice.html is located in the root directory. Say that your website was hosted somewhere and it had a domain name of https://www.example.com, “/” refers to https://www.example.com. “/practice.html” refers to https://www.example.com/practice.html.
In this exercise we have used /practice.html to store the data entered by user. Is this /practice.html file an empty file? What is in the /practice.html file ? If it is empty then how does it store all the data from different users?
When working on a real project, you would store the user data in a database. Don’t worry about that now though. When you learn about the backend and about databases, you will be able to access the user data. The goal of this lesson wasn’t to actually access the user data but to actually understand how we will be able to store the data somewhere (which is by using the action attribute)
Thank you for explaining it so well.