mindiapolis's Profile User Rating: -----

Reputation: -4 Dishonored
Active Members
Active Posts:
185 (0.11 per day)
31-October 11
Profile Views:
Last Active:
User is offline Feb 01 2016 07:25 PM

Previous Fields

Dream Kudos:
Icon   mindiapolis has not set their status

Posts I've Made

  1. In Topic: background color not extending

    Posted 29 Jan 2016

    That worked, thank you so much!

    View Postandrewsw, on 29 January 2016 - 11:12 PM, said:

    One way is to add overflow: auto to #portfolio.
  2. In Topic: background color not extending

    Posted 29 Jan 2016

    I think i understand, but with the rest of the code, they need to float. I'm not sure how to handle that.
  3. In Topic: sending email from form

    Posted 15 Dec 2015

    I'm not understanding your comment. I posted the entire form code. I want the content of mail section to be mailed after the form is submitted.
  4. In Topic: sending email from form

    Posted 15 Dec 2015

    I am sorry for the miscommunication. The entire form is below.
    ini_set('display_errors', 'On');
    function outputErrors($sql_errors)
     foreach($sql_errors as $name => $msgs)
      echo('<h4 class="error">' . $name . ': ' . $msgs . '</h4>' . PHP_EOL);
     $sql_errors = array();
     $mysqli = databaseConnection();
     if(!$stmt = $mysqli->prepare("INSERT INTO clients(fname, lname, orgName, address, city, state, zipcode, phone, fax, email, confirmEmail, projectOptions, projectOverview, year) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"))
      $sql_errors["Prepare"] = $mysqli->error . PHP_EOL;
      if(!$stmt->bind_param('ssssssiiissisi', $_POST["fname"], $_POST["lname"], $_POST["orgName"], $_POST["address"], $_POST["city"], $_POST["state"], $_POST["zipcode"], $_POST["phone"], $_POST["fax"], $_POST["email"], $_POST["confirmEmail"], $_POST["projectOptions"], $_POST["projectOverview"], $_POST["year"]))
       $sql_errors["bind_param"] = $stmt->error . PHP_EOL;
        $sql_errors["execute"] = $stmt->error . PHP_EOL;
    $admin = "[email protected]"; 
    $from = $_POST['email']; 
    $subject = "inquiry about Media Services Unlimited";
    $message  = $_POST['projectOverview']."\r\n";
    //$message  .= "$_POST['projectOptions'].\r\n";
    //$projectOptions = $_POST['projectOptions'];
    $headers = "From: $from" . "\r\n" .
    "Reply-To: $from" . "\r\n" .
    'X-Mailer: PHP/' . phpversion();
    //add variables  from form 
    if(mail($admin, $from, $subject, $message, $headers)){
       echo "thank you";
    } else {
    if($_POST['submit']) {
    	mail($admin, $from, $subject, $message, $headers);
    <!doctype html>
    <html lang="en">
    <meta charset="utf-8">
    <title>Untitled Document</title>
    <style type="text/css">
      color: #FF0000;
     <?php if(isset($sql_errors) && sizeof($sql_errors) > 0) outputErrors($sql_errors);?>
     <form action="mailForm.php" method="post">
       <input id="fname" type="text" name="fname" size="15" placeholder="First Name" value ="<?php echo isset($_POST['fname']) ? $_POST['fname'] : '';?>" >
       <input type="text" name="lname" size="20" placeholder="Last Name"><?php echo !empty($error['lname']) ? $error['lname'] : '';?>
       <input type="text" name="orgName" placeholder="Organization's Name"maxlength="50">
      </label><br />
      <label> <!--new row -->
       <input id="address" type="text" name="address" size="15" placeholder="Street Addresss" maxlength="50">
       <input id="city" type="text" name="city" placeholder="City" size="10" maxlength="25">
       <select id="state" name="state" placeholder="State" value="">
        <option value ="">Please choose a state</option>
        <?php states($state); ?>
       <input id = "zipcode" type="number" name="zipcode" placeholder="Zip Code" size="5" maxlength="5">
      </label><br />
      <label> <!--new row -->
       <input type="text" name="phone" placeholder="Phone Number:(including area code)" size="10" maxlength="10">
       <input type="text" name="fax" size="10" placeholder="Fax Number: (including area code)" maxlength="10">
      </label><br />
      <label> <!--new row-->
       <input type="text" id = "email" name="email" placeholder="Email Address" />
       <input type="text" id = "confirmEmail" name="confirmEmail" placeholder="Confirm Email Address" />
      </label><br />
      <label> <!--new row -->
       What would you like help with?
       <table id="projectOptions">
        <tr span=2>
         <td><input type="checkbox" name="SocialMedia">Social Media</td>
         <td><input type="checkbox" name="WebContentManagement">Web Content Management</td>
         <td><input type="checkbox" name="MarketingMaterials">Marketing Material Creation</td>
         <td><input type="checkbox" name="SEO">SEO (Search Engine Optimization)</td>
         <td><input type="checkbox" name="VideoEditing"> Video Editing</td>
         <td><input type="checkbox" name="WebDesign">Web Design</td>
      Overview about the project:<textarea name="projectOverview"rows="5" cols="10" placeholder="Overview of Project"></textarea><br />
      If you are not a robot, what year is it? <input type="text" name="year" size="4" maxlength="4"><br />
      <input type="submit" name="submit" value="Contact Me!">
      <input type="reset" name="reset" value="Cancel">
  5. In Topic: sending email from form

    Posted 15 Dec 2015

    Oh ok, thanks for explaining that. Would it be too much to ask what I would put in the form section of the page.

My Information

Member Title:
D.I.C Head
Age Unknown
Birthday Unknown

Contact Information



mindiapolis hasn't added any friends yet.


mindiapolis has no profile comments yet. Why not say hello?