Why won't this form submit?

Why won't the form on this page submit?
www.milesmemorials.com/contact.html
Php for this form is-
<?php
$name = $_POST['name'];
$visitor_email = $_POST['email'];
$message = $_POST['message'];
//Validate first
if(empty($name)||empty($visitor_email))
    echo "Name and email are mandatory!";
    exit;
if(IsInjected($visitor_email))
    echo "Bad email value!";
    exit;
$email_from = "milesmemorials.com";//<== update the email address
$email_subject = "Message from Miles Memorial contact form";
$email_body = "Visitors name: $name.\n".
     "Message:\n $message".
$to = "[email protected]";//<== update the email address
$headers = 'From: '.$visitor_email."\r\n";
$headers .='Reply-To:'.$visitor_email."\r\n";
//Send the email!
mail($to,$email_subject,$email_body,$headers);
//done. redirect to thank-you page.
header('Location: thankyou.html');
// Function to validate against any email injection attempts
function IsInjected($str)
  $injections = array('(\n+)',
              '(\r+)',
              '(\t+)',
              '(%0A+)',
              '(%0D+)',
              '(%08+)',
              '(%09+)'
  $inject = join('|', $injections);
  $inject = "/$inject/i";
  if(preg_match($inject,$str))
    return true;
  else
    return false;
?>

>I do apologise if i seem slow, i am still very new to dreamweaver
Just to be clear, this is not an issue with learning dreamweaver. This is just a lack of understanding of HTML and PHP. You need to learn those first before trying to learn DW.
You have a form field named 'donorName' but are checking for a field named 'name'.
$name = $_POST['name'];
<input name="donerName" type="text"
You need to rename one or the other.

Similar Messages

  • Functions in a For Loop defining objects from an Array. . .Why Won't This Work?!

    I'm trying to put these functions into a Loop to conserve
    space. Why won't this work?
    .

    Yeah, sly one is right. You can not have the "i" inside the
    onRollOver function, what you have to do is: As the movieClip class
    is dynamic you can create a property of the movieClip which stores
    the value if the "i". And then, inside the onRollOver function, you
    have to make reference to that property.
    for (i=0; i<2; i++) {
    this.regArray
    .iterator = i;
    this.regArray.onRollOver = function () {
    showRegion(regArray[this.iterator]);
    this.regArray
    .onRollOut = function () {
    hideRegion(regArray[this.iterator]);

  • Help...Why won't this compile?

    Why won't this compile?
    Here is my code:
    import java.util.Calendar;
    import javax.swing.JOptionPane;
    public class GetAge{
    public static void main(String[] args){
    int month=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what month(MM) you were born:"));
    int day=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what day(dd) you were born:"));
    int year=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what year(yyyy) you were born:"));
    Calendar rightNow = Calendar.getInstance();
    int year2 = rightNow.get(Calendar.YEAR);
    int day2 = rightNow.get(Calendar.DATE);
    int month2 = rightNow.get(Calendar.MONTH)+1;
    int years = year2-year-1;
    int months = month2-month+12;
    if(day2 >= day)
       int days = day2-day;
    else
       days = day-day2+8;
    JOptionPane.showMessageDialog(null,"You are: " + years
    + " years " + months + " months and " + days + " days old.");
    }

    What you're doing is using days after the if statement; without curly braces only a valid statement is allowed.
    But if you add curly braces, days will be available only in the if block.
    So what you should do is:
    import java.util.Calendar;
    import javax.swing.JOptionPane;
    public class GetAge{
    public static void main(String[] args){
    int month=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what month(MM) you were born:"));
    int day=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what day(dd) you were born:"));
    int year=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what year(yyyy) you were born:"));
    Calendar rightNow = Calendar.getInstance();
    int year2 = rightNow.get(Calendar.YEAR);
    int day2 = rightNow.get(Calendar.DATE);
    int month2 = rightNow.get(Calendar.MONTH)+1;
    int years = year2-year-1;
    int months = month2-month+12;
    int days = 0;      //declare here
    if(day2 >= day)
       days = day2-day;  //...and use here
    else
       days = day-day2+8;   //..and here
    JOptionPane.showMessageDialog(null,"You are: " + years
    + " years " + months + " months and " + days + " days old.");
    }

  • I purchased the new gen 7 ipod nano and needed to update itunes to 10.7 but my current software says its up to date and won't download 10.6.8 Currently I have 10.5.8 Why won't this update?

    I purchased the new gen 7 ipod nano and needed to update itunes to 10.7 but my current software says its up to date and won't download 10.6.8 Currently I have 10.5.8 Why won't this update?

    The first generation Intel-based Mac's were released in January 2006.
    Snow Leopard requires an Intel processor:
    General requirements
    Mac computer with an Intel processor
    1GB of memory
    5GB of available disk space
    DVD drive for installation
    Some features require a compatible Internet service provider; fees may apply.
    If you go to the Apple menu & "About this Mac" this will tell you what type of processor you have:

  • Why won't this song play even after I authorized the computer? It says that I need to authorize the computer, then I enter my username and password and it says the computer is already authorized. But then the song still won't play. What do I do?

    Why won't this song play even after I authorized the computer? It says that I need to authorize the computer, then I enter my username and password and it says the computer is already authorized. But then the song still won't play. What do I do?

    Use the Apple ID support -> http://www.apple.com/support/appleid/ - click through the contact information and select the iTunes, etc., hot button. You can have Apple call you or email them.
    Clinton

  • Why won't this contact form work?

    Hi All,
    Ok so i decided to update the contact form of page below as i was using the out dated spry validation method. I inserted the new contact form using webassist dreamweaver extension but i am now having big problems with this page. I am now unable to even open the page, please use link below to see the page error and i have also pasted the code of this page.
    http://www.milesfunerals.com/contact.php
    <?php virtual("/webassist/form_validations/wavt_scripts_php.php"); ?>
    <?php virtual("/webassist/form_validations/wavt_validatedform_php.php"); ?>
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Miles &amp; Daughters | Contact us by email or phone</title>
    <meta name="description" content="Contact us and speak to any of our friendly staff if you have any enquiries or if you would prefer you can contact us by email. You can also see pictures of all five of our branches. ">
    <meta name="keywords" content="contact, questions, enquiries, friendly, email, addresses, write, funeral home, branches, reading, wokingham, crowthorne, twyford, bracknell">
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link href="/stylesheet.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="fancyBox/source/jquery.fancybox.css?v=2.1.5" type="text/css" media="screen" />
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <script type="text/javascript" src="fancyBox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
    <script type="text/javascript">
    $(document).ready(function() {
    $('.fancybox').fancybox();
    </script>
    <style type="text/css">
    #sprytextfield2{
               form input[type=text] {width: 75%}
    textarea {width: 85%}
    #sprytextfield1{
               form input[type=text] {width: 75%}
    textarea {width: 85%}
    </style>
    <LINK REL="SHORTCUT ICON" HREF="http://www.milesmemorials.com/favicon.ico">
    <script src="/webassist/progress_bar/jquery-blockui-formprocessing.js" type="text/javascript"></script>
    <link href="/SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <script src="/SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="/webassist/forms/wa_servervalidation.js" type="text/javascript"></script>
    <link href="/webassist/forms/fd_basic_default.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <div id="container">
    <?php include('includes/header.php'); ?>
    <?php include('includes/navbar2.php'); ?>
    <?php include('includes/navbar.php'); ?>
    <?php include('includes/sidebar.php'); ?>
    <div id="maindiv" class="maindiv_scroll">
      <p> </p>
      <p> </p>
        <p class="subheading">Miles and Daughters - Contact us</p>
      <p class="sub2">Addresses and telephone numbers for our offices are:</p>
    <p class="maintext"> </p>
    <p class="wokingham"><span class="address"><a class="fancybox" href="images/Isabella house.jpg" title="Miles & Daughters Winnersh Premises"><img src="images/Isabella house.jpg" alt="Miles &amp; Daughters Wokingham premisesh" width="297" height="263" class="shop"/></a></span> </p>
    <p class="wokingham"> </p>
    <p class="wokingham">Wokingham</p>
    <p class="address">Isabella House  </p>
    <p class="address">498a Reading Road</p>
      <p class="address"> Winnersh </p>
      <p class="address">Berkshire</p>
      <p class="address"> RG41 5EX</p>
      <p class="address"> Telephone: 0118 979 3004</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"><a class="fancybox" href="images/cav-1.jpg" title="Miles & Daughters Reading Premises"><img src="/images/cav-1.jpg" alt="Miles &amp; Daughters Reading premises" width="380" height="321" class="shop"/></a></p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="wokingham">Reading</p>
    <p class="address">Tamela House</p>
      <p class="address">157-161 Caversham Road</p>
      <p class="address">Reading</p>
      <p class="address">Berkshire</p>
      <p class="address">RG1 8BB</p>
      <p class="address">Telephone: 0118 959 0022</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"><a class="fancybox" href="images/Ivydene2.jpg" title="Miles & Daughters Binfield Premises"><img src="images/Ivydene2.jpg" alt="Miles &amp; Daughters Bracknell premises" width="380" height="267" class="shop"/></a></p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham">Bracknell</p>
      <p class="address">Ivydene House</p>
      <p class="address">Forest Road</p>
      <p class="address">Binfield</p>
      <p class="address">Bracknell</p>
      <p class="address">RG42 4HP</p>
      <p class="address">Telephone: 01344 452020  </p>
      <p class="wokingham"><span class="address"><a class="fancybox" href="images/twford.jpg" title="Miles & Daughters Twyford Premises"><img src="images/twford.jpg" alt="Miles &amp; Daughters Twyford premises" width="263" height="317" class="shop"/></a></span></p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
      <p class="wokingham">Twyford</p>
    <p class="address">The Old Clock House</p>
      <p class="address">Station Road</p>
      <p class="address"> Twyford</p>
      <p class="address">Berkshire </p>
      <p class="address">RG10 9NS</p>
      <p class="address"> Telephone: 0118 934 5474</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"><a class="fancybox" href="images/crowthorne.jpg" title="Miles & Daughters Crowthorne Premises"><img src="images/crowthorne.jpg" alt="Miles &amp; Daughters Crowthorne premises" width="362" height="239" class="shop"/></a></p>
      <p class="wokingham"> </p>
      <p class="wokingham"> </p>
        <p class="wokingham">Crowthorne</p>
    <p class="address">Alicya House</p>
      <p class="address">105 High Street</p>
      <p class="address"> Crowthorne</p>
      <p class="address">Berkshire </p>
      <p class="address">RG45 7AD</p>
      <p class="address"> Telephone: 01344 774932</p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="address"> </p>
      <p class="endtext"> </p>
      <p class="endtext"> </p>
      <p class="maintext">You may email us or alternatively use the form below to contact us, one of our members of staff will respond as soon as possible.  </p>
      <p> </p>
      <div id="SimpleContact_Basic_Default_ProgressWrapper">
        <form class="Basic_Default" id="SimpleContact_Basic_Default" name="SimpleContact_Basic_Default" method="post" action="form-to-email.php">
          <!--
    WebAssist CSS Form Builder - Form v1
    CC: Contact
    CP: Simple Contact
    TC: Basic
    TP: Default
    -->
          <ul class="Basic_Default">
            <li>
              <fieldset class="Basic_Default" id="Contact_me">
                <legend class="groupHeader">Contact</legend>
                <ul class="formList">
                  <li class="formItem"> <span class="fieldsetDescription"> Required * </span> </li>
                  <li class="formItem">
                    <div class="formGroup">
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <label for="Full_Name" class="sublabel" > Name:<span class="requiredIndicator"> *</span></label>
                          <div class="errorGroup">
                            <div class="fieldPair">
                              <div class="fieldGroup"> <span id="Full_Name_Spry"> <span>
                                <input id="Full_Name" name="Full_Name" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Full_Name"):"")); ?>" class="formTextfield_Large" tabindex="1" onBlur="hideServerError('Full_Name_ServerError');">
                                <span class="textfieldRequiredMsg">Please enter your name</span> </span> </span>
                                <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "1" . ",") !== false || "1" == ""))  {
        if (!(false))  {
    ?>
                                  <span class="serverInvalidState" id="Full_Name_ServerError">Please enter your name</span>
                                  <?php //WAFV_Conditional form-to-email.php formtoemail(1:)
    }?>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <label for="Email_Address" class="sublabel" > Email:<span class="requiredIndicator"> *</span></label>
                          <div class="errorGroup">
                            <div class="fieldPair">
                              <div class="fieldGroup"> <span id="Email_Address_Spry"> <span>
                                <input id="Email_Address" name="Email_Address" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Email_Address"):"")); ?>" class="formTextfield_Large" tabindex="2" onBlur="hideServerError('Email_Address_ServerError');">
                                <span class="textfieldInvalidFormatMsg">Invalid format.</span><span class="textfieldRequiredMsg">Please enter a full email address</span> </span> </span>
                                <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "2" . ",") !== false || "2" == ""))  {
        if (!(false))  {
    ?>
                                  <span class="serverInvalidState" id="Email_Address_ServerError">Please enter a full email address</span>
                                  <?php //WAFV_Conditional form-to-email.php formtoemail(2:)
    }?>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <label for="Comments" class="sublabel" > Comments:</label>
                          <div class="errorGroup">
                            <div class="fieldPair">
                              <div class="fieldGroup"> <span>
                                <textarea name="Comments" id="Comments" class="formTextarea_Medium" rows="1" cols="1" tabindex="3"><?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Comments"):"")); ?></textarea>
                              </span> </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </li>
                  <li class="formItem">
                    <div class="formGroup">
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <div class="fullColumnGroup">
                            <label for="Security_Code" class="sublabel" > </label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span> <img src="/webassist/captcha/wavt_captchasecurityimages.php?field=Security_Code&amp;noisefreq= 15&amp;noisecolor=060606&amp;gridcolor=080808&amp;font=fonts/MOM_T___.TTF&amp;textcolor=04 0404" alt="Security Code" class="Captcha"> </span> </div>
                              </div>
                            </div>
                          </div>
                          <div class="fullColumnGroup" style="clear:left;">
                            <label for="Security_Code" class="sublabel" > Security code:<span class="requiredIndicator"> *</span></label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span id="Security_Code_Spry"> <span>
                                  <input id="Security_Code" name="Security_Code" type="text" value="" class="formTextfield_Large" tabindex="4" onBlur="hideServerError('Security_Code_ServerError');">
                                  <span class="textfieldRequiredMsg">Entered text does not match; please try again</span> </span> </span>
                                  <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "3" . ",") !== false || "3" == ""))  {
        if (!(false))  {
    ?>
                                    <span class="serverInvalidState" id="Security_Code_ServerError">Entered text does not match; please try again</span>
                                    <?php //WAFV_Conditional form-to-email.php formtoemail(3:)
    }?>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="lineGroup">
                        <div class="fullColumnGroup">
                          <div class="fullColumnGroup">
                            <label for="Security_Answer_2" class="sublabel" > </label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span> <span class="precedingText">
                                  <?php virtual("/webassist/captcha/wavt_captchasecurityquestion.php"); ?>
                                </span> </span> </div>
                              </div>
                            </div>
                          </div>
                          <div class="fullColumnGroup" style="clear:left;">
                            <label for="Security_Answer" class="sublabel" > Answer:<span class="requiredIndicator"> *</span></label>
                            <div class="errorGroup">
                              <div class="fieldPair">
                                <div class="fieldGroup"> <span id="Security_Answer_Spry"> <span>
                                  <input id="Security_Answer" name="Security_Answer" type="text" value="" class="formTextfield_Large" tabindex="5" onBlur="hideServerError('Security_Answer_ServerError');">
                                  <span class="textfieldRequiredMsg">Incorrect
                                    response; please try again</span> </span> </span>
                                  <?php
    if (ValidatedField('formtoemail','formtoemail'))  {
      if ((strpos((",".ValidatedField("formtoemail","formtoemail").","), "," . "4" . ",") !== false || "4" == ""))  {
        if (!(false))  {
    ?>
                                    <span class="serverInvalidState" id="Security_Answer_ServerError">Incorrect
                                      response; please try again</span>
                                    <?php //WAFV_Conditional form-to-email.php formtoemail(4:)
    }?>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </li>
                  <li class="formItem"> <span class="buttonFieldGroup" >
                    <input id="Hidden_Field" name="Hidden_Field" type="hidden" value="<?php echo((isset($_GET["invalid"])?ValidatedField("formtoemail","Hidden_Field"):"")); ?>">
                    <input class="formButton" name="SimpleContact_submit" type="submit" id="SimpleContact_submit" value="Contact me"  onClick="clearAllServerErrors('SimpleContact_Basic_Default')">
                  </span> </li>
                </ul>
              </fieldset>
            </li>
          </ul>
        </form>
      </div>
      <div id="SimpleContact_Basic_Default_ProgressMessageWrapper" class="blockUIOverlay" style="display:none;">
        <script type="text/javascript">
    WADFP_SetProgressToForm('SimpleContact_Basic_Default', 'SimpleContact_Basic_Default_ProgressMessageWrapper', WADFP_Theme_Options['BigSpin:Slate']);
        </script>
        <div id="SimpleContact_Basic_Default_ProgressMessage" >
          <p style="margin:10px; padding:5px;" ><img src="/webassist/progress_bar/images/slate-largespin.gif" alt="" title="" style="vertical-align:middle;" />  Please wait</p>
        </div>
      </div>
      <p class="maintext"> </p>
    </div>
    <?php include('includes/footer.php'); ?>
    </div>
    <script type="text/javascript">
    var Full_Name_Spry = new Spry.Widget.ValidationTextField("Full_Name_Spry", "none",{validateOn:["blur"]});
    var Email_Address_Spry = new Spry.Widget.ValidationTextField("Email_Address_Spry", "email",{validateOn:["blur"]});
    var Security_Code_Spry = new Spry.Widget.ValidationTextField("Security_Code_Spry", "none",{validateOn:["blur"]});
    var Security_Answer_Spry = new Spry.Widget.ValidationTextField("Security_Answer_Spry", "none",{validateOn:["blur"]});</script>
    </body>
    </html>

    Might want to have a look at this form below. It's similar to yours but no styling - you'd need to use some css to style it up a bit. It's just the raw html/php coding. The form action="form_send.php" - basically save the code to a Dreamweaver document named form_send.php and send the information back to the page to be processed.
    <?php
    $number_1 = rand(1, 9);
    $number_2 = rand(1, 9);
    $answer = md5($number_1+$number_2);
    if(isset($_POST['submit'])) {
    // get the name from the form 'name' field
    $name = trim($_POST['name']);
    if (empty($name)) {
    $error['name'] = "<span>Please provide your name</span>";
    // get the email from the form 'email' field
    $email = trim($_POST['email']);
    if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
    $error['email'] = "<span>Please provide a valid email address</span>";
    // get the comments from the form 'comments' field 
    $comments = trim($_POST['comments']);   
    if (empty($comments)) {
    $error['comments'] = "<span>Please provide your comments</span>";
    // security against spam   
    $user_answer = trim(htmlspecialchars($_POST['user_answer']));
    $answer = trim(htmlspecialchars($_POST['answer']));
    if (md5($user_answer) != $answer) {
        $error['answer'] = "<span>Wrong answer - please try again</span>";
    // if no errors send the form   
    if (!isset($error) && md5($user_answer) == $answer) {
    $to = '[email protected]'; // send to recipient
    $from = '[email protected]'; // from your domain
    $subject = 'Response from website';
    $message = "From: $name\r\n\r\n";
    $message .= "Email: $email\r\n\r\n";
    $message .= "Comments: $comments";
    $headers = "From: $from\r\nReply-to: $email";
    $sent = mail($to, $subject, $message, $headers);
    echo 'Your message has been sent.';
    else {
    $number_1 = rand(1, 9);
    $number_2 = rand(1, 9);
    $answer = md5($number_1+$number_2);
    ?>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Untitled Document</title>
    <style>
    #contactForm span {
        color: #900;
    </style>
    </head>
    <body>
    <form name="contactForm" id="contactForm" method="post" action="form_send.php">
    <p><label for="name">Name<input type="text" name="name" id="name" value="<?php if(isset($name)) {echo $name; } ?>" <?php if(isset($error['name'])) {echo 'style="background-color: #FCC;"'; } ?>></label><br>
    <?php if(isset($error['name'])) {echo $error['name']; } ?></p>
    <p><label for="email">Email<input type="text" name="email" id="email" value="<?php if(isset($email)) {echo $email; } ?>" <?php if(isset($error['email'])) {echo 'style="background-color: #FCC;"'; } ?>></label><br>
    <?php if(isset($error['email'])) {echo $error['email']; } ?></p>
    <p><label for="comments">Comments<textarea name="comments" id="comments" <?php if(isset($error['comments'])) {echo 'style="background-color: #FCC;"'; } ?>>
    <?php if(isset($comments)) { echo $comments; } ?></textarea></label><br>
    <?php if(isset($error['comments'])) {echo $error['comments']; } ?></p>
    <p>Spam prevention - please answer the question below:</p>
    <p><?php echo $number_1; ?> + <?php echo $number_2; ?> = ?<input type="text" name="user_answer" <?php if(isset($error['answer'])) {echo 'style="background-color: #FCC;"'; } ?>/>
    <input type="hidden" name="answer" value="<?php echo $answer; ?>" /><br>
    <?php if(isset($error['answer'])) {echo $error['answer']; } ?></p>
    <p><input type="submit" name="submit" id="sumbit"></p>
    </form>
    </body>
    </html>

  • Why won't this code work?

    All I want to do is resize the select panel to the same size as east panel. Why won't it work?
    Space.java_____________________________________________
    import javax.sound.sampled.*;
    import java.awt.*;
    import javax.sound.midi.*;
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    import java.io.*;
    public class Space extends JFrame implements ActionListener, Runnable{
         //Sound
         Sequence currentSound;
         Sequencer player;
         Thread soundCheck;
         boolean check = true;
         public void start(){
              soundCheck = new Thread();
              soundCheck.start();
         public void run(){
              try{
                   File bgsound = new File("Sounds" + File.separator + "Space.mid");
                   currentSound = MidiSystem.getSequence(bgsound);
                   player = MidiSystem.getSequencer();
                   player.open();
                   player.setSequence(currentSound);
                   player.start();
                   checkSound();
              } catch (Exception exc){}
         public void checkSound(){
              while(check){
                   if(!player.isRunning()){
                     run();
                   try{
                        soundCheck.sleep((player.getMicrosecondLength() / 1000)-player.getMicrosecondPosition()); // sleep for the length of the track
                   }catch (InterruptedException IE){}
         //Screen Variables:
         Dimension SCREEN = Toolkit.getDefaultToolkit().getScreenSize();
         final int SCREENWIDTH = SCREEN.width;
         final int SCREENHEIGHT = SCREEN.height;
         //Panels:
         JPanel select, main, north, south, east;
        //Buttons:
         JButton instructB, cheatB, playB, exit, about;
         //Labels:
         JLabel open, cheat1, cheat2, cheatInstruct, i1, i2 , i3, aboutLabel;
         //The container and frame:
         static Space jframe;
         Container content;
         //The Constructor:
         public Space(){
              super("Space");
              //set  container attributes:
              content = getContentPane();
              content.setLayout(new BorderLayout());
              //init panels:
              main   = new JPanel();
              select = new JPanel();
              north  = new JPanel();
              east   = new JPanel();
              south  = new JPanel();
              //set panel attributes:
              select.setLayout(new GridLayout(3,0,10,10));     
              select.setBackground(Color.black);
              main.setBackground(Color.black);
              north.setBackground(Color.black);
              //add panels:
              content.add("West", select);
              content.add("Center", main);
              content.add("North", north);
              content.add("East", east);
              //Image Icons:
              Icon exit1 = new ImageIcon("Images" + File.separator + "exit1.gif");
              Icon exit2 = new ImageIcon("Images" + File.separator + "exit2.gif");
              Icon about1 = new ImageIcon("Images" + File.separator + "about1.gif");
              Icon about2 = new ImageIcon("Images" + File.separator + "about2.gif");
              //init buttons, add their listeners, and set their attributes:
              instructB = new JButton("Instructions", new ImageIcon("Images" + File.separator + "ship.gif"));
              instructB.setContentAreaFilled(false);
              instructB.setForeground(Color.yellow);
              instructB.addActionListener(this);
              select.add(instructB);
              cheatB = new JButton("Cheats", new ImageIcon("Images" + File.separator + "cheat.gif"));
              cheatB.setContentAreaFilled(false);
              cheatB.setForeground(Color.yellow);
              cheatB.addActionListener(this);
              select.add(cheatB);
              playB = new JButton("Play", new ImageIcon("Images" + File.separator + "ship2.gif"));
              playB.setContentAreaFilled(false);
              playB.setForeground(Color.yellow);
              playB.addActionListener(this);
              select.add(playB);          
              exit = new JButton();
              exit.setRolloverEnabled(true);
              exit.setIcon(exit1);
              exit.setRolloverIcon(exit2);
              exit.setBorderPainted(false);
              exit.setContentAreaFilled(false);
              exit.addActionListener(this);
              north.add(exit);
              about = new JButton();
              about.setRolloverEnabled(true);
              about.setIcon(about1);
              about.setRolloverIcon(about2);
              about.setBorderPainted(false);
              about.setContentAreaFilled(false);
              about.addActionListener(this);
             north.add(about);
             //Labels:
             open = new JLabel("", new ImageIcon("Images" + File.separator + "open.gif"), JLabel.CENTER);
              main.add(open);
              cheat1 = new JLabel("<html><h1>tport</h1></html>");
              cheat1.setForeground(Color.red);
              cheat2 = new JLabel("<html><h1>zap</h1></html>");
              cheat2.setForeground(Color.green);
              cheatInstruct = new JLabel("<html><h1>Type a cheat at any time during a game, and press the \"Enter\" key.</html></h1>");
              cheatInstruct.setForeground(Color.blue);     
              i1 = new JLabel("<html><h1>The arrow keys move your ship.</h1></html>");
              i1.setForeground(Color.red);
              i2 = new JLabel("<html><h1>The space-bar fires the gun.</h1></html>");
              i2.setForeground(Color.green);
              i3 = new JLabel("<html><h1>The red circles give upgrades.</html></h1>");
              i3.setForeground(Color.blue);
              aboutLabel    = new JLabel("", new ImageIcon("Images" + File.separator + "aboutImage.gif"), JLabel.CENTER);
              //centerPanel();     
         private void centerPanel(final int width, final int height){
              try{
                   Runnable setPanelSize = new Runnable(){
                        public void run(){
                             east.setPreferredSize(new Dimension(width, height));                    
                   SwingUtilities.invokeAndWait(setPanelSize);
              } catch (Exception e){}
         public void actionPerformed(ActionEvent e){
              //if the play button was pressed do:
              if(e.getSource() == playB){
                  //do something
             //else if the cheat button was pressed do:
              else if(e.getSource() == cheatB){
                   //remove and add components
                   main.removeAll();
                   main.setLayout(new GridLayout(3,0,0,0));
                   main.add(cheat1);
                   main.add(cheat2);
                   main.add(cheatInstruct);
                   main.repaint();
                   main.validate();          
              else if(e.getSource() == instructB){
                   //remove and add components
                   main.removeAll();
                   main.setLayout(new GridLayout(3,0,0,0));
                   main.add(i1);
                   main.add(i2);
                   main.add(i3);
                   main.repaint();
                   main.validate();          
              else if(e.getSource() == exit){
                   jframe.setVisible(false);
                   showCredits();          
              else if(e.getSource() == about){
                   main.removeAll();
                   main.setLayout(new FlowLayout());
                   main.add(aboutLabel);                         
                   main.repaint();
                   main.validate();
         public void showCredits(){
              try{
                   String[] args = {};
                   Credits.main(args);
              }catch (Exception e){}
         public static void main(String args[]){
              jframe = new Space();
              jframe.setUndecorated(true);
              jframe.setBounds(0, 0, jframe.SCREENWIDTH, jframe.SCREENHEIGHT);
              jframe.setVisible(true);
            jframe.show();     
            jframe.setResizable(false);
               jframe.setDefaultCloseOperation(EXIT_ON_CLOSE);
             jframe.centerPanel(jframe.select.getWidth(), jframe.select.getHeight());
             jframe.run(); //start music

    The reason it wasn't working was because you were calling the method after you had set the frame visible, so you saw no change. On top of that, jframe.select.getWidth() only works after the frame is visible in this case. So it's best to set a fixed size for one of them, then use getWidth, or as I did... it's the same thing. I also changed the centerPanel method, I'm not sure if all that's exactly needed, but you can change it back if you think you'll need it.
    import javax.sound.sampled.*;
    import java.awt.*;
    import javax.sound.midi.*;
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    import java.io.*;
    public class Space extends JFrame implements ActionListener, Runnable{
    //Sound
    Sequence currentSound;
    Sequencer player;
    Thread soundCheck;
    boolean check = true;
    public void start(){
    soundCheck = new Thread();
    soundCheck.start();
    public void run(){
    try{
    File bgsound = new File("Sounds" + File.separator + "Space.mid");
    currentSound = MidiSystem.getSequence(bgsound);
    player = MidiSystem.getSequencer();
    player.open();
    player.setSequence(currentSound);
    player.start();
    checkSound();
    } catch (Exception exc){}
    public void checkSound(){
    while(check){
    if(!player.isRunning()){
                run();
    try{
    soundCheck.sleep((player.getMicrosecondLength() / 1000)-player.getMicrosecondPosition()); // sleep for the length of the track
    }catch (InterruptedException IE){}
    //Screen Variables:
    Dimension SCREEN = Toolkit.getDefaultToolkit().getScreenSize();
    final int SCREENWIDTH = SCREEN.width;
    final int SCREENHEIGHT = SCREEN.height;
    //Panels:
    JPanel select, main, north, south, east;
        //Buttons:
    JButton instructB, cheatB, playB, exit, about;
    //Labels:
    JLabel open, cheat1, cheat2, cheatInstruct, i1, i2 , i3, aboutLabel;
    //The container and frame:
    static Space jframe;
    Container content;
    //The Constructor:
    public Space(){
    super("Space");
    //set  container attributes:
    content = getContentPane();
    content.setLayout(new BorderLayout());
    //init panels:
    main   = new JPanel();
    select = new JPanel();
    north  = new JPanel();
    east   = new JPanel();
    south  = new JPanel();
    //set panel attributes:
    select.setLayout(new GridLayout(3,0,10,10));
    select.setBackground(Color.black);
    main.setBackground(Color.black);
    north.setBackground(Color.black);
    //add panels:
    content.add("West", select);
    content.add("Center", main);
    content.add("North", north);
    content.add("East", east);
    //Image Icons:
    Icon exit1 = new ImageIcon("Images" + File.separator + "exit1.gif");
    Icon exit2 = new ImageIcon("Images" + File.separator + "exit2.gif");
    Icon about1 = new ImageIcon("Images" + File.separator + "about1.gif");
    Icon about2 = new ImageIcon("Images" + File.separator + "about2.gif");
    //init buttons, add their listeners, and set their attributes:
    instructB = new JButton("Instructions", new ImageIcon("Images" + File.separator + "ship.gif"));
    instructB.setContentAreaFilled(false);
    instructB.setForeground(Color.yellow);
    instructB.addActionListener(this);
    select.add(instructB);
    cheatB = new JButton("Cheats", new ImageIcon("Images" + File.separator + "cheat.gif"));
    cheatB.setContentAreaFilled(false);
    cheatB.setForeground(Color.yellow);
    cheatB.addActionListener(this);
    select.add(cheatB);
    playB = new JButton("Play", new ImageIcon("Images" + File.separator + "ship2.gif"));
    playB.setContentAreaFilled(false);
    playB.setForeground(Color.yellow);
    playB.addActionListener(this);
    select.add(playB);
    exit = new JButton();
    exit.setRolloverEnabled(true);
    exit.setIcon(exit1);
    exit.setRolloverIcon(exit2);
    exit.setBorderPainted(false);
    exit.setContentAreaFilled(false);
    exit.addActionListener(this);
    north.add(exit);
    about = new JButton();
    about.setRolloverEnabled(true);
    about.setIcon(about1);
    about.setRolloverIcon(about2);
    about.setBorderPainted(false);
    about.setContentAreaFilled(false);
    about.addActionListener(this);
        north.add(about);
        //Labels:
        open = new JLabel("", new ImageIcon("Images" + File.separator + "open.gif"), JLabel.CENTER);
    main.add(open);
    cheat1 = new JLabel("<html><h1>tport</h1></html>");
    cheat1.setForeground(Color.red);
    cheat2 = new JLabel("<html><h1>zap</h1></html>");
    cheat2.setForeground(Color.green);
    cheatInstruct = new JLabel("<html><h1>Type a cheat at any time during a game, and press the \"Enter\" key.</html></h1>");
    cheatInstruct.setForeground(Color.blue);
    i1 = new JLabel("<html><h1>The arrow keys move your ship.</h1></html>");
    i1.setForeground(Color.red);
    i2 = new JLabel("<html><h1>The space-bar fires the gun.</h1></html>");
    i2.setForeground(Color.green);
    i3 = new JLabel("<html><h1>The red circles give upgrades.</html></h1>");
    i3.setForeground(Color.blue);
    aboutLabel    = new JLabel("", new ImageIcon("Images" + File.separator + "aboutImage.gif"), JLabel.CENTER);
    east.setPreferredSize(new Dimension(125, SCREEN.width));
    //centerPanel();
    /*private void centerPanel(final int width, final int height){
    try{
    Runnable setPanelSize = new Runnable(){
    public void run(){
    east.setPreferredSize(new Dimension(width, height));
    SwingUtilities.invokeAndWait(setPanelSize);
    } catch (Exception e){}
    private void centerPanel(final int width, final int height)
         east.setPreferredSize(new Dimension(width, height));
    public void actionPerformed(ActionEvent e){
    //if the play button was pressed do:
    if(e.getSource() == playB){
        //do something
        //else if the cheat button was pressed do:
    else if(e.getSource() == cheatB){
    //remove and add components
    main.removeAll();
    main.setLayout(new GridLayout(3,0,0,0));
    main.add(cheat1);
    main.add(cheat2);
    main.add(cheatInstruct);
    main.repaint();
    main.validate();
    else if(e.getSource() == instructB){
    //remove and add components
    main.removeAll();
    main.setLayout(new GridLayout(3,0,0,0));
    main.add(i1);
    main.add(i2);
    main.add(i3);
    main.repaint();
    main.validate();
    else if(e.getSource() == exit){
    jframe.setVisible(false);
    //showCredits();
    else if(e.getSource() == about){
    main.removeAll();
    main.setLayout(new FlowLayout());
    main.add(aboutLabel);
    main.repaint();
    main.validate();
    /*public void showCredits(){
    try{
    String[] args = {};
    Credits.main(args);
    }catch (Exception e){}
    public static void main(String args[]){
    jframe = new Space();
    //jframe.centerPanel(500, jframe.select.getHeight());
    jframe.setUndecorated(true);
    jframe.setBounds(0, 0, jframe.SCREENWIDTH, jframe.SCREENHEIGHT);
    jframe.setVisible(true);
            jframe.show();
            jframe.setResizable(false);
          jframe.setDefaultCloseOperation(EXIT_ON_CLOSE);
        //jframe.centerPanel(jframe.select.getWidth(), jframe.select.getHeight());
        jframe.run(); //start music
    }Sorry I lost all the indenting :) I guess you can take a look at the few lines I changed and copy those lines.

  • Why doesn't my form submit on Firefox 4?

    I have not seen any answers or any replies to my question, so I will ask it again, but holding my breathe for a reply is a different story.
    I have a form which works perfectly on any version of Firefox prior to version 4 and on any other browser including IE9.
    I have attempted to rebuild the form to make it strictly HTML 5 compliant and removed all required fields. None of the fields are required by the db which receives the form's data.
    Other forms on the website work fine.
    So why does this form not work?

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • Consolidate Library - why won't this work?

    Hi there,
    I've been using iTunes and my iPod on several iMacs successfully for years - I've just changed to a PC and now I feel like a beginner!
    I can't seem to get iTunes for Windows to seek out all my MP3s and put them in iTunes. The only way I can get iTunes to put them in it's library is to play them - then iTunes recognises then and remebers them. I have tried clicking on consolidate library - nothing. I have tried downloading my new music directly into the iTunes music folder - nothing. I can maunally add the file I download music into, but I don't want to have to do that all the time.
    Why won't iTunes just find my music for me? It does on my iMac!

    I dont know!
    In what way is it not working?

  • Why won't this piece of code work?

    Hello all, i am new to HTML and web design and i'm trying to make a website. I created this piece of code so that when the user mouses over one of the links (jpg image) it will change colors ( i have the same image in different color scheme saved in the same folder).
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>XXXXXXXXXX</title>
    </head>
    <body bgcolor="#000000">
    <table width="1050" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="1050" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="_images/XXXXbanner.jpg" width="1050" height="311" alt="banner" /></td>
          </tr>
        </table>
          <table width="901" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="150"><a href="index.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonOne','','_images/home_on.jpg',1)">
                 <img name="ButtonOne" border="0" src="_images/home.jpg" width="150" height="75" alt="home" /></a></td>
              <td width="150"><a href="gallery.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonTwo','','_images/gallery_on.jpg',1)">
                  <img name="ButtonTwo" border="0" src="_images/gallery.jpg" width="150" height="75" alt="gallery" /></a></td>
              <td width="150"><a href="products.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonThree','','_images/product_on.jpg',1)">
                 <img name="ButtonThree" border="0" src="_images/product.jpg" width="150" height="75" alt="products" /></a></td>
              <td width="150"><a href="store.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonFour','','_images/shop_on.jpg',1)">
                 <img name="ButtonFour" border="0" src="_images/shop.jpg" width="150" height="75" alt="store" /></a></td>
              <td width="150"><a href="profile.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonFive','','_images/profile_on.jpg',1)">
                 <img name="ButtonFive" border="0" src="_images/profile.jpg" width="150" height="75" alt="profile" /></a></td>
              <td width="151"><a href="contactus.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('ButtonSix','','_images/contact_us_on.jpg',1)">
              <img name="ButtonSix" border="0" src="_images/contact_us.jpg" width="150" height="75" alt="contact" /></a></td>
            </tr>
          </table>
          <table width="1050" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td> </td>
              <td> </td>
              <td> </td>
            </tr>
          </table>
          <p> </p>
        <p> </p></td>
      </tr>
    </table>
    </body>
    </html>
    the images and banner are showing up fine and i havent mistpyed any of the locations/file names. why doesn't the icon change colors (display the "on" image) when u hover the mouse over it? please help thanks in advance.
    ** i'm using Adobe Dreamweaver CS4

    He's right...
    try instering this into the head tags of your html
    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>

  • Why won't this show (same) four pages in the Adobe Reader?

    %PDF-1.6
    3 0 obj
    <</Type /Font /BaseFont /Times-Italic /Subtype /Type1 >>
    endobj
    6 0 obj
    <</Length 158 >>
    stream
    1 0 0 1 50 200 cm /X1 Do
    1 0 0 1 0   200 cm /X1 Do
    1 0 0 1 0   200 cm /X1 Do
    1 0 0 1 200 -400 cm /X1 Do
    1 0 0 1 0 200 cm /X1 Do
    1 0 0 1 0 200 cm /X1 Do
    endstream
    endobj
    4 0 obj
    <</Type /XObject /Subtype /Form /BBox [0 0 1000 1000] /Resources <</Font <</F1 3 0 R>> >>
    /Length 77 >>
    stream
    BT /F1 18 Tf 0 0 Td (18 Point) Tj ET
    BT /F1 25 Tf 0 50 Td (25 Point) Tj ET
    endstream
    endobj
    5 0 obj
    <</Type /Page /Parent 2 0 R /Contents 6 0 R /MediaBox [0 0 595.27 841.88] /UserUnit 0.5 /Resources <</XObject <</X1 4 0 R>> >>
    >>
    endobj
    2 0 obj
    <</Type /Pages /Kids [5 0 R 5 0 R 5 0 R 5 0 R ] /Count 4 >>
    endobj
    1 0 obj
    <</Type /Catalog /Pages 2 0 R >>
    endobj
    xref
    0 7
    0000000000 65535 f
    0000000745 00000 n
    0000000667 00000 n
    0000000010 00000 n
    0000000297 00000 n
    0000000517 00000 n
    0000000085 00000 n
    trailer
    <<
    /Root 1 0 R
    /Size 7
    >>
    startxref
    796
    %%EOF
    Works OK with Chrome's reader......

    1. It may surprise you, but more than 50% of the problems which people ask about with PDF generators turn out to be related to the exact byte layout, and disappear (or get worse) with copy/paste. People with tools for PDF examination like to be able to use them and know they are working on the exact/same file.
    "But why can it not do that."
    Because the question is unanswerable. Imagine an API call
    PageObjectGetPageNumber().
    Given object 5 0 R and asking for the page number, what is the correct answer - 1, 2, 3, or 4? This is of more than academic interest. For example, the page object might be the destination of a link, and an interactive viewer needs to know which page to navigate to. So, while a simple PDF viewer could display it, many things might not work.
    ISO 32000-1 doesn't forbid it. But there isn't much mileage in taking the high ground and saying that one is making good files but Acrobat isn't compliant.

  • Why won't this Best Buy PC App craplet uninstall?

    I don't appreciate the fact that when I try to uninstall this program as an administrator it remains on other accounts, and when I uninstall it from those it pops up again if I create a new user account. Why is this necessary and how do I get rid of this program completely?

    Archie has nothing to do with it and doesn't even remotely apply in this situation. Archie is NOT the utility that puts Best Buy pc app on the computers. They come packaged that way. Archie is put on DISPLAY model computers only. Yes the pc app has to be uninstalled on each user account and there is a thread on here somewhere where someone posted how they got rid of it for good. I'll try to find it an link it.
    Crystal
    Superuser
    Forum Guidelines | Terms & Conditions | Community Guidelines | What is a Superuser?
    *Remember to mark your questions solved and click the star to give kudos to show your thanks!*
    While I used to be a Best Buy Employee, I no longer have any affiliation with Best Buy.
    My opinions do not in any way shape or form represent Best Buy's Official decisions.

  • Why won't this scriipt work with Firefox? embed src="News2008Fall.pdf" width="615" height="3200" /embed

    Please tell me why this script won't work with Firefox. It works with Safari. Here is the page that includes the script: www.lionsgatehoa.org/newslettertest.html. Thank you. Tom Engleman
    Here is the script in my html document:
    <embed src="News2008Fall.pdf" width="615" height="3200"></embed>
    edit: removed phone #

    Works for me on Linux.<br />
    Your system details list doesn't show the Adobe Reader plugin, so you will have to (re)install that program.
    See:
    *https://support.mozilla.org/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    *http://kb.mozillazine.org/Adobe_Reader
    *http://get.adobe.com/reader/otherversions/

  • 5.5G battery in my 5G iPod.  Why won't this work?

    I bought a 5G 30GB iPod around christmas 05. Recently, the HD failed after i dropped it.
    Fortunately, my girlfriend had a 5.5G 80GB with a broken screen that she was using for back ups.
    She gave me the iPod so that i could maybe use her HD in my iPod. I cracked them open and used the Screen, scroll wheel, motherboard from my 5G 30gb, and the HD and battery from her 5.5G 80gb.
    After i put the two back together here is what happened:
    I started up the iPod and the apple logo appeared. Shortly after, a screen saying "Connect to your Computer. Use iTunes to Restore." in about 5 different languages.
    I connected it to my computer, then a message in iTunes showed up saying "iTunes has detected an iPod in recovery mode. You must restore this iPod before it can be used with iTunes."
    I then clicked Restore and entered in my Administrator name and password.
    Shortly after that, an alert popped up saying "The iPod "iPod" could not be restored. An unknown error occurred (1416)."
    This is where I'm stuck. I'm hopping that there are some people on this forum much smarter than i am and who are also willing to help me out.
    Let me know if i can describe anything further to give people more information about my problem.
    Thanks to anyone who can help!!!

    OK, I got the cfdump to display all the form variables, and my submit  button, btnSubmit is there.  But I think that is also the problem.
    In my original action page, I did not have to check for the existence of the submit button, so the codes  below worked :
    <cfif ListFirst(i,"/") is "comments">
    <cfset select_urdn_number = listgetat(i, 2, "/")>
    <cfset select_urdn_line_item = listlast(i, "/")>
    <cfset combineEnd = select_urdn_number & "/" & select_urdn_line_item>
    <cfif StructKeyExists(form, "del/" & combineEnd) and form["del/" & combineEnd] is "Yes">
    Now when I submit the form to itself, I have to check for the existence of the submit button and that gives me an extra form variable, so
    <cfif ListFirst(i,"/") is "comments"> will fail since it is no loner the first variable.
    So instead of performing listfirst, how can I find the comments in the form variables, so that I can continue to perform the other steps after ListFirst,
    to get all the information that I want ? I need it broken up like the above in order for the form to process correctly.

  • Why won't this slide show run it compiles

    import java.awt.*;
    import java.applet.*;
    import java.net.*;
    public class SlideShow extends Applet {
      private Image[] images;
      private String[] text;
      private Label captions;
      private volatile int curFrame;
      private Thread timerThread;
      private volatile boolean noStopRequested;
      private boolean paused;
      private final Object pauseLock = new Object();
      public static void main( String[] args )
         new SlideShow();     
      private void printThreadName(String prefix) {
        String name = Thread.currentThread().getName();
        System.out.println(prefix + name);
      public void init() {
        images = new Image[3];
        text = new String[3];
        captions = new Label();
        setLayout(new BorderLayout());
        add(BorderLayout.SOUTH, captions);
        Label name = new Label("by Claude Monet");
        name.setAlignment(Label.CENTER);
        add(BorderLayout.EAST, name);
        URL fig = null;
        try {
          fig = new URL("http://developer.java.sun.com:8080/" +
                       "developer/technicalArticles/Threads/applet/");
        } catch (java.net.MalformedURLException ex) {
          System.out.println("Bad URL");
          return;
        images[0] = getImage(fig, "bordighera.jpg");
        images[1] = getImage(fig, "etretat.jpg");
        images[2] = getImage(fig, "leyden.jpg");
        text[0] = "Garden in Bordighera";
        text[1] = "Rock Arch West of Etretat";
        text[2] = "Bulbfield and Windmill near Leyden";
        printThreadName("init is ");
        startThread();
       private void startThread() {
         paused = true;
         noStopRequested = true;
         // Use this inner class to hide the public run method
         Runnable r = new Runnable() {
           public void run() {
             runWork();
         timerThread = new Thread(r, "Timer");
         timerThread.start();
         printThreadName("startThread is ");
      private void stopThread() {
        noStopRequested = false;
        timerThread.interrupt();
        printThreadName("stopThread is ");
      private void runWork() { // note that this is private
        printThreadName("run is ");
        curFrame = 0;
        try {
            while ( noStopRequested ) {
            waitWhilePaused();
            curFrame = ( curFrame + 1 ) % images.length;
            repaint();
            Thread.sleep(3000);
        } catch ( InterruptedException x ) {
          // reassert interrupt
         Thread.currentThread().interrupt();
         System.out.println("interrupt and return from run");
      private void setPaused(boolean newPauseState) {
        synchronized ( pauseLock ) {
          if ( paused != newPauseState ) {
            paused = newPauseState;
            pauseLock.notifyAll();
      private void waitWhilePaused() throws InterruptedException {
        synchronized ( pauseLock ) {
          while ( paused ) {
            pauseLock.wait();
      public void paint(Graphics g) {
        update(g);
        printThreadName("paint is ");
      public void update(Graphics g) {
        g.drawImage(images[curFrame], 0, 0, this);
        captions.setText(text[curFrame]);
        printThreadName("update is ");
      public void start() {
        setPaused(false);
        printThreadName("start is ");
      public void stop() {
        setPaused(true);
        printThreadName("stop is ");
      public void destroy() {
        stopThread();
        for (int i = 0; i < images.length; i++) {
           images.flush();
    images[i] = null;
    text[i] = null;
    images = null;
    text = null;
    printThreadName("destroy is ");

    w.r.t. the title of your topic: the set C of compilable programs is much
    larger than the set R of programs that run correctly: |C| > |R|. This
    is implies that at most n == |C|-|R| programs need some debugging.
    The easiest form of debugging (oftenly overlooked) is System.out.println
    which, when applied strategically, can do wonders: when two of those
    printlns are inserted at point X and Y, and if at point X everything seems
    to be correct while at point Y (later in time) everything seems to be rotten
    to the bone, inserting another println at point (X+Y)/2 narrows down the
    exact location of where the ugly bug hides from you.
    kind regards,
    Jos

Maybe you are looking for

  • Additional field in Infotype 0001

    I manage to add an additional field in the infotype 0001 in Dev client. I have a bit concern when to apply it in the production client. Do you have any experience to share on this?

  • .m4a files and Flash

    Hi, friends. I would be grateful for any thoughts you have on this subject. The sound piece that I need to import into Flash is an .m4a file. I've never worked with that type of file and am not even sure why it is an .m4a, since all of the other soun

  • Variable declared in global definition smart form

    Hi, We have defined an internal table 'it_table' in the global definition. We are unable to use  'it_table' in 'Page and Windows' loop statement. Kindly suggest. Regards,

  • Question about ARD 2.2, Rosetta

    Hi all, I use ARD 2.2 at work, and have replaced my G4 Powerbook a new MacBookPro. I've installed ARD 2.2, and figured out how to make it run using the "Run Under Rosetta" checkbox on ARDAgent.app and it seems fine, although installing packages hasn'

  • Not display ip address with ovm3.1.1

    I have a question, in my virtual machines on ovm 3.1.1 , i cant't see in networks options my virtual machines ip address,but i can found VINIC and Ethernet Network