www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: PHP Mailer Script

  1. #1
    Join Date
    Aug 2011
    Posts
    37

    PHP Mailer Script

    Good Morning,

    I am building a extended contact form and I it working ok and validating ok as well.
    My issue is the submit portion...

    I used a php and js file that I previously used on another project, just modified it to fit this form.
    But It does not submit, and I'm not sure what is causing it to fail. The validation jQuery is inside the html file.

    Here is the form - simetriastudio.com/emt2/form.html

    Here is the js file - simetriastudio.com/emt2/assets/form/js/app.js

    Here is the PHP:
    PHP Code:
    <?php

        
    if ($_SERVER["REQUEST_METHOD"] == "POST") {
            
    // Get the form fields and remove whitespace.
            
    $firstname strip_tags(trim($_POST["firstname"]));
            
    $lastname strip_tags(trim($_POST["lastname"]));
            
    $address strip_tags(trim($_POST["address"]));
            
    $city strip_tags(trim($_POST["city"]));
            
    $state strip_tags(trim($_POST["state"]));
            
    $zip strip_tags(trim($_POST["zip"]));
            
    $phone1 strip_tags(trim($_POST["phone1"]));
            
    $phone2 strip_tags(trim($_POST["phone2"]));
            
    $email filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL);
            
    $birthdate strip_tags(trim($_POST["birthdate"]));
            
    $status strip_tags(trim($_POST["status"]));
            
    $income strip_tags(trim($_POST["income"]));
            
    $score strip_tags(trim($_POST["score"]));
            
    $coapplicanty strip_tags(trim($_POST["coapplicanty"]));
            
    $coapplicantn strip_tags(trim($_POST["coapplicantn"]));
            
          
    // Co Applicants
            
            
    $firstnameco strip_tags(trim($_POST["firstnameco"]));
            
    $lastnameco strip_tags(trim($_POST["lastnameco"]));
            
    $addressco strip_tags(trim($_POST["addressco"]));
            
    $cityco strip_tags(trim($_POST["cityco"]));
            
    $stateco strip_tags(trim($_POST["stateco"]));
            
    $zipco strip_tags(trim($_POST["zipco"]));
            
    $phone1co strip_tags(trim($_POST["phone1co"]));
            
    $phone2co strip_tags(trim($_POST["phone2co"]));
            
    $emailco filter_var(trim($_POST["emailco"]), FILTER_SANITIZE_EMAIL);
            
    $birthdateco strip_tags(trim($_POST["birthdateco"]));
            
    $statusco strip_tags(trim($_POST["statusco"]));
            
    $incomeco strip_tags(trim($_POST["incomeco"]));
            
    $scoreco strip_tags(trim($_POST["scoreco"]));

            
    // Check that data was sent to the mailer.
            
    if ( empty($firstname) OR 
                 empty(
    $lastname) OR 
                 empty(
    $address) OR 
                 empty(
    $city) OR 
                 empty(
    $state) OR 
                 empty(
    $zip) OR 
                 empty(
    $phone1) OR 
                 empty(
    $phone2) OR 
                 !
    filter_var($emailFILTER_VALIDATE_EMAIL) OR
                 empty(
    $birthdate) OR 
                 empty(
    $status) OR 
                 empty(
    $income) OR 
                 empty(
    $score) OR 
                 empty(
    $coapplicanty) OR 
                 empty(
    $coapplicantn) OR 
                 
             
    // Co Applicants
                 
                 
    empty($firstnameco) OR 
                 empty(
    $lastnameco) OR 
                 empty(
    $addressco) OR 
                 empty(
    $cityco) OR 
                 empty(
    $stateco) OR 
                 empty(
    $zipco) OR 
                 empty(
    $phone1co) OR 
                 empty(
    $phone2co) OR 
                 !
    filter_var($emailcoFILTER_VALIDATE_EMAIL) OR
                 empty(
    $birthdateco) OR 
                 empty(
    $statusco) OR 
                 empty(
    $incomeco) OR 
                 empty(
    $scoreco)) 
            {
        
    // Set a 400 (bad request) response code and exit.
             
    http_response_code(400);
             echo 
    "Oops! There was a problem with your submission. Please complete the form and try again.";
             exit;
            }

            
    // Set the recipient email address.
            // FIXME: Update this to your desired email address.
            
    $recipient "info@simetriastudio.com";

            
    // Set the email subject.
            
    $subject "A New Application From: $name";

            
    // Build the email content.
            
    $email_content "First Name: $firstname\n";
            
    $email_content .= "Last Name: $lastname\n";
            
    $email_content .= "Adress: $address\n\n";
            
    $email_content .= "City: $city\n";
            
    $email_content .= "State: $state\n";
            
    $email_content .= "Zip Code: $zip\n\n";
            
    $email_content .= "Phone 1: $phone1\n";
            
    $email_content .= "Phone 2: $phone2\n";
            
    $email_content .= "Email: $email\n\n";
            
    $email_content .= "Birthdate: $birthdate\n";
            
    $email_content .= "Status: $status\n";
            
    $email_content .= "Income: $income\n\n";
            
    $email_content .= "Score: $score\n";
            
    $email_content .= "Co-Applicant Yes: $coapplicanty\n";
            
    $email_content .= "Co-Applicant No: $coapplicantn\n\n";
            
        
    // Co Applicants
        
            
    $email_content "(Co-Applicant) First Name: $firstnameco\n";
            
    $email_content .= "(Co-Applicant) Last Name: $lastnameco\n";
            
    $email_content .= "(Co-Applicant) Adress: $addressco\n\n";
            
    $email_content .= "(Co-Applicant) City: $cityco\n";
            
    $email_content .= "(Co-Applicant) State: $stateco\n";
            
    $email_content .= "(Co-Applicant) Zip Code: $zipco\n\n";
            
    $email_content .= "(Co-Applicant) Phone 1: $phone1co\n";
            
    $email_content .= "(Co-Applicant) Phone 2: $phone2co\n";
            
    $email_content .= "(Co-Applicant) Email: $emailco\n\n";
            
    $email_content .= "(Co-Applicant) Birthdate: $birthdateco\n";
            
    $email_content .= "(Co-Applicant) Status: $statusco\n";
            
    $email_content .= "(Co-Applicant) Income: $incomeco\n\n";
            
    $email_content .= "(Co-Applicant) Score: $scoreco\n";

            
    // Build the email headers.
            
    $email_headers "From: $name <$email>";

            
    // Send the email.
            
    if (mail($recipient$subject$email_content$email_headers)) {
                
    // Set a 200 (okay) response code.
                
    http_response_code(200);
                echo 
    "Thank You! Your message has been sent.";
            } else {
                
    // Set a 500 (internal server error) response code.
                
    http_response_code(500);
                echo 
    "Oops! Something went wrong and we couldn't send your message.";
            }

        } else {
            
    // Not a POST request, set a 403 (forbidden) response code.
            
    http_response_code(403);
            echo 
    "There was a problem with your submission, please try again.";
        }

    ?>
    I've spend days trying to troubleshoot this and can't seem to figure it out.
    Any advise or help would be greatly appreciated.

    Thank you guys!!

    Sergio

  2. #2
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    776
    You didn't say what errors you were getting?
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

  3. #3
    Join Date
    Aug 2011
    Posts
    37
    Ok this is strange.... last night it wasn't working at all. The fields would just disappear after clicking submit.
    I just tried now to see what the console error was, and it submitted. But it only submited the Co-Applicant section ??????
    The Main Applicant section did not come through. ?????

    but it only works if both radio buttons are selected. So I gotta fix that.

    Thank you ginerjm for your time.

    Sergio

  4. #4
    Join Date
    Aug 2011
    Posts
    37
    AND... it is doubling every submitted form, but still just the co-applicant section.

  5. #5
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    776
    You haven't shown us your form code. Plus - how would you like to spend 10 minutes filling out a form and than have the server respond with an error message and make you fill it out again??? You should output your form again with the values in the fields along with the message. And stop setting http error codes. Let the system do that for you if it needs to - you don't need to do that.
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

  6. #6
    Join Date
    Aug 2011
    Posts
    37
    Hi ginerjm,

    I sent you a pm... please let me know.

    Thank you!

    Sergio

  7. #7
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    776
    You haven't posted your form. Again.
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

  8. #8
    Join Date
    Aug 2011
    Posts
    37
    Let me know if the attached suffices.
    Sergio
    Attached Files Attached Files

  9. #9
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    776
    one posts code here in the proper tags. Many of us don't trust files. Why would you make a zip file of a simple piece of form code? And why is a zipped file of your form already 9kb in size?

    I just want to see your form that is causing you all this trouble.
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

  10. #10
    Join Date
    Aug 2011
    Posts
    37
    I tried to post in the reply box but the # of characters surpasses the character limit on here. I don't know how else to share the code other than to kindly ask you to view source from the link posted in the initial post.

    Sergio

  11. #11
    Join Date
    Mar 2007
    Location
    localhost
    Posts
    2,360
    Please post your HTML code
    Yes, I know I'm about as subtle as being hit by a bus..(\\.\ Aug08)
    Yep... I say it like I see it, even if it is like a baseball bat in the nutz... (\\.\ Aug08)
    I want to leave this world the same way I came into it, Screaming, Incontinent & No memory!
    I laughed that hard I burst my colostomy bag... (\\.\ May03)
    Life for some is like a car accident... Mine is like a motorway pile up...

    Problems with Vista? :: Getting Cryptic wid it. :: The 'C' word! :: Whois?

  12. #12
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    776
    ALL WE NEED is your html form. Just the form. That's it. From the <form> tag to the </form> tag. How big can it be? And if it is that big, there's probably a host of problems in there. Is it full of styling on every gd tag like your other code???
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

  13. #13
    Join Date
    Aug 2011
    Posts
    37
    PART 1 of 2:

    HTML Code:
    <form action="mailer.php" method="post" id="sky-form" class="sky-form">
    <div id="applicant">
    <header><h1 class="blue">Primary Applicant's Information</h1></header>
    
    <fieldset>
    <div class="row">
    <h3 class="col col-10 green"> Primary Applicant's Name</em></h3><br><br>
    </div>
    
    <div class="row">
    <section class="col col-4">
    <label class="label"><span style="color:red;">*</span> First Name</label>
    <label class="input">
    <i class="icon-prepend fa fa-user"></i>
    <input type="text" id="firstname" name="firstname">
    </label>
    </section>
    
    <section class="col col-2">
    <label class="label">Middle Initial</label>
    <label class="input">
    <input type="text">
    </label>
    </section>
    
    <section class="col col-4">
    <label class="label"><span style="color:red;">*</span> Last Name</label>
    <label class="input">
    <i class="icon-prepend fa fa-user"></i>
    <input type="text" id="lastname" name="lastname">
    </label>
    </section>
    
    <section class="col col-2">
    <label class="label">Suffix</label>
    <label class="select">
    <select>
    <option value="0"> </option>
    <option value="1">Jr</option>
    <option value="2">Sr</option>
    </select>
    <i></i>
    </label>
    </section>
    </div>
    
    </fieldset>
    
    <fieldset>
    <div class="row">
    <h3 class="col col-10 green"> Primary Applicant's Address & Contact Information</em></h3><br><br>
    </div>
    <div class="row">
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Street Address</label>
    <label class="input">
    <i class="icon-prepend fa fa-globe"></i>
    <input type="text" id="address" name="address">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">Street Address - <em>Line 2</em></label>
    <label class="input">
    <i class="icon-prepend fa fa-globe"></i>
    <input type="text">
    </label>
    </section>
    </div>
    
    <div class="row">							
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> City</label>
    <label class="input">
    <i class="icon-prepend fa fa-globe"></i>
    <input type="text" id="city" name="city">
    </label>
    </section>
    
    <section class="col col-3">
    <label class="label"><span style="color:red;">*</span> State</label>
    <label class="select">
    <select id="state" name="state">
    <option value="0"> </option>
    <option value="1">Alabama</option>
    <option value="1">Alaska</option>
    <option value="2">Arizona</option>
    </select>
    <i></i>
    </label>
    </section>
    
    <section class="col col-3">
    <label class="label"><span style="color:red;">*</span> Zip Code</label>
    <label class="input">
    <i class="icon-prepend fa fa-globe"></i>
    <input type="text" id="zip" name="zip">
    </label>
    </section>
    </div>
    
    <div class="row">
    <section class="col col-5">
    <label class="label"><span style="color:red;">*</span> Daytime Phone Number</label>
    <label class="input">
    <i class="icon-prepend fa fa-phone"></i>
    <input type="text" id="phone1" name="phone1">
    </label>
    </section>
    
    <section class="col col-2">
    <label class="label">Ext.</label>
    <label class="input">
    <input type="text">
    </label>
    </section>
    
    <section class="col col-5">
    <label class="label"><span style="color:red;">*</span> Evening Phone Number</label>
    <label class="input">
    <i class="icon-prepend fa fa-phone"></i>
    <input type="text" id="phone2" name="phone2">
    </label>
    </section>
    </div>
    
    <div class="row">
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> E-mail Address</em></label>
    <label class="input">
    <i class="icon-prepend fa fa-envelope-o"></i>
    <input type="text" id="email" name="email">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">E-mail Address - <em>Other</em></label>
    <label class="input">
    <i class="icon-prepend fa fa-envelope-o"></i>
    <input type="text">
    </label>
    </section>
    </div>							
    </fieldset>
    
    <fieldset>
    <div class="row">
    <h3 class="col col-10 green"> Primary Applicant's Identity</em></h3><br><br>
    </div>
    
    <div class="row">
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Date of Birth (DOB)</label>
    <label class="input">
    <i class="icon-prepend fa fa-calendar"></i>
    <input type="text" id="birthdate" name="birthdate">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Residency Statues</label>
    <label class="select">
    <select id="status" name="status">
    <option value=""></option>
    <option value="3">US Citizen</option>
    <option value="1">Non-Permanent Resident Alien</option>
    </select>
    <i></i>
    </labe>
    </section>
    </div>
    </fieldset>
    
    <fieldset>
    <div class="row">
    <h3 class="col col-8 green">Primary Applicant's Income and Credit Score</h3><br><br>
    </div>
    
    <div class="row">
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Annual Income</label>
    <label class="select">
    <select id="income" name="income">
    <option value=""></option>
    <option value="3">Below $25,000</option>
    <option value="1">$25,001 - $40,000</option>
    </select>
    <i></i>
    </labe>
    </section>
    
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Credit Score - <em>To the best of your knowledge</em></label>
    <label class="select">
    <select id="score" name="score">
    <option value=""></option>
    <option value="3">Below 599</option>
    <option value="1">600 - 620</option>
    </select>
    <i></i>
    </labe>
    </section>
    </div>
    </fieldset>
    
    <fieldset>
    <div class="row">
    <h3 class="col col-11 green"> Primary Applicant's Minimum Monthly Debt - <em>Fill all that apply</em></h3><br><br>
    </div>						
    
    <div class="row">
    <section class="col col-6">
    <label class="label">Monthly Rent/Mortgage Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">Monthly Car Loan Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    </div>
    
    <div class="row">
    <section class="col col-6">
    <label class="label">Monthly Credit Card Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">Monthly Alimony/Child Support Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    </div>
    </fieldset>
    
    <fieldset>
    <h3 class="col col-11 green"> Will There be a Co-Applicant?</em></h3><br><br>
    <section class="col col-10">
    <label class="label"><span style="color:red;">*</span> Will you be adding a Co-Applicant for this pre-qualification?</label>
    <div class="inline-group">
    <label class="radio">
    <input type="radio" id="coapplicanty" name="coapplicanty"><i></i>Yes</label>
    <label class="radio">
    <input type="radio" id="coapplicantn" name="coapplicantn"><i></i>No</label>
    </div>
    </section>
    </fieldset>
    </div>

  14. #14
    Join Date
    Aug 2011
    Posts
    37
    PART 2 OF 2:
    HTML Code:
    <div class="mar-20v"></div>
    <div class="accordion" id="accordion3">
    <div class="panel">
    <a class="toggle collapsed" data-toggle="collapse" data-parent="#accordion3" href="#co-applicant">
    <span class="co-app">ADD CO-APPLICANT'S INFORMATION</span>
    </a>
    <div class="mar35v"></div>
    
    <div id="co-applicant" class="accordion-panel collapse marl-40h">
    <header><h1 class="blue">Co-Applicant's Information</h1></header>
    
    <fieldset>
    <h3 class="col col-10 green"> Co-Applicant's Name</em></h3><br><br>
    <section class="col col-4">
    <label class="label"><span style="color:red;">*</span> First Name</label>
    <label class="input">
    <i class="icon-prepend fa fa-user"></i>
    <input type="text" id="firstnameco" name="firstnameco">
    </label>
    </section>
    
    <section class="col col-2">
    <label class="label">Middle Initial</label>
    <label class="input">
    <input type="text">
    </label>
    </section>
    
    <section class="col col-4">
    <label class="label"><span style="color:red;">*</span> Last Name</label>
    <label class="input">
    <i class="icon-prepend fa fa-user"></i>
    <input type="text" id="lastnameco" name="lastnameco">
    </label>
    </section>
    
    <section class="col col-2">
    <label class="label">Suffix</label>
    <label class="select">
    <select>
    <option value="0"> </option>
    <option value="1">Jr</option>
    <option value="2">Sr</option>
    </select>
    <i></i>
    </label>
    </section>
    
    </fieldset>
    
    <fieldset>
    <h3 class="col col-10 green"> Co-Applicant's Address & Contact Information</em></h3><br><br>
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Street Address</label>
    <label class="input"><i class="icon-prepend fa fa-globe"></i>
    <input type="text" id="addressco" name="addressco">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">Street Address - <em>Line 2</em></label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-globe"></i>
    <input type="text">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> City</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-globe"></i>
    <input type="text" id="cityco" name="cityco">
    </label>
    </section>
    
    <section class="col col-3">
    <label class="label"><span style="color:red;">*</span> State</label>
    <label class="select">
    <select id="stateco" name="stateco">
    <option value="0"> </option>
    <option value="1">Alabama</option>
    <option value="1">Alaska</option>
    <option value="2">Arizona</option>
    </select>
    <i></i>
    </label>
    </section>
    
    <section class="col col-3">
    <label class="label"><span style="color:red;">*</span> Zip Code</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-globe"></i>
    <input type="text" id="zipco" name="zipco">
    </label>
    </section>
    
    <section class="col col-5">
    <label class="label"><span style="color:red;">*</span> Daytime Phone Number</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-phone"></i>
    <input type="text" id="phone1co" name="phone1co">
    </label>
    </section>
    
    <section class="col col-2">
    <label class="label">Ext.</label>
    <label class="input">
    <input type="text">
    </label>
    </section>
    
    <section class="col col-5">
    <label class="label"><span style="color:red;">*</span> Evening Phone Number</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-phone"></i>
    <input type="text" id="phone2co" name="phone2co">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> E-mail Address</em></label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-envelope-o"></i>
    <input type="text" id="emailco" name="emailco">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">E-mail Address - <em>Other</em></label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-envelope-o"></i>
    <input type="text">
    </label>
    </section>
    
    </fieldset>
    
    <fieldset>
    <h3 class="col col-10 green"> Co-Applicant's Identity</em></h3><br><br>
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Date of Birth (DOB)</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-calendar"></i>
    <input type="text" id="birthdateco" name="birthdateco">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Residency Statues</label>
    <label class="select">
    <select id="statusco" name="statusco">
    <option value="0"> </option>
    <option value="3">US Citizen</option>
    <option value="1">Non-Permanent Resident Alien</option>
    </select>
    <i></i>
    </labe>
    </section>
    </fieldset>
    
    <fieldset>
    <h3 class="col col-8 green">Co-Applicant's Income and Credit Score</h3><br><br>
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Annual Income</label>
    <label class="select">
    <select id="incomeco" name="incomeco">
    <option value="0"> </option>
    <option value="3">Below $25,000</option>
    <option value="1">$25,001 - $40,000</option>
    </select>
    <i></i>
    </labe>
    </section>
    
    <section class="col col-6">
    <label class="label"><span style="color:red;">*</span> Credit Score - <em>To the best of your knowledge</em></label>
    <label class="select">
    <select id="scoreco" name="scoreco">
    <option value=""></option>
    <option value="3">Below 599</option>
    <option value="1">600 - 620</option>
    </select>
    <i></i>
    </labe>
    </section>
    </fieldset>
    
    <fieldset>
    <h3 class="col col-11 green"> Co-Applicant's Minimum Monthly Debt - <em>Fill all that apply</em></h3><br><br>
    <section class="col col-6">
    <label class="label">Monthly Rent/Mortgage Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">Monthly Car Loan Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">Monthly Credit Card Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    
    <section class="col col-6">
    <label class="label">Monthly Alimony/Child Support Payments</label>
    <label class="input">
    <label class="input"><i class="icon-prepend fa fa-dollar"></i>
    <input type="text">
    </label>
    </section>
    </fieldset>
    </div>
    
    </div>
    </div>
    
    <header><h2 class="blue">Read the Terms and Conditions & click Accept to Continue</h2></header>
    <fieldset>
    <div class="col terms-conditions">
    TERMS AND CONDITIONS
    <p><strong>IMPORTANT INFORMATION ABOUT PROCEDURES FOR OPENING A NEW ACCOUNT</strong></p>
    <p>To help the government fight the funding of terrorism and money laundering activities.....<br></p>
    </div>
    
    <h3 class="col col-11 green"> eMortgage Tech Terms and Conditions</em></h3><br><br>
    <section class="col col-11">
    <label class="label">You Must Agree to eMortgage Tech Terms and Conditions Before Submitting the Application</label>
    <div class="mar25h">
    <div class="inline-group">
    <label class="checkbox"><input type="checkbox" name="checkbox-inline"><i></i><span style="color:red;">*</span> I Accept eMortgage Tech's Terms and Conditions</label>
    </div>
    </div>
    </section>
    </fieldset>
    
    <footer>
    <button type="submit" class="button">Submit</button>
    </footer>
    </form>

  15. #15
    Join Date
    Jul 2013
    Location
    Voorheesville NY USA
    Posts
    776
    You have multiple headers throughout your form. This is html i am not familiar with. Plus div after div after div

    Sorry. Cant help
    JG
    PS - If you're posting here you should be using:

    error_reporting(E_ALL | E_NOTICE);
    ini_set('display_errors', '1');


    at the top of ALL php code while you develop it!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles