Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="form-section">
- <!-- Form area -->
- <h6>send your message</h6>
- <?php
- if (isset($_POST['submit'])) {
- $username = $_POST['user'];
- $email = $_POST['email'];
- $message = $_POST['message'];
- $to = "Your email";
- $subject = "New message \n";
- if (mail($to, $subject, $message)) {
- echo "Mail send";
- }
- else{
- echo "problams";
- }
- }
- ?>
- <form action="index.php" method="post">
- <div class="form-group rx-form-group">
- <div class="col-md-6 col-sm-12 form-group">
- <i class="fa fa-chevron-right select"></i>
- <input type="text" placeholder="Name" class="form-control" id="input1" aria-required="true" value="" name="user">
- </div>
- <div class="col-md-6 col-sm-12 form-group">
- <i class="fa fa-chevron-right"></i>
- <input type="email" name="email" placeholder="email" class="form-control">
- </div>
- </div><!--rx-form-group-->
- <div class="col-md-12 col-sm-12 form-group rx-form-group rex-textarea">
- <i class="fa fa-chevron-right"></i>
- <textarea placeholder="Your Message ..." rows="7" class="form-control" value="<?php echo htmlspecialchars($userMessage)?>" name="message"></textarea>
- </div>
- <div class="col-md-12 col-xs-12 form-group">
- <button class="btn btn-default" type="submit" name="contact_Form_1" value="btn">Submit</button>
- </div>
- </form>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement