- You have made a file (html) that contains a form. It looks good and it collects some information. For sure a name and an age.
- To enable the connection or interpreting of the data, you need to place your files on a webserver. Let’s make one on your desktop. Data >> Handout >> SpenceHandout >> xammp Copy the whole folder over to your C:/temp (you may have to make the temp folder) Run the xammp setup file.
- Move your html and image files for your page into the correct folder within xammp(/htdocs?) You now have a working webserver that anyone in the room can go and see your files – try it! In a browser, type in the IP address of a friend! Figure it out!
- Now, go to w3schools.com and lookup php form handling.
- You need to fix the “action” and “post” of your html file.
- You need to create a new file called “process.php”. See if you can make it receive the information from the html page.
- Bonus** make the form ask for the user’s age and tell them what year they were born.