Return to Snippet

Revision: 59242
at August 27, 2012 03:41 by kylebruns


Initial Code
<?php
$validation = array();

if (!$_POST['email']) {
		array_push ('email', $validaton);
	}
	
if (!$_POST['phone']) {
		array_push ('phone', $validaton);
	}	
?>
	
<body>
<?php if(in_array('email', $validation)): ?><span class="error"><?php echo 'Please enter an email address'; ?></span><?php endif; ?>
</body>

Initial URL

                                

Initial Description
Trying to resolve without Global Variables.

Initial Title
Problem PHP script

Initial Tags

                                

Initial Language
PHP