Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 725,281 points

Will

Favorite Answers15%
Answers5,762

Future Poli Sci major hopeful, wanting to go to UCLA. Politics and programming interest me it'd be great to find a way to combine the two. I'm a photographer on the side so if you have any photography questions feel more than free to ask me! http://billym.macabreink.com http://www.flickr.com/photos/37868328@N08/

  • PHP Contact Form Question?

    I'm trying to make a contact form that emails. This code used to work and nothing about my server has changed but not so much anymore. If you guys could help I'd greatly appreciate it.

    Code:

    <?php

    $name = $_POST['name'];

    $email = $_POST['email'];

    $subject = $_POST['subject'];

    $message = $_POST['message'];

    $to = "shadow_slayer15@yahoo.com";

    $body =

    <<<EOD

    <br/><hr/><br/>

    Name: $name<br/>

    Email Address: $email<br/>

    Subject: $subject<br/>

    Message: $message<br/>

    EOD;

    $headers = "From: $email\r\n";

    $headers .= "Content-Type: text/html\r\n";

    $success = mail($to, $subject, $body, $headers);

    $win = <<<EOD

    <!DOCTYPE HTML>

    <html>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />

    <title>Thank You for Your Email</title>

    </head>

    <body>

    <div id="header">

    <h2>Craig Spector</h2>

    <nav>

    <ul>

    <li><a href="index.html">Home</a></li>

    <li><a href="read.html">Read</a></li>

    <li><a href="books.html">Books</a></li>

    <li><a href="pov.html">POV</a></li>

    <li><a href="av.html">A/V</a></li>

    <li class="selected"><a href="contact">Contact</a></li>

    </ul>

    </nav>

    <div id="head-gal">

    <a href="http://www.facebook.com/craigspector%22%3E%3Cimg src="images/social-icons/facebook.png" width="100" height="100" alt="Facebook" /></a>

    <a href="http://www.linkedin.com/in/craigspector%22%3E%3Cim... class="mid" src="images/social-icons/linkedin.png" width="100" height="100" alt="Linked In" /></a>

    <a href="http://www.myspace.com/craigspector%22%3E%3Cimg class="left" src="images/social-icons/myspace.png" width="100" height="100" alt="Myspace" /></a>

    </div><!-- end head-gal -->

    </div><!-- end header -->

    <div id="content">

    <div id="inner-content">

    <h2>Thank You for Contacting Me</h2>

    <div class="padding"></div><!-- end padding -->

    </div><!-- end inner content -->

    </div><!-- end content -->

    </body>

    </html>

    EOD;

    echo $win;

    ?>

    1 AnswerProgramming & Design1 decade ago
  • How Long Does an NROTC Scholarship Essay Have to Be?

    I have to write two essays for my NROTC scholarship. How long do they have to be?

    1 AnswerMilitary1 decade ago
  • Navy Not Allowing PT For DEP Recruits?

    I was told by my recruiters today that somebody who wasn't PTing regularly died when he went to boot camp. He did 25 push ups and just died. This apparently led to the Navy not letting DEP Recruits PT anymore. My fellow recruits and I are PTing off of the property across the street because we want to be in good shape for when we get to boot camp but this is a bummer, I loved PT. I was wondering if other sailors could tell me if this is nationwide or just local.

    5 AnswersMilitary1 decade ago
  • Parents, Would You Let Your Kid Wear This?

    Okay to start off, I'm 17. I bought a shirt today (link below) and my mom gave me this *ugh* look. My question to you is, would you let your kid wear this?

    http://img.hottopic.com/is/image/HotTopic/970608_h...

    21 AnswersParenting1 decade ago
  • I have a question about marine recruiting?

    Okay so I sent in my additional information request from the marines website and got called today. Over the phone I more than qualified for the marines and I'm going in for the test. I'm not worried about the test but I'm comparing the marines and navy to see which is better for me and I'm wondering if taking this test locks me into the marines or do I still have a chance to talk to navy recruiting?

    2 AnswersMilitary1 decade ago
  • How to dynamically display content via jQuery?

    I have a lightbox feature in my online portfolio. I want it to display the image someone clicks. I've gotten far enough that the background darkens and the lightbox panel with content pops up but I can't get it to display the picture. I looked all over for tutorials to help me do this, but they're all hard to follow. This is really starting to annoy me so if anyone could please provide some insight on how to do this or point me to a tutorial I didn't find, that would be amazing.

    2 AnswersProgramming & Design1 decade ago
  • Resources on the web for computer programming careers?

    I just need some websites about the job opportunities for computer programming and design for the future. Web development and design is also needed.

    1 AnswerTechnology1 decade ago
  • PHP Contact Form Problems?

    I'm having one small problem with my PHP contact form. I have it set up, but when I submit something, it gives off this line:

    ' . "\r\n" . 'Reply-To:' . $email; mail($emailTo, $subject, $body, $headers); $emailSent = true; } } ?>

    Here is the source code:

    if(isset($_GET['submit'])) {

    //Check to make sure that the name field is not empty

    if(trim($_GET['name']) == '') {

    $hasError = true;

    } else {

    $name = trim($_POST['name']);

    }

    //Check to make sure that the subject field is not empty

    if(trim($_GET['subject']) == '') {

    $hasError = true;

    } else {

    $subject = trim($_POST['subject']);

    }

    //Check to make sure sure that a valid email address is submitted

    if(trim($_GET['email']) == '') {

    $hasError = true;

    } else if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,4}$", trim($_GET['email']))) {

    $hasError = true;

    } else {

    $email = trim($_GET['email']);

    }

    //Check to make sure comments were entered

    if(trim($_GET['comments']) == '') {

    $hasError = true;

    } else {

    if(function_exists('stripslashes')) {

    $comments = stripslashes(trim($_GET['comments']));

    } else {

    $comments = trim($_GET['comments']);

    }

    }

    //If there is no error, send the email

    if(!isset($hasError)) {

    $emailTo = 'shadow_slayer15@yahoo.com';

    $body = "Name: $name \n\nEmail: $email \n\nSubject: $subject \n\nComments:\n $comments";

    $headers = 'From: My Site <'.$emailTo.'>' . "\r\n" . 'Reply-To:' . $email;

    mail($emailTo, $subject, $body, $headers);

    $emailSent = true;

    }

    }

    Thanks for the help everyone!

    4 AnswersProgramming & Design1 decade ago
  • IE CSS Help (20 characters)?

    I have this website I'm making for someone, it's easier to show you what's going on rather than to try to explain it. You'll notice the label and h1 tags are showing up twice, I haven't the slightest clue why. The link to it is: http://phpsite.macabreink.com/form.html .

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...

    <html xmlns="http://www.w3.org/1999/xhtml%22%3E

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

    <title>Form Sheet</title>

    <style type="text/css">

    body {

    font: .8em/1.8em veranda, arial, sans-serif;

    background-color: #05357A;

    margin-left: 50px;

    margin-right: 100px;

    }

    #content {

    border-left: 1px solid #711515;

    border-right: 1px solid #711515;

    border-bottom: 1px solid #711515;

    padding: 10px 5px 6px 5px;

    background-color: #fff;

    height: 100%;

    }

    #content h1 {

    font-size: 2.2em;

    color: #333;

    background-color: transparent;

    text-align: center;

    padding-bottom: 20px;

    line-height: 0;

    padding: 0;

    }

    ul#tabnav {

    list-style-type: none;

    margin: 0;

    padding-left: 40px;

    padding-bottom: 24px;

    border-bottom: 1px solid #555;

    font: bold 11px veranda, arial, sans-serif;

    }

    ul#tabnav li {

    float: left;

    height: 21px;

    background-color: #666;

    color: #FFFFFF;

    margin: 2px 2px 0 2px;

    border-left: 1px solid #111;

    border-bottom: 1px solid #777;

    border-top: 1px solid #000;

    border-right: 1px solid #444;

    }

    ul#tabnav a:link, ul#tabnav a:visited {

    display: block;

    background-color: transparent;

    color: #000;

    text-decoration: none;

    padding: 4px;

    width: 100px;

    font-size: 1.3em;

    }

    ul#tabnav a:hover {

    background-color: #999;

    color: #fff;

    }

    body#form li.part1, body#content li.contact, body#articles li.articles, body#buy li.buy {

    border-bottom: 1px solid #333;

    color: #000000;

    background-color: #FFFFFF;

    float: left;

    margin-left: 10px;

    display: inline; /* <---Solution for bug IE6 */

    }

    body#form li.part1 a:link, body#part1 li.part1 a:visited, body#content li.part2 a:link, body#content li.part2 a:visited, body#part3 li.part3 a:link, body#part3 li.part3 a:visited, body#part4 li.part4 a:visited {

    color: #000000;

    background-color: #FFFFFF;

    }

    #content {

    border: 1px solid #666;

    border-top: none;

    padding: 10px 5px 6px 5px;

    }

    body#form {

    background-color: #036;

    }

    input {

    border: 1px solid #009;

    background-color: #999;

    }

    #search {

    width: 55%;

    padding: 0;

    line-height: 0;

    height: 30px;

    float: right;

    }

    </style>

    </head>

    <body id="form">

    <ul id="tabnav">

    <li class="part1"><a href="#">Part 1</a></li>

    <li class="part2"><a href="#">Part 2</a></li>

    <li class="part3"><a href="#">Part 3</a></li>

    <li class="part4"><a href="#">Part 4</a></li>

    </ul>

    <div id="content">

    <div id="search">

    <form method="get" action="#" id="search" />

    <input type="text" id="search" name="search" value="search" />

    <br />

    <br />

    </div>

    <!-- end search div -->

    <h1>Part 1</h1>

    <form id="checkbox" action="#" method="post" />

    <label>Offer Letter Signed</label>

    <input type="checkbox" id="lett_sign" name="lett_sign" />

    <br />

    <label>Resume</label>

    <input type="checkbox" id="resume" name="resume"/>

    <br />

    <br />

    <input type="submit" name="submit" value="Submit" id="submit" />

     

     

     

    <input type="reset" name="reset" value="Reset" id="reset" />

    </form>

    </div>

    </body>

    </html>

    That's the code for it.

    2 AnswersProgramming & Design1 decade ago
  • Hit my head earlier today, now I have a slight headache?

    Ok, this kind of thing doesn't usually happen but, I was sitting next to someone, me, this dude, and a group of girls. I ended up pissing him off and got thrown into the chairs behind me. Hit the base of my head, top of the neck, on the muscle (pretty sure it was the muscle). I feel pissed enough something like this happened to me, but I'm worried that I might have gotten a concussion or something, should I be worried? I'm not dizzy, I remembered where I was, the date, our current president, my name, and my age, date of birth, etc right after it happened (some other friends took care of the dude for me) and I'm not really dizzy or nauseous. It's just a slight headache at the base of my head, top of my neck. Please help. Also remember the thing I hit my head on was plastic connected to metal about 7'' lower, head never touched the metal.

    3 AnswersInjuries1 decade ago
  • PHP includes help (20 Characters)?

    Ok, I know how to use the built in include function, but it says the path for line 49 is wrong, there isn't even a line 49.

    Code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitiona...

    <html xmlns="http://www.w3.org/1999/xhtml%22 xml:lang="en" lang="en">

    <head>

    <title>HTML Form All Validated</title>

    </head>

    <body>

    <?php

    include 'QuickForm2.php';

    $form = new QuickForm2('Create', 'post', basename(__FILE__));

    $opts = array('size' => 20, 'maxlength' => 255);

    $form -> addElement('static', 'header', 'null',

    '<h1>Register</h1'

    );

    $form->addElement('text', 'first_name', 'First Name', $opts);

    $form->addElement('text', 'last_name', 'Last Name', $opts);

    $form->addElement('text', 'login', 'Login Name', $opts);

    $form->addElement('password', 'password', 'Password', $opts);

    $form->addElement('text', 'email', 'E-Mail', $opts);

    $form->addElement('static', 'valid', null,

    '<strong>E-Mail address must be valid, and will only be'.

    'used for account verification.</strong>'

    );

    $form->addElement('textarea', 'signature', 'Signature',

    array('rows' => 10, 'cols' => 20));

    $form->addElement('file', 'avatar', 'Avatar Image');

    $form->addElement('static', 'reqs', null,

    '<strong>Image <em>must</em> be no more than 64x64 pixels' .

    'in size</strong>'

    );

    $form->addElement('submit', 'register', "Register Now!");

    $formsource = $form->toHtml();

    ?>

    </body>

    </html>

    2 AnswersProgramming & Design1 decade ago
  • If you hear your kids curse?

    What do you do, not talking about cursing at you, but cursing in general.

    12 AnswersParenting1 decade ago
  • Tattoo Age Question?(20 characters)?

    Anywhere in America (any state) can you get a tattoo when you're under 18 if you have parental permission? I've had the idea in my head for four years and I'm ready to get the tattoo.

    4 AnswersTattoos1 decade ago
  • Any tips on getting over a girl?

    My girlfriend left for Pittsburgh, she was visiting, things took off, blah blah, well, I thought I was over her until I saw a pic of her, was talking to a friend and I made a list of girls, mentioned her twice, well it turns out she's still on my mind. How the heck do I get her off my freaking mind man, it's obviously over, I know it is, but how lol

    1 AnswerSingles & Dating1 decade ago
  • It's killing me inside?

    I recently fell in love with my sister's friend. We've known each other for year. I'm a 6'1'' guitarist agnostic and she's a 5'8'' dancer (ballerina) Liberal Quaker. She's 14 and I'm 16. We just spoke more and hung out more, basically three days of dating. We started the first day with the beach, we walked six miles to a pier (lol didn't know it costs a buck to get on) and then we walked 6 back. We really got to know each other then. Her Dad and his friend drove us home, I took her to my house (three doors down and across the street) and I cooked her breakfast for dinner, something she loves. We cooked together, ate together, and spoke more. The second day her dad took us to marina's and stuff to get boat supplies, we were left in the back of a Ford F-250 together and we leaned close together and sat there. I looked at her and she looked at me and we kissed. Her dad caught us, didn't even care. Our parents have been friends for eight years, he loves me. Every stop we made we kissed, and when he was driving we held hands. When we got home we watched a movie together (my parents were in the room too) and she and I held hands again. The third day I didn't see her as much because she was with a friend, that's cool, her friend and her friend's mom brought her to the dock where I drove the boat to, and she got in, we went for a short drive and then she had to pack up and go back to Pittsburgh, Pennsylvania. She used to live near us and visits every summer, she's going to boarding school in Iowa (a Quaker school) and It's killing me. Her not being here just feels like somethings missing. Like part of me died inside. We did everything together and became so close, told each other about our not so stellar (horrible) pasts. Bottom line is I hugged her goodbye and didn't get to kiss her goodbye. She means so much to me, I love her. I miss her so much it's actually depressing. I probably sound like a sap or something, but does someone have ANY advice? I'm dying here!!!

    1 AnswerSingles & Dating1 decade ago
  • Unquenchable thirst and nausea when I eat?

    For the past day I've been really thirsty and not wanted to eat anything. I've had one hot dog with no bun, an ice cream cone, and three small cookies. If it helps, I made out with a girl about a day ago, this all started then. I've been slightly depressed since she left because she's amazing and we both care about each other a lot, considering going to school at a boarding school out of state with her. But could the depression be the issue? Could I have gotten something from kissing her? Could it be diabetes? Help please?

    Thank you,

    -Billy

    1 AnswerOther - Health1 decade ago
  • If a son and a girl he brought home went up to his room alone?

    Would you tell them to come downstairs? I went to the beach with a girl today, someone I have known since she was 6 and I was 8, she's 14 now and I'm 16 and my Mom made us come downstairs, which is fine, I understood her concern, but couldn't she have a little more trust in both of us?

    3 AnswersSingles & Dating1 decade ago
  • More PHP help (20 characters)?

    Hey, every time I try this code it gives me problems. I'm using a Site Point book, so it's done by an expert. At first I copied it myself and after that I copied it and pasted it right out of the e-book (PDF).

    Here's the code:

    <?php

    mysql_query(query[, connection_id])

    $sql = 'CREATE TABLE joke (

    id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,

    joketext TEXT,

    jokedate DATE NOT NULL

    )';

    if (@mysql_query($sql)) {

    echo '<p>joke table successfully created!</p>';

    }

    else {

    exit ('<p>Error creating joke table: '.

    mysql_error() .'</p>');

    }

    ?>

    It gives me the following message when I refresh the page:

    Parse error: syntax error, unexpected '[' in /home/content/s/h/a/shadeaux/html/phpsite/mysqlcon.php on line 33.

    I'm at a loss here, could someone please help?

    4 AnswersProgramming & Design1 decade ago
  • How do I put music on my website?

    Take the site http://www.evanescence.com/ for example, there's no player but there's music on the website. I have racked my brain and Googled this and haven't found any solutions. Could anyone here help me?

    2 AnswersProgramming & Design1 decade ago