Righteo, lets jump straight in shall we?
1) Investigate the str_replace function.
2) Using the above function and other thing's you have learnt, design a page and form parser that accepts an email and message and parses it with the following. It must remove any words that are in an array - such as "<profanity>" etc and replace them with a given value eg "[badword]". Then return the filtered message for display on screen.
3) Write a form, that uses the following fields to accept a user's input, and display their "contact card" for printing ( in the browser). First name, Last name, Country, Email, website, comment.
4) Find out how checkbox data is sent to the server. Then write a small script that asks a user if they like a list of food items - and then comments on what they don't like ( hint: use associative array to store the food info).
Thats all. Next week I'll we'll start mysql. At the moment I dont know what everyone is like with understanding database adminstration - so please let me know.
Thanks!
Page 1 of 1
Lesson 5 - Homework Homework based on handling forms
Page 1 of 1

Sign In
Register
Help


MultiQuote