Jump to content

mikebyrne

Members
  • Content Count

    780
  • Joined

  • Last visited

Posts posted by mikebyrne

  1. 57 minutes ago, mac_gyver said:

    your form is not a post method form, so there is no $_POST data.

    add method='post' to the <form ... > tag.

      <form id="contact_form" method='post'>
    
                                                <div class="f-field"><input name="fname" type="text" placeholder="Name" required></div>
    
                                                <div class="f-field"><input name="email" type="text" placeholder="Email" required></div>
    
                                                <div class="f-field"><input name="phone" type="text" placeholder="Phone" required></div>
    
                                                <div class="f-field"><textarea name="msg" placeholder="Message"></textarea></div>
    
                                                <div class="sent-btn"><input name="submit" type="submit" value="Submit"></div>
    
                                            </form>

    Still the same result. No error msg etc

  2. 11 minutes ago, Barand said:

     

                <!-- our services -->
    
                <section id="contact" class="bg-light-teal">
    
                    <div class="content-boxed">
    
                        <div class="split-color wow fadeInLeft">
    
                            <div class="section-number">#05</div>
    
                            <h2 class="section-heading rotate">Contact</h2>
    
                        </div>
    
                        <div class="container-fluid">
    
                            <div class="row">
    
                                <div class="col-lg-6">
                                    <div class="pr-5 mb-5 wow fadeInUp">
    
                                        <div class="gmap behind-border-box"><iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d2401.5623741248505!2d-6.9729973!3d52.9922718!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x485d6f8aac9336c9%3A0x35a64aae423e6da9!2sIrish+Web+Services!5e0!3m2!1sen!2sin!4v1531902216161" width="100%" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>
    </div>
    
                                    </div>
                                </div>
    
                                <div class="col-lg-6">
                                    <div class="wow fadeInRight">
    
                                        <h3>let’s get in touch</h3>
    
                                        <div class="contact-form">
    
                                            <form id="contact_form">
    
                                                <div class="f-field"><input name="fname" type="text" placeholder="Name" required></div>
    
                                                <div class="f-field"><input name="email" type="text" placeholder="Email" required></div>
    
                                                <div class="f-field"><input name="phone" type="text" placeholder="Phone" required></div>
    
                                                <div class="f-field"><textarea name="msg" placeholder="Message"></textarea></div>
    
                                                <div class="sent-btn"><input name="submit" type="submit" value="Submit"></div>
    
                                            </form>
    
                                        </div>
    
                                    </div>
                                </div>
    
                            </div>
    
                        </div>
    
                        <h2 class="section-heading2">Contact</h2>
    
                    </div>
    
                </section>
    
                <!-- our contact -->

     

  3. I'm using a template which contains a form so users can email me, but it doesn't seem to be working. Any ideas why??

    I've changed "me@myemailaddress.com" to my own!

     

    <?php
    
    //Prefedined Variables
    $to = "me@myemailaddress.com";
    
    // Email Subject
    $subject = "Contact from Your Site";
    
    // This IF condition is for improving security  and Prevent Direct Access to the Mail Script.
    if ($_POST) {
    
    // Collect POST data from form
        $name = stripslashes($_POST['fname']);
        $email = stripslashes($_POST['email']);
        $phone = stripslashes($_POST['phone']);
        $message = stripslashes($_POST['msg']);
    //$realcap = stripslashes($_POST['captcha']);
    
        $ipAddress = $_SERVER['REMOTE_ADDR'];
        if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
            $ipAddress = array_pop(explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']));
        }
    
    // Collecting all content in HTML Table
        $content = '<table width="100%">
    <tr><td  align "center"><b>Contact Details</b></td></tr>
    <tr><td>Name:</td><td> ' . $name . '</td></tr>
    <tr><td>Email:</td><td> ' . $email . ' </td></tr>
    <tr><td>Phone:</td><td> ' . $phone . ' </td></tr>
    <tr><td>Message:</td> <td> ' . $message . '</td></tr>
    <tr><td>Date:</td> <td> ' . date('d-m-Y') . '</td></tr>
    <tr><td>IP:</td> <td> ' . $ipAddress . '</td></tr>
    </table> ';
    
    
    // Define email variables
        $headers = "From:" . $email . "\r\n";
        $headers .= "Reply-to:" . $email . "\r\n";
        $headers .= 'Content-type: text/html; charset=UTF-8';
    
        if (!empty($name) && !empty($email) && !empty($content)) {
    // Sending Email
            if (mail($to, $subject, $content, $headers)) {
                print "Thank you, I will getback to you shortly<br>";
                return true;
            } else {
                print "Some errors to send the mail.";
                return false;
            }
        } else {
            print "Some validation errors to send the mail.";
            return false;
        }
    }

     

  4. I'm just running a SEO check on my site and it seems to be throwing up the following JS error:

    TypeError: Cannot read property 'add' of null at Object.e.initADA (https://www.byrnecomputingservices.ie/js/plugins/slick.min.js:1:19334) at Object.e.init (https://www.byrnecomputingservices.ie/js/plugins/slick.min.js:1:19101) at new (https://www.byrnecomputingservices.ie/js/plugins/slick.min.js:1:2832) at n.fn.init.i.fn.slick (https://www.byrnecomputingservices.ie/js/plugins/slick.min.js:1:42781) at slickMobileServices (https://www.byrnecomputingservices.ie/js/custom.js:1024:12) at startCarousel (https://www.byrnecomputingservices.ie/js/custom.js:1043:4) at https://www.byrnecomputingservices.ie/js/custom.js:830:5 at dispatch (https://www.byrnecomputingservices.ie/js/jquery.js:3:6466) at r.handle (https://www.byrnecomputingservices.ie/js/jquery.js:3:3241)
    

    Any idea how I can correct this?

     

    Any help would be great!

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.