Search found 5 matches

by the_cheat
Fri Oct 22, 2010 11:37 pm
Forum: PHP - Code
Topic: declaring instance variables
Replies: 2
Views: 56

declaring instance variables

I can't find anything about this, I just want to know if this is a valid line:

Code: Select all

private $var1, $var2, $var3;
by the_cheat
Thu Oct 21, 2010 9:49 pm
Forum: Coding Critique
Topic: contact form class
Replies: 2
Views: 4555

contact form class

here is a class i made that creates and processes a contact form. I would appreciate it it you could look at it and critique it and give me any notes. Sorry it's not documented at all, I hope that's not a problem. thanks <?php ini_set('display_errors', 1); class ContactForm { var $form_block; var $n...
by the_cheat
Tue Oct 19, 2010 9:43 pm
Forum: Coding Critique
Topic: email practice
Replies: 7
Views: 7598

Re: email practice

Thanks a lot for the help, everything is working fine now, it was just that missing closing parenthesis. Now I am just looking for a tutorial that will help me
relay user error messages back to the user and possibly writing the form and script on the same page.
by the_cheat
Tue Oct 19, 2010 12:40 pm
Forum: Coding Critique
Topic: email practice
Replies: 7
Views: 7598

email practice

Hi everyone, Right now I am trying to perfect creating a contact form and emailing the message. The two problems I am having right now is using preg_match() for email address validation, and reporting user errors back to the user. here is the current script I am using for the form's action <?php def...
by the_cheat
Sun Oct 17, 2010 11:27 pm
Forum: General Discussion
Topic: practice, practice, practice
Replies: 2
Views: 395

practice, practice, practice

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 followi...