Page 1 of 1

practice, practice, practice

Posted: Sun Oct 17, 2010 11:27 pm
by the_cheat
Hi I am brand new to PHP and relatively new to programming in general. I know everyone says that the best way to learn is to practice coding, so my question
is that while I am still a beginner, I don't really have any ideas for any projects that I can do. I am currently reading a book and am following along in the
examples in the book, but I need to find something to code where I'm just not copying the code. Does anyone know of any websites that provide exercises and
such for beginners. Or if anyone has any ideas of small projects for me, please let me know.

Thanks.

Re: practice, practice, practice

Posted: Mon Oct 18, 2010 12:16 am
by s.dot
I started out developing a personal web site. Kind of like a blog, an about me, pictures, family, other sections. Intense learning experience when developing from scratch and just starting out.

Re: practice, practice, practice

Posted: Mon Oct 18, 2010 12:29 am
by Benjamin
Here's a small project.

Create a page that displays a form. The form will ask for name, email address and a short message. Upon submission it will email the results to you.

Once you have done that modify the form so that in addition to sending an email, the data is stored in a database table.

Post your code in the PHP - Code or Coding Critique forums here and we will tell you how it can be improved.

A few hints:

mail()
$_POST
filter_var()

Code: Select all

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
mysql_connect()
mysql_query()