Web Develop Forum: Lesson 5 - Homework - Web Develop Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Lesson 5 - Homework Homework based on handling forms

#1 User is offline   Jack Icon

  • Member
  • PipPip
  • Group: Teacher
  • Posts: 25
  • Joined: 31-January 09
  • Location:Australia

Posted 04 March 2009 - 12:09 PM

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!
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users