Okay
  Public Ticket #1228608
Contact/GET A QUOTE form does not work
Open

Comments

  • Eugeniu started the conversation

    Hello i bought a template i already install on my host, but contact form does not work, i replaced with my email in contact.php in script folder but nothing seems to work, i have not receive the mail in my gmail account!!! Also ge a qoute form does not work from the home page I need some support please

    <?php
    if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    	if(!empty($_POST['contact_name']) && !empty($_POST['contact_email']) && !empty($_POST['contact_message'])) {
    		$to = 'your-email-address@domain.com'; // Replace with your email.
    		$body = "Name: {$_POST['contact_name']}\n\nEmail: {$_POST['contact_email']}\n\nMessage: {$_POST['contact_message']}";
    		mail($to, "Contact Form Submission: $_POST['contact_subject']", $body, "From: {$_POST['contact_email']}");
    	}
    }
    ?>

    This is line code for get a qoute  form does not see any script 

    <!-- Quote -->
    <div class="quote">
    <div class="heading text-center">
    <h3>Get A Quote</h3>
    <hr class="line" />
    </div> <!-- end .heading -->
    <form>
    <div class="form-group">
    <label for="name">Your Name:</label>
    <span class="form-icon"><i class="fa fa-user"></i></span>
    <input type="text" id="name" name="name" class="form-with-icon" />
    </div>
    <div class="form-group">
    <label for="email">Email:</label>
    <span class="form-icon"><i class="fa fa-envelope"></i></span>
    <input type="email" id="email" name="email" class="form-with-icon" />
    </div>
    <div class="form-group">
    <label for="phone">Phone:</label>
    <span class="form-icon"><i class="fa fa-phone"></i></span>
    <input type="tel" id="phone" name="phone" class="form-with-icon" />
    </div>
    <div class="form-group">
    <label for="address">Address:</label>
    <span class="form-icon"><i class="fa fa-bullhorn"></i></span>
    <textarea name="address" id="address" class="form-with-icon" rows="4"></textarea>
    </div>
    <div class="row">
    <div class="col-sm-6">
    <div class="form-group">
    <label for="from">From:</label>
    <span class="form-icon"><i class="fa fa-calendar"></i></span>
    <input type="date" id="from" name="from" class="form-with-icon" />
    </div>
    </div>
    <div class="col-sm-6">
    <div class="form-group">
    <label for="to">To:</label>
    <span class="form-icon"><i class="fa fa-calendar"></i></span>
    <input type="date" id="to" name="to" class="form-with-icon" />
    </div>
    </div>
    </div>
    <div class="row">
    <div class="col-sm-6">
    <div class="form-group">
    <label for="course">Course:</label>
    <span class="form-icon"><i class="fa fa-file-o"></i></span>
    <select id="course" name="course" class="form-with-icon">
    <option>select</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    </select>
    </div>
    </div>
    <div class="col-sm-6">
    <div class="form-group">
    <label for="timing">Timing:</label>
    <span class="form-icon"><i class="fa fa-clock-o"></i></span>
    <select id="timing" name="timing" class="form-with-icon">
    <option>select</option>
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    </select>
    </div>
    </div>
    </div>
    <div class="text-center">
    <button type="submit" class="button">Send Mail</button>
    </div>
    </form>
    </div> <!-- end .quote -->

    </div> <!-- end .col-sm-6 -->
    </div> <!-- end .row -->
    </div> <!-- end .container -->
    </div> <!-- end .inner -->
    </section> <!-- end .section -->

  •  223
    Support replied

    Hi,

    Sorry for late response!!

    Are you sure the script you have edited to change email address is for quote form.Can you send me the link of your website where you have installed it.

    Thanks!!

  • Eugeniu replied

    Hi again  the website is www.insautogrup.eu but i already translated but you can take a look

  •  223
    Support replied

    Hi , in last few weeks we've became a partner with MOJOMARKET and we wanted to share some cool stuff with you if you'd be interested for:

    You don't need to reply to this ticket.

    Thanks!