Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Let's prepare the message for the e-mail */
- $message = "
- Name: $user_name
- Email: $email
- Number: $pass
- State: $user_state
- ";
- /* Send the message using mail() function */
- mail($email, $user_name, $message);
- /* Functions we used */
- function check_input($data, $problem='')
- {
- $data = trim($data);
- $data = stripslashes($data);
- $data = htmlspecialchars($data);
- if ($problem && strlen($data) == 0)
- {
- show_error($problem);
- }
- return $data;
- }
- function show_error($myError)
- {
- ?>
- <html>
- <body>
- <b>Please correct the following error:</b><br />
- <?php echo $myError; ?>
- </body>
- </html>
- <?php
- exit();
- }
- ?>
Add Comment
Please, Sign In to add comment