Forms and PHP
Make some form that is relevant to your project, and get it working in PHP. ("Get it working" means use $_POST to show what data was entered on the form.)
For example, in my calendar project, I'll add a form that enters events.
If you're using dates, maybe you'll want
this code.
(I didn't use it in my Homework 6, but I did in Homework 7.)
Some notes about how to organize and turn in your homework:
- Make your main page "index.php."
- Remove any files you don't want me to use.
- Comments at the top of EACH FILE, just as in an ordinary program
- <HTML>, <HEAD>, and <BODY> tags only go in the main PHP file used to create a page, not in any file that is included.
- Pay attention to indentation.
- If I need to know anything
to test your site, tell me in the email. (Login name and password,
for example -- that'll be relevant soon.)
This is as good a point as any to talk about what if your page completely crashes PHP -- and what to do about it. See my notes.