Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!$name) {
- $error['yourname'] = "<p>Please specify your Company Name.</p>\n";
- }
- if(!$street) {
- $error['address'] = "<p>Please specify your address.</p>\n";
- }
- if(!$city) {
- $error['city'] = "<p>Please specify your City.</p>\n";
- }
- //No errors, process
- if(!is_array($error)) {
- echo "<p>Thank you for your submission.</p>\n";
- //Require or include any page footer you might have
- //here as well so the style of your page isn't broken.
- //Then exit the script.
- exit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement