All pastes #524955 Raw Edit

Unnamed

public php v1 · immutable
#524955 ·published 2007-05-31 06:47 UTC
rendered paste body
<?php//check to make sure the user didn't input bogus data$errors = NULL;foreach($_POST as $key => $value) {      if(!preg_match('/.+/')) {            $errors .= "You neglected to enter a value for field {$key}\n<br />";      }}?>