Hi! I'm New!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

Code: Select all

if (empty($_POST['name']))
  die('Enter a name grrrr');
if (empty($_POST['age']))
  die('Enter a age grrrrr');

//no do the echo name and age, becuase if they did not enter one it would "die" and thus would not make it this far in the script so it would not make anything look funny
Shaneckel
Forum Commoner
Posts: 48
Joined: Fri Sep 23, 2005 3:46 am
Location: Pittsburgh, PA

Post by Shaneckel »

My first home made script... done by shane eckel.

Now I must move on to something bigger, and better.

http://www.shaneckel.com/php/hello2.php

Thanks guys, I'll post back with more questions.

~Quang
Post Reply