Alignment of TextAreas

Hi All,
Can anyone tell me how i can align the text in a text area to be vertically displayed?? how do i set it?
Thank U in advance..

If you say ok for JTextPane of type "text/html" ,then the solution is there at http://forum.java.sun.com/thread.jsp?forum=57&thread=285033&start=0&range=30#1115577

Similar Messages

  • Alignment in messageList - uix

    May I know how to align text in messageList?
    Edited by: user9079482 on Feb 7, 2010 10:36 PM
    Edited by: user9079482 on Feb 7, 2010 10:38 PM

    You cannot align the text within the TextArea itself.
    If you could, that would result in quite a few
    problems - for example, if you set the alignment to
    the right and allowed people to type in the box,
    should the words slowly march to the left as you
    typed them in?
    You can align the TextArea itself within the JPanel or
    whatever component you use, with the functions
    JTextArea.setAlignmentX( float Alignment ) and
    JTextArea.setAlignmentY( float Alignment). Legal
    values of alignment are:
    BOTTOM_ALIGNMENT
    CENTER_ALIGNMENT
    LEFT_ALIGNMENT
    RIGHT_ALIGNMENT
    TOP_ALIGNMENT
    Honestly, in the time you've spent waiting for this
    answer, you could have easily looked it up yourself
    at:
    http://java.sun.com/j2se/1.4.1/docs/api/
    Hi David, Thankyou for your reply. I have concluded the JTextArea Alignment procedure from my Docs/API. But I asked above not about JTextArea(swing). I asked, can I do the same thing in simple TextArea(AWT) instead of JTextArea .

  • Alignment in rectangle

    Hi
    apoligies if this is a repeat, seem to be having serious issues with my PC
    If I in cs4 I draw a box using the rectangle tool and the  using the text box I add a number approx in the centre to create a "numbered button "  everything looks ok but I want to centre the number in the rectangle ie centre in the layer beneath. I tried using the align tools with selecting both the box and the number and failed.
    In Photoshop it's easy so I'm sure it is in flash. So what am I mssing?
    thanks
    Ian

    You cannot align the text within the TextArea itself.
    If you could, that would result in quite a few
    problems - for example, if you set the alignment to
    the right and allowed people to type in the box,
    should the words slowly march to the left as you
    typed them in?
    You can align the TextArea itself within the JPanel or
    whatever component you use, with the functions
    JTextArea.setAlignmentX( float Alignment ) and
    JTextArea.setAlignmentY( float Alignment). Legal
    values of alignment are:
    BOTTOM_ALIGNMENT
    CENTER_ALIGNMENT
    LEFT_ALIGNMENT
    RIGHT_ALIGNMENT
    TOP_ALIGNMENT
    Honestly, in the time you've spent waiting for this
    answer, you could have easily looked it up yourself
    at:
    http://java.sun.com/j2se/1.4.1/docs/api/
    Hi David, Thankyou for your reply. I have concluded the JTextArea Alignment procedure from my Docs/API. But I asked above not about JTextArea(swing). I asked, can I do the same thing in simple TextArea(AWT) instead of JTextArea .

  • Mail-form from dB Masters + reCaptcha - Things wont work the way i want.

    I used a mail-form from dB Masters because someone here gave me the tip.
    And its great! But it uses a simplefied Captcha script.
    I tryd to change the code myself and got to this: http://www.wientjesvoegwerk.nl/PHP/form.php
    If you try to send mail it wont work.....
    form.php
    <!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>Email Form</title>
    </head>
    <body>
    <center>
    <form id="form" method="post" action="../formmailer.php" enctype="multipart/form-data">
    <input type="hidden" name="action" value="verify">
    <table cellpadding="4">
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Uw naam:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <input type="text" name="Naam" value=""/>
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Email:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <input type="text" name="Email" value="" />
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Telefoonnummer:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <input type="text" name="Telefoonnummer" value="" />
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Onderwerp:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <select name="Onderwerp">
        <option value="0">Algemene Informatie</option>
        <option value="1">Offerte</option>
        <option value="2">Overige</option>
        </select>
    </td></tr>
    <tr><td  style="text-align: left;" valign=top><font size="2" FACE="Verdana" color="#000000">Bericht:</font><small><span style="color:#E00000;" title="Required field">*</span></small></td><td align="left">
    <textarea name="Bericht" rows="7" cols="40"></textarea>
    </td></tr>
    <tr><td align=right>CAPTCHA TXT</td>
    <td align="left">
    <form method="post" action="verify.php">
       <?php
         require_once('recaptchalib.php');
         $publickey = "I hide the key on this forum dont know if its ok to show";
         echo recaptcha_get_html($publickey);
       ?>
    </form>
    </td>
    </tr>
    <tr><td></td><td align="left">
    <input type="submit" name="submit" value="Submit" />
    <input type="reset" name="Reset" value="Clear Form" />
    <input type="hidden" name="config" value="0" />
    <input type="hidden" name="nospam" value="" />
    </td></tr>
    </table>
    <div style="height:1px; display: none; visibility: hidden;">
    <input type="text" name="email">
    </div>
    </form>
    </center>
    </body>
    </html>
    formmailer.php
    <?php
    // dB Masters' PHP FormM@iler, Copyright (c) 2007 dB Masters Multimedia
    // http://www.dbmasters.net/
    // FormMailer comes with ABSOLUTELY NO WARRANTY
    // Licensed under the AGPL
    // See license.txt and readme.txt for details
    // General Variables
         $check_referrer="no";
         $referring_domains="www.wientjesvoegwerk.nl";
    // options to use if hidden field "config" has a value of 0
    // recipient info
         $charset[0]="UTF-8";
         $tomail[0]="[email protected]";
         $cc_tomail[0]="";
         $bcc_tomail[0]="";
    // Mail contents config
         $subject[0]="Onderwerp van de Email";
         $reply_to_field[0]="Email";
         $reply_to_name[0]="Naam";
         $required_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
         $required_email_fields[0]="Email";
         $attachment_fields[0]="";
         $return_ip[0]="yes";
         $mail_intro[0]="Er is een bericht gestuurd vanuit Wientjesvoegwerk.nl:";
         $mail_fields[0]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
         $mail_type[0]="text";
         $mail_priority[0]="1";
         $allow_html[0]="no";
    // Send back to sender config
         $send_copy[0]="yes";
         $copy_format[0]="vert_table";
         $copy_fields[0]="Naam,Onderwerp,Bericht";
         $copy_attachment_fields[0]="";
         $copy_subject[0]="Kopie van uw bericht naar Wientjesvoegwerk.nl";
         $copy_intro[0]="Dank u voor uw bericht!<br />Om veiligheidsredenen is uw email adres en telefoonnummer niet in deze mail te zien.<br /> Het volgende is verstuurd;";
         $copy_from[0]="[email protected]";
         $copy_tomail_field[0]="Email";
    // Result options
         $header[0]="";
         $footer[0]="";
         $error_page[0]="";
         $thanks_page[0]="";
    // Default Error and Success Page Variables
         $error_page_title[0]="Errors:";
         $error_page_text[0]="Ga a.u.b. terug naar de vorige pagina om alle benodigde velden in te vullen.";
         $thanks_page_title[0]="Bericht verzonden.";
         $thanks_page_text[0]="Dank u voor uw bericht!";
    // Antispam Options
         $empty_field[0]="nospam";
         $character_scan[0]="Bericht,Naam,Email,Telefoonnummer,Onderwerp";
         $time_delay[0]="2";
         $captcha_codes[0]="9C2449,EEADC8,77A585,D72838";
         $max_urls[0]="2";
         $max_url_fields[0]="Bericht";
         $flag_spam[0]="";
    // options to use if hidden field "config" has a value of 1
    // recipient info
         $charset[1]="";
         $tomail[1]="";
         $cc_tomail[1]="";
         $bcc_tomail[1]="";
    // Mail contents config
         $subject[1]="";
         $reply_to_field[1]="";
         $reply_to_name[1]="";
         $required_fields[1]="";
         $required_email_fields[1]="";
         $attachment_fields[1]="";
         $return_ip[1]="";
         $mail_intro[1]="";
         $mail_fields[1]="";
         $mail_type[1]="";
         $mail_priority[1]="";
         $allow_html[1]="";
    // Send back to sender config
         $send_copy[1]="";
         $copy_format[1]="";
         $copy_fields[1]="";
         $copy_attachment_fields[1]="";
         $copy_subject[1]="";
         $copy_intro[1]="";
         $copy_from[1]="";
         $copy_tomail_field[1]="";
    // Result options
         $header[1]="";
         $footer[1]="";
         $error_page[1]="";
         $thanks_page[1]="";
    // Default Error and Success Page Variables
         $error_page_title[1]="";
         $error_page_text[1]="";
         $thanks_page_title[1]="";
         $thanks_page_text[1]="";
    // Antispam Options
         $empty_field[1]="bait";
         $character_scan[1]="Naam,Email,Telefoonnummer,Onderwerp,Bericht";
         $time_delay[1]="";
         $captcha_codes[1]="";
         $max_urls[1]="";
         $max_url_fields[1]="";
         $flag_spam[1]="";
    // Don't muck around past this line unless you know what you are doing //
    ob_start();
    $config=$_POST["config"];
    $debug=0;
    $debug_text="";
    // fix for Windows email server security
    ini_set("sendmail_from",$tomail[$config]);
    // email validation regular expression
    $regex = "^[-a-z0-9!#$%&\'*+/=?^_`{|}~]+(\.[-a-z0-9!#$%&\'*+/=?^_`{|}~]+)*@(([a-z0-9]([-a-z0-9]*[a-z0-9]+)?){1,63}\.)+([a-z]([-a-z0-9]*[a-z0-9]+)?){2,63}$";
    $header_injection_regex = "(\r|\n)";
    if($header[$config]!="")
         include($header[$config]);
    if($_POST["submit"] || $_POST["Submit"] || $_POST["submit_x"] || $_POST["Submit_x"])
    // begin global functions //
    // get visitor IP
         function getIP()
              if(getenv(HTTP_X_FORWARDED_FOR))
                   $user_ip=getenv("HTTP_X_FORWARDED_FOR");
              else
                   $user_ip=getenv("REMOTE_ADDR");
              return $user_ip;
    // get value of given key
         function parseArray($key)
              $arrayvalue=$_POST[$key];
              $count=1;
              extract($array_value);
              foreach($array_value as $part_value)
                   if($count > 1){$value.=", ";}
                   $value.=$part_value;
                   $count=$count+1;
              return $value;
    // stripslashes and autolink url's
         function parseValue($value)
              $value=preg_replace("/(http:\/\/+.[^\s]+)/i",'<a href="\\1">\\1</a>', $value);
              return $value;
    // html header if used
         function htmlHeader()
              $htmlHeader="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\">\n<html>\n<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$charset[$config]."\"></head>\n<body>\n<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"600\">\n";
              return $htmlHeader;
    // html footer if used
         function htmlFooter()
              $htmlFooter="</table>\n</body>\n</html>\n";
              return $htmlFooter;
    // build verticle table format
         function buildVertTable($fields, $intro, $to, $send_ip)
              $message=htmlHeader();
              if($intro != "")
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"2\">".$intro."</td>\n</tr>\n";
              $fields_check=preg_split('/,/',$fields);
              $run=sizeof($fields_check);
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $curvalue=$_POST[$cur_key];
                   if(is_array($cur_value))
                        $curvalue=parseArray($cur_key);
                   $curvalue=parseValue($cur_value);
                   if($allow_html[$config]=="no")
                        $curvalue=htmlspecialchars(nl2br($cur_value));
                   else
                        $curvalue=nl2br($cur_value);
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$cur_value."</td>\n</tr>\n";
              if($send_ip=="yes" && $to=="recipient")
                   $user_ip=getIP();
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n<td align=\"left\" valign=\"top\" width=\"100%\">".$user_ip."</td>\n</tr>\n";
              $message.=htmlFooter();
              return $message;
    // build horizontal table format
         function buildHorzTable($fields, $intro, $to, $send_ip)
              $message=htmlHeader();
              $fields_check=preg_split('/,/',$fields);
              $run=sizeof($fields_check);
              if($intro != "")
                   $message.="<tr>\n<td align=\"left\" valign=\"top\" colspan=\"".$run."\">".$intro."</td>\n</tr>\n";
              $message.="<tr>\n";
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>".$cur_key."</b></td>\n";
              if($send_ip=="yes" && $to=="recipient")
                   $message.="<td align=\"left\" valign=\"top\" style=\"white-space:nowrap;\"><b>Sender IP</b></td>\n";
              $message.="</tr>\n";
              $message.="<tr>\n";
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $curvalue=$_POST[$cur_key];
                   if(is_array($cur_value))
                        $curvalue=parseArray($cur_key);
                   $curvalue=parseValue($cur_value);
                   if($allow_html[$config]=="no")
                        $curvalue=htmlspecialchars(nl2br($cur_value));
                   else
                        $curvalue=nl2br($cur_value);
                   $message.="<td align=\"left\" valign=\"top\">".$cur_value."</td>\n";
              $message.="</tr>\n";
              $message.="<tr>\n";
              if($send_ip=="yes" && $to=="recipient")
                   $user_ip=getIP();
                   $message.="<td align=\"left\" valign=\"top\">".$user_ip."</td>\n";
              $message.="</tr>\n";
              $message.=htmlFooter();
              return $message;
    // build plain text format
         function buildTextTable($fields, $intro, $to, $send_ip)
              $message="";
              if($intro != "")
                   $message.=$intro."\n\n";
              $fields_check=preg_split('/,/',$fields);
              $run=sizeof($fields_check);
              for($i=0;$i<$run;$i++)
                   $cur_key=$fields_check[$i];
                   $curvalue=$_POST[$cur_key];
                   if(is_array($cur_value))
                        $curvalue=parseArray($cur_key);
                   $curvalue=parseValue($cur_value);
                   if($allow_html[$config]=="no")
                        $curvalue=htmlspecialchars($cur_value);
                   else
                        $curvalue=$cur_value;
                   $message.="".$cur_key.": ".$cur_value."\n";
              if($send_ip=="yes" && $to=="recipient")
                   $user_ip=getIP();
                   $message.="Sender IP: ".$user_ip."\n";
              return $message;
    // get the proper build fonction
         function buildTable($format, $fields, $intro, $to, $send_ip)
              if($format=="vert_table")
                   $message=buildVertTable($fields, $intro, $to, $send_ip);
              else if($format=="horz_table")
                   $message=buildHorzTable($fields, $intro, $to, $send_ip);
              else
                   $message=buildTextTable($fields, $intro, $to, $send_ip);
              return $message;
    // referrer checking security option
         function checkReferer()
              if($check_referrer=="yes")
                   $ref_check=preg_split('/,/',$referring_domains);
                   $ref_run=sizeof($ref_check);
                   $referer=$_SERVER['HTTP_REFERER'];
                   $domain_chk="no";
                   for($i=0;$i<$ref_run;$i++)
                        $cur_domain=$ref_check[$i];
                        if(stristr($referer,$cur_domain)){$domain_chk="yes";}
              else
                   $domain_chk="yes";
              return $domain_chk;
    // checking required fields and email fields
         function checkFields($text_fields, $email_fields, $regex)
               $error_message="";
              if($debug==1)
                   $error_message.="<li>text_fields: ".$text_fields."<br />email_fields: ".$email_fields."<br />reply_to_field: ".$reply_to_field."<br />reply_to_name: ".reply_to_name."</li>";
              if($text_fields != "")
                   $req_check=preg_split('/,/',$text_fields);
                   $req_run=sizeof($req_check);
                   for($i=0;$i<$req_run;$i++)
                        $cur_field_name=$req_check[$i];
                        $cur_field=$_POST[$cur_field_name];
                        if($cur_field=="")
                             $error_message.="<li>You are missing the <b>".$req_check[$i]."</b> field</li>\n";
              if($email_fields != "")
                   $email_check=preg_split('/,/',$email_fields);
                   $email_run=sizeof($email_check);
                   for($i=0;$i<$email_run;$i++)
                        $cur_email_name=$email_check[$i];
                        $cur_email=$_POST[$cur_email_name];
                        if($cur_email=="" || !eregi($regex, $cur_email))
                             $error_message.="<li>You are missing the <b>".$email_check[$i]."</b> field or it is not a valid email address.</li>\n";
              return $error_message;
    // attachment function
         function getAttachments($attachment_fields, $message, $content_type, $border)
              $att_message="This is a multi-part message in MIME format.\r\n";
              $att_message.="--{$border}\r\n";
              $att_message.=$content_type."\r\n";
              $att_message.="Content-Transfer-Encoding: 7bit\r\n\r\n";
              $att_message.=$message."\r\n\r\n";
              $att_check=preg_split('/,/',$attachment_fields);
              $att_run=sizeof($att_check);
              for($i=0;$i<$att_run;$i++)
                   $fileatt=$_FILES[$att_check[$i]]['tmp_name'];
                   $fileatt_name=$_FILES[$att_check[$i]]['name'];
                   $fileatt_type=$_FILES[$att_check[$i]]['type'];
                   if (is_uploaded_file($fileatt))
                        $file=fopen($fileatt,'rb');
                        $data=fread($file,filesize($fileatt));
                        fclose($file);
                        $data=chunk_split(base64_encode($data));
                        $att_message.="--{$border}\n";
                        $att_message.="Content-Type: {$fileatt_type}; name=\"{$fileatt_name}\"\r\n";
                        $att_message.="Content-Disposition: attachment; filename=\"{$fileatt_name}\"\r\n";
                        $att_message.="Content-Transfer-Encoding: base64\r\n\r\n".$data."\r\n\r\n";
              $att_message.="--{$border}--\n";
              return $att_message;
    // function to set content type
         function contentType($charset, $format)
              if($format=="vert_table")
                   $content_type="Content-type: text/html; charset=".$charset."\r\n";
              else if($format=="horz_table")
                   $content_type="Content-type: text/html; charset=".$charset."\r\n";
              else
                   $content_type="Content-type: text/plain; charset=".$charset."\r\n";
              return $content_type;
    // end global functions //
    // begin procedural scripting //
         // anti-spam empty field check
         if($_POST[$empty_field[$config]] != "")
              $empty_message = "<li>This submission failed and was flagged as spam.</li>\n";
         // anti-spam character scan check
         if(strlen($character_scan[$config]) > 0)
              $spam_message="";
              $field_check=preg_split('/,/',$character_scan[$config]);
              $field_run=sizeof($field_check);
              for($i=0;$i<$field_run;$i++)
                   $cur_field_name=$field_check[$i];
                   $cur_field=$_POST[$cur_field_name];
                   if(preg_match("/<(.|\n)+?>/", $cur_field) || preg_match("/\[(.|\n)+?\]/", $cur_field))
                        $spam_message.="<li>This message contains disallowed characters.</li>\n";
         // anti-spam time delay check
         if((strlen($time_delay[$config]) > 0 && strlen($_POST["time"]) > 0) || (strlen($time_delay[$config]) > 0 && (strlen($_POST["time"]) == 0 || !$_POST["time"])))
              if((time() - $_POST["time"]) < $time_delay[$config])
                   $time_message = "<li>This has been stopped by the timer, and is likely spam.</li>\n";
         // anti-spam CAPTCHA check
         if(strlen($captcha_codes[$config]) > 0)
              $captcha_check=preg_split('/,/',$captcha_codes[$config]);
              if(strtolower($_POST["captcha_entry"]) != strtolower($captcha_check[$_POST["captcha_code"]]))
                   $captcha_message = "<li>CAPTCHA test did not match.</li>\n";
         // anti-spam max URL check
         if(strlen($max_url_fields[$config]) > 0)
              $max_url_message="";
              $field_check=preg_split('/,/',$max_url_fields[$config]);
              $field_run=sizeof($field_check);
              for($i=0;$i<$field_run;$i++)
                   $cur_field_name=$field_check[$i];
                   $cur_field=$_POST[$cur_field_name];
                   preg_match_all("/http:/", $cur_field, $matches);
                   if(count($matches[0]) > $max_urls[$config])
                        $max_url_message.="<li>This message contains too many URL's.</li>\n";
         // set anti-spam flagging option
         if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) == 0)
              $set_flag = 2;
         else if(strlen($empty_message.$spam_message.$time_message.$captcha_message.$max_url_message) > 0 && strlen($flag_spam[$config]) > 0)
              $set_flag = 1;
         else
              $set_flag = 0;
         // header injection check
            $security_filter="";
         if(strlen($_POST[$reply_to_field[$config]]) > 0)
              if(eregi($header_injection_regex,$_POST[$reply_to_field[$config]]))
                   $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
              else
                   $reply_to_field_checked=$_POST[$reply_to_field[$config]];
         if(strlen($_POST[$reply_to_name[$config]]) > 0)
              if(eregi($header_injection_regex,$_POST[$reply_to_name[$config]]))
                   $security_filter.="<li>Header injection attempt detected, mail aborted.</li>\n";
              else
                   $reply_to_name_checked=$_POST[$reply_to_name[$config]];
         // check domain referrer and continue
         $domain_chk=checkReferer();
         if($domain_chk=="yes")
              $error_message=checkFields($required_fields[$config], $required_email_fields[$config], $regex);
              if(strlen($error_message) < 1 && strlen($security_filter) < 1 && $set_flag < 2)
                   // build appropriate message format for recipient
                   $content_type=contentType($charset[$config], $mail_type[$config]);
                   $message=buildTable($mail_type[$config], $mail_fields[$config], $mail_intro[$config], "recipient", $return_ip[$config]);
                   // build header data for recipient message
                   //$extra="From: ".$_POST[$reply_to_field[$config]]."\r\n";
                   $extra="From: ".$reply_to_name_checked." <".$reply_to_field_checked.">\r\n";
                   if($cc_tomail[$config]!="")
                        $extra.="Cc: ".$cc_tomail[$config]."\r\n";
                   if($bcc_tomail[$config]!="")
                        $extra.="Bcc: ".$bcc_tomail[$config]."\r\n";
                   if($mail_priority[$config]!="")
                        $extra.="X-Priority: ".$mail_priority[$config]."\r\n";
                   // get attachments if necessary
                   if($attachment_fields[$config]!="")
                        $semi_rand=md5(time());
                        $border="==Multipart_Boundary_x{$semi_rand}x";
                        $extra.="MIME-Version: 1.0\r\n";
                        $extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
                        $message=getAttachments($attachment_fields[$config], $message, $content_type, $border);
                   else
                        $extra.="MIME-Version: 1.0\r\n".$content_type;
                   // send recipient email
                   if($debug==1)
                        if($set_flag == 1)
                             $debug_text.="<p><b>Mail would have sent flagged for spam if not in debug mode.</b></p>";
                        else
                             $debug_text.="<p><b>Mail would have sent if not in debug mode.</b></p>";
                   else if($debug==0)
                        if($set_flag == 1)
                             $subject = $flag_spam[$config]." ".$subject[$config];
                        else
                             $subject = $subject[$config];
                        mail("".$tomail[$config]."", "".stripslashes($subject)."", "".stripslashes($message)."", "".$extra."");
                   // autoresponse email if necessary
                   if($send_copy[$config]=="yes")
                        // build appropriate message format for autoresponse
                        $content_type=contentType($charset[$config], $copy_format[$config]);
                        $message=buildTable($copy_format[$config], $copy_fields[$config], $copy_intro[$config], "autoresponder", $return_ip[$config]);
                        // build header data for autoresponse
                        $copy_tomail=$_POST[$copy_tomail_field[$config]];
                        $copy_extra="From: ".$copy_from[$config]."\r\n";
                        // get autoresponse  attachments if necessary
                        if($copy_attachment_fields[$config]!="")
                             $semi_rand=md5(time());
                             $border="==Multipart_Boundary_x{$semi_rand}x";
                             $copy_extra.="MIME-Version: 1.0\r\n";
                             $copy_extra.="Content-Type: multipart/mixed; boundary=\"{$border}\"";
                             $message=getAttachments($copy_attachment_fields[$config], $message, $content_type, $border);
                        else
                             $copy_extra.="MIME-Version: 1.0\r\n".$content_type;
                        // send autoresponse email
                        if($debug==1)
                             if($set_flag == 1)
                                  $debug_text.="<p><b>Autoresponder would have sent flagged for spam if not in debug mode.</b></p>";
                             else
                                  $debug_text.="<p><b>Autoresponder would have sent if not in debug mode.</b></p>";
                        else if($debug==0)
                             $send_copy = 1;
                             if($copy_tomail=="" || !eregi($regex,$copy_tomail))
                                  $send_copy = 0;
                             if($send_copy == 1)
                                  if($set_flag == 1)
                                       $copy_subject = $flag_spam[$config]." ".$copy_subject[$config];
                                  else
                                       $copy_subject = $copy_subject[$config];
                                  mail("$copy_tomail", "".$copy_subject."", "$message", "$copy_extra");
                   // showing thanks pages from a successful submission
                   if($thanks_page[$config]=="")
                        echo "<h3>".$thanks_page_title[$config]."</h3>\n";
                        echo "<p>".$thanks_page_text[$config]."</p>\n";
                        if(strlen($debug_text) > 0)
                             echo "<p><b><i>".$debug_text."</i></b></p>\n";
                   else
                        header("Location: ".$thanks_page[$config]);
              else
                   // entering error page options from missing required fields
                   if($error_page[$config]=="")
                        echo "<h3>".$error_page_title[$config]."</h3>\n";
                        echo "<ul>\n";
                        echo $security_filter.$empty_message.$error_message.$spam_message.$time_message.$captcha_message.$max_url_message;
                        echo "</ul>\n";
                        echo "<p>".$error_page_text[$config]."</p>\n";
                   else
                        header("Location: ".$error_page[$config]);
         else
              echo "<h3>".$error_page_title[$config]."</h3>\n";
              // message if unauthorized domain trigger from referer checking option
              echo "<p>Sorry, mailing request came from an unauthorized domain.</p>\n";
    // end procedural scripting //
    else
         echo "<h3>Error</h3>";
         echo "<p>No form data has been sent to the script</p>\n";
    if($footer[$config]!="")
         include($footer[$config]);
    ob_end_flush();
    ?>
    verify.php
    <?php
    require_once('recaptchalib.php');
    $privatekey = "i hide this on the forum";
    $resp = recaptcha_check_answer ($privatekey,
                                   $_SERVER["REMOTE_ADDR"],
                                   $_POST["recaptcha_challenge_field"],
                                   $_POST["recaptcha_response_field"]);
    if (!$resp->is_valid) {
       // What happens when the CAPTCHA was entered incorrectly
       die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
            "(reCAPTCHA said: " . $resp->error . ")");
    } else {
       // Your code here to handle a successful verification
    ?>
    We have a saying in the Netherlands; "Not being abled to see the tree's trough the forest"
    Well i dont see it anymore...
    I managed to get it in the code but it doesnt work.
    I hope someone can help me out!

    @Nancy O.
    Thanks for your support i appreciate it that you helped me out a many times.
    However i have read all of the topics you posted.
    I know in the mail form i can disable the "sort of Captcha". I wanted to disable it and insert reCaptcha instead.
    I will re-make the form because like you said (and i already figured it out myself) ;
    "b) Don't modify forms until you get a very basic form working on your server."
    And youre right, im taking too much work at once.
    @CowboyInAZ
    Im a hobbyist that learns really really fast.
    Before March 23 i never used CSS, Javascript and XHTML. And never combined them all together with PHP. (never ever created a php based file from scratch)
    The reason why i use other persons code is because i learn faster with examples, and because i dont need to reinvent the wheel if someone already invented it. The only thing i do with it is learn the workings, customise it and at last, rewrite the code when i understand it.
    If you look at my current site: http://www.wientjesvoegwerk.nl/
    You will notice that the site is validated by W3C with no errors and warnings.
    I think it was Nancy O. that gave me the link to the validator. Thats how i discovered the service.
    You need to know that in 1 day (from 63 errors and 12 warnings) i removed all errors. And i didnt knew much about it, and why errors happend while the site looks fine.
    So im just curious how things work and thats why i "steal" codes and adjust them to learn myself.
    I also want a education like you spoke of, but im interested in a different media.
    I want to be abled to create my dream project wich involves new ways for game studios to earn money.
    This is just a simple start, im also taking tutorials in C#, C++.

  • Urgent: SAX parser bean is not working in JSP page

    Hi All,
    I have created a bean "ReadAtts" and included into a jsp file using
    "useBean", It is not working. I tried all possibilities. But Failed Plz Help me.
    Below are the details:
    Java Bean: ReadAtts.java
    package sax;
    import java.io.*;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    import java.util.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import javax.xml.parsers.ParserConfigurationException;
    public class ReadAtts extends DefaultHandler implements java.io.Serializable
         private Vector attNames = new Vector(); //Stores all the att names from the XML
         private Vector attValues = new Vector();
         private Vector att = new Vector();
         private Locator locator;
         private static String start="",end="",QueryString="",QString1="",QString2="";
    private static boolean start_collecting=false;
         public ReadAtts()
         public Vector parse(String filename,String xpath) throws Exception
    QueryString=xpath;
         StringTokenizer QueryString_ST = new StringTokenizer(QueryString,"/");
         int stLen = QueryString_ST.countTokens();
         while(QueryString_ST.hasMoreTokens())
              if((QueryString_ST.countTokens())>1)
              QString1 = QueryString_ST.nextToken();
    else if((QueryString_ST.countTokens())>0)
                   QString2 = QueryString_ST.nextToken();
         SAXParserFactory spf =
    SAXParserFactory.newInstance();
    spf.setValidating(false);
    SAXParser saxParser = spf.newSAXParser();
    // create an XML reader
    XMLReader reader = saxParser.getXMLReader();
    FileReader file = new FileReader(filename);
    // set handler
    reader.setContentHandler(this);
    // call parse on an input source
    reader.parse(new InputSource(file));
         att.add("This is now added");
         //return attNames;
    return att;
    public void setDocumentLocator(Locator locator)
    this.locator = locator;
    public void startDocument() {   }
    public void endDocument() {  }
    public void startPrefixMapping(String prefix, String uri) { }
    public void endPrefixMapping(String prefix) {  }
    /** The opening tag of an element. */
    public void startElement(String namespaceURI, String localName,String qName, Attributes atts)
    start=localName;
    if(start.equals(QString2))
    start_collecting=true; //start collecting nodes
    if(start_collecting)
    if((atts.getLength())>0)
    for(int i=0;i<=(atts.getLength()-1);i++)
    attNames.add((String)atts.getLocalName(i));
    attValues.add((String)atts.getValue(i));
    /** The closing tag of an element. */
    public void endElement(String namespaceURI, String localName, String qName)
    end = localName;
    if(end.equals(QString2))
         start_collecting=false; //stop colelcting nodes
    /** Character data. */
    public void characters(char[] ch, int start, int length) { }
    /** Ignorable whitespace character data. */
    public void ignorableWhitespace(char[] ch, int start, int length){ }
    /** Processing Instruction */
    public void processingInstruction(String target, String data) { }
    /** A skipped entity. */
    public void skippedEntity(String name) { }
    public static void main(String[] args)
    String fname=args[0];
    String Xpath=args[1];
    System.out.println("\n from main() "+(new ReadAtts().parse(fname,Xpath)));
    //System.out.println("\n from main() "+new ReadAtts().attNames());
    //System.out.println("\n from main() "+new ReadAtts().attValues());
    JSP File:
    <%@ page import="sax.*,java.io.*,java.util.*,java.lang.*,java.text.*;" %>
    <jsp:useBean id="p" class="sax.ReadAtts"/>
    Data after Parsing is.....
    <%=p.parse"E:/Log.xml","/acq/service/metrics/system/stackUsage")%>
    Expected Output:
    The jsp file should print all the vector objects from the "ReadAtts" bean
    Actual Output:
    Data after Parsing.......[]
    Thanks for your time.....
    Newton
    Bangalore. INDIA

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • HTML multipart form is not working in jsp page

    Hi
    i have jsp page, has a HTML from with file upload field , when i click the send button , nothing happened as if the button did not submit the form. ie the message at line 12 is not printed out.
    can any one help please.
    <%@ page errorPage="..\error\error.jsp" %>
    <%@ page pageEncoding="windows-1256" %>
    <%@ page language="java" import="javazoom.upload.*,java.util.*,java.sql.ResultSet" %>
    <jsp:useBean id="upBean" scope="page" class="javazoom.upload.UploadBean" >
      <jsp:setProperty name="upBean" property="folderstore" value="<%=request.getRealPath("thuraya//uploads")%>"  />
    </jsp:useBean>
    <jsp:useBean id="dbc" class="mypackage.DBConnection" scope="session" />
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.println("addbtn");
            //do upload file + insert in database
             if (MultipartFormDataRequest.isMultipartFormData(request))
             // Uses MultipartFormDataRequest to parse the HTTP request.
             MultipartFormDataRequest mrequest = new MultipartFormDataRequest(request);
             String todo = null;
             if (mrequest != null) todo = mrequest.getParameter("todo");
                 if ( (todo != null) && (todo.equalsIgnoreCase("upload")) )
                    Hashtable files = mrequest.getFiles();
                    if ( (files != null) && (!files.isEmpty()) )
                        UploadFile file = (UploadFile) files.get("filename");
                        if (file != null)
                                            out.println("<li>Form field : uploadfile"+"<BR> Uploaded file : "+file.getFileName()+" ("+file.getFileSize()+" bytes)"+"<BR> Content Type : "+file.getContentType());
                                            String fileName=file.getFileName();
                                            String ran=System.currentTimeMillis()+"";
                                            String ext=fileName.substring(   ( fileName.length()-4),fileName.length() );
                                            file.setFileName(ran+ext);
                        // Uses the bean now to store specified by jsp:setProperty at the top.
                        upBean.store(mrequest, "filename");
                                            String title=request.getParameter("title");
                                            String content=request.getParameter("elm1");
                                            int x=dbc.addNews(title,content,file.getFileName(),2,1);
                                            if(x==1)
                                                     out.print("New Vedio has been addedd Successfully");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                                                     else{
                                                      out.print("An Error Occured while adding new Vedio");
                                                      response.setHeader("Refresh","1;URL=uploadVedio.jsp");
                    else
                      out.println("<li>No uploaded files");
             else out.println("<BR> todo="+todo);
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input onClick="submit()" name="addBTN" type="button" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

    the problem is not because of java code insdie jsp page
    I have removed all things but the form and it is still not working
    here is the modified code:
    <!-- add news-->
    <%
    if(request.getParameter("addBTN") != null){
            out.print("addBTN");
    %>
    <!-- end of add news-->
    <form action="" method="post" enctype="multipart/form-data" name="upform" >
      <table width="99%" border="0" align="center" cellpadding="1" cellspacing="1">
        <tr>
          <td colspan="2" align="right" bgcolor="#EAEAEA" class="borderdTable"><p>'6'A) .(1 ,/J/</p></td>
        </tr>
        <tr>
          <td width="87%" align="right"><label>
            <input name="title" type="text" class="rightText" id="title">
          </label></td>
          <td width="13%" align="right">9FH'F 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><textarea name="elm1" cols="50" rows="10" id="elm1" style="direction:rtl" >
              </textarea></td>
          <td align="right">*A'5JD 'D.(1</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input type="file" name="filename" id="filename">
          </label></td>
          <td align="right">5H1)</td>
        </tr>
        <tr>
          <td align="right"><label>
            <input name="addBTN" type="submit" class="btn" id="addBTN" value="  '6'A) .(1 ">
          </label></td>
          <td align="right"> </td>
        </tr>
      </table>
    </form>
    <!-- TinyMCE -->
    <script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
            tinyMCE.init({
                    mode : "textareas",
                    theme : "simple",
                    directionality : "rtl"
    </script>
    <!--end of TinyMCE -->

  • Safari 2.0 textbox bug?

    I was using Safari 2.0 on MacOS 10.4.2. I loaded a page with a textbox that already contained several lines of text. The text was unreadable because all the characters appear to be piled up on top of one another. This happened on several different pages. It did not happen with Safari 1.3.1 on MacOS 10.3.9. Is this a new bug, and is there a workaround?
    I can't give you the URL because it's password-restricted, but here's part of the source code:
    <table style="height:40%; width:90%; margin-left:auto; margin-right:auto;">
    <tr>
    <td class="boldtext" style="font-size:16px; text-align:left;">Question Text</td>
    <td class="boldtext" style="font-size:16px; text-align:left;">Figures</td>
    </tr>
    <td style="width:50%; vertical-align:top; height:100%;">
    <table class="whiteTable" style="height:100%; width:100%; background-color:f6f7ed; vertical-align:top;">
    <tr><td style="width:100%; height:100%; padding-left:30px; padding-right:30px; padding-top:10px; padding-bottom:10px; vertical-align:top; text-align:center;">
    <textarea name="statement" style="height:150px; width:400px;">
    <script>document.write(getStatement());</script>
    </textarea>
    <script>
    document.problemform.statement.value=getStatement();
    </script>
    </td></tr></table>
    The textbox contents are set with document.write(getStatement()). Again, this all works in Safari 1.3.

    I can confirm this bug (isn't it irritating?). One solution is to use another browser; I've never had this problem in Firefox. Another would be to turn off AutoFill; even though you're not using an AutoFill entry, AutoFill seems to have this unfortunate effect on leading zeros entered manually.
    Next time you run across a page that won't take your zip code, click on Safari/Report bugs to Apple and send a bug report. Maybe if enough of us on the East Coast complain, someone will fix it.

  • PLEASE HELP A.S.A.P

    <form id="registrationform" name="register" method="post"
    action="mailto:<[email protected]>">
    <div align="center">
    <p>
    <input type="hidden" name="recipient"
    value="[email protected]" />
    <input type="hidden" name="redirect" value="
    http://redcross-keychapter.org/thankyou.htm"
    />
    <span class="RedCrossTitle">Register for Disaster
    Courses</span></p>
    <br />
    <a href="courses.htm">Back to Disaster
    Courses</a>
    <p class="style7"> </p>
    <table width="510" border="0" bordercolor="#FF0000">
    <tr>
    <td ><p align="left"><strong>Full Name
    :</strong></p></td>
    <td><div align="left">
    <input name="name" type="text" id="name" size="30" />
    </div></td>
    </tr>
    <tr>
    <td width="120""><p
    align="left"><strong>Address, City, State, Zip :
    </strong></p></td>
    <td width="350"><label>
    <div align="left">
    <textarea name="AddressCityStateZip" cols="30" rows="3"
    id="AddressCityStateZip"></textarea>
    </div>
    </label></td>
    </tr>
    <tr>
    <td ><p
    align="left"><strong>E-mail:</strong></p></td>
    <td><div align="left">
    <input name="email" type="text" id="email" size="30"
    />
    </div></td>
    </tr>
    <tr>
    <td><p align="left"><strong>Phone Number:
    </strong></p></td>
    <td><div align="left">
    <p>
    <input name="phone" type="text" id="phone" size="30"
    maxlength="20" />
    </p>
    <p>  </p>
    </div></td>
    </tr>
    <tr>
    <td><p align="left" class="style5">Course Time
    and Place: </p> </td>
    <td><div align="left">
    <input name="TimePlace" type="text" id="TimePlace"
    size="30" />
    </div></td>
    </tr>
    <tr>
    <td><p
    align="left"><strong>Course:</strong></p></td>
    <td><div align="left">
    <p>
    <input name="course" type="text" id="course" size="30"
    />
    </p>
    <p>  </p>
    </div></td>
    </tr>
    <tr>
    <td valign="top"><p align="left"><strong
    class="style2">Any questions or comments about the course
    :</strong></p></td>
    <td><div align="left">
    <textarea name="comment" cols="30" rows="5"
    id="comment"></textarea>
    </div></td>
    </tr>
    <tr>
    <td colspan="2">
    <div align="center">
    <input type="submit" name="Submit" value="Submit" />
    <input name="Reset" type="submit" id="Reset"
    value="Reset" />
    </div></td>
    </tr>
    </table>
    <br />
    </div>
    <p align="center"><strong><br />
    <br />
    </strong></p>
    </form>

    do you have a question?
    babi_face_beauty87 wrote:
    >
    >
    > <form id="registrationform" name="register"
    method="post"
    > action="mailto:<[email protected]>">
    >
    > <div align="center">
    > <p>
    > <input type="hidden" name="recipient"
    > value="[email protected]" />
    > <input type="hidden" name="redirect"
    > value="
    http://redcross-keychapter.org/thankyou.htm"
    />
    > <span class="RedCrossTitle">Register for Disaster
    > Courses</span></p>
    > <br />
    > <a href="courses.htm">Back to Disaster
    Courses</a>
    > <p class="style7"> </p>
    > <table width="510" border="0"
    bordercolor="#FF0000">
    > <tr>
    > <td ><p align="left">
    Full Name :</p></td>
    > <td><div align="left">
    > <input name="name" type="text" id="name" size="30"
    />
    > </div></td>
    > </tr>
    >
    > <tr>
    > <td width="120""><p align="left">
    Address, City, State, Zip
    > : </p></td>
    > <td width="350"><label>
    > <div align="left">
    > <textarea name="AddressCityStateZip" cols="30"
    rows="3"
    > id="AddressCityStateZip"></textarea>
    > </div>
    > </label></td>
    > </tr>
    > <tr>
    > <td ><p align="left">
    E-mail:</p></td>
    > <td><div align="left">
    > <input name="email" type="text" id="email" size="30"
    />
    > </div></td>
    > </tr>
    > <tr>
    > <td><p align="left">
    Phone Number: </p></td>
    > <td><div align="left">
    > <p>
    > <input name="phone" type="text" id="phone" size="30"
    > maxlength="20" />
    > </p>
    > <p>  </p>
    > </div></td>
    > </tr>
    > <tr>
    > <td><p align="left" class="style5">Course
    Time and Place: </p>
    > </td>
    > <td><div align="left">
    > <input name="TimePlace" type="text" id="TimePlace"
    > size="30" />
    > </div></td>
    > </tr>
    > <tr>
    > <td><p align="left">
    Course:</p></td>
    > <td><div align="left">
    > <p>
    > <input name="course" type="text" id="course"
    size="30" />
    > </p>
    > <p>  </p>
    > </div></td>
    > </tr>
    > <tr>
    > <td valign="top"><p align="left"><strong
    class="style2">Any
    > questions or comments about the course
    :</p></td>
    > <td><div align="left">
    > <textarea name="comment" cols="30" rows="5"
    > id="comment"></textarea>
    > </div></td>
    > </tr>
    > <tr>
    > <td colspan="2">
    >
    > <div align="center">
    > <input type="submit" name="Submit" value="Submit"
    />
    > <input name="Reset" type="submit" id="Reset"
    value="Reset"
    > />
    > </div></td>
    > </tr>
    > </table>
    > <br />
    > </div>
    > <p align="center">
    <br />
    > <br />
    > </p>
    > </form>
    >
    >

  • Insert html

    I am creating a mobile application in indesign and then using DPS...wondering how i can insert the following html...they are learning activities that we created using a seperate application (Hot Potatoes)...i have succesfully integrated them into applications using Dreamweaver and Phonegap but indesign and DPS appears to be the direction that this is moving.  When i try and insert the code into the "insert html" function it doesn't all fit so I am wondering if there is any way to work around this...
    not sure if this is better for the indesign forum or the DPS forum...the code for the activities is below...thanks
    <?xml version="1.0"?>
           <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
           <html xmlns="http://www.w3.org/1999/xhtml"
                 xml:lang="en"><head>
    <meta name="author" content="Created with Hot Potatoes by Half-Baked Software, registered to Tim Fanning."></meta>
    <meta name="keywords" content="Hot Potatoes, Hot Potatoes, Half-Baked Software, Java, University of Victoria"></meta>
    <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>
    Acura NSX Commercial
    </title>
    <!-- Made with executable version Java Hot Potatoes 6.1.0.5 -->
    <!-- The following insertion allows you to add your own code directly to this head tag from the configuration screen -->
    <style type="text/css">
    /* This is the CSS stylesheet used in the exercise. */
    /* Elements in square brackets are replaced by data based on configuration settings when the exercise is built. */
    /* BeginCorePageCSS */
    /* Made with executable version Java Hot Potatoes 6.1.0.5 */
    /* Hack to hide a nested Quicktime player from IE, which can't handle it. */
    * html object.MediaPlayerNotForIE {
              display: none;
    body{
              font-family: gill sans, heletevica;
              background-color: #ffffff;
              color: #000000;
              margin-right: 5%;
              margin-left: 5%;
              font-size: 14;
    p{
              text-align: left;
              margin: 0px;
              font-size: 100%;
    table,div,span,td{
              font-size: 100%;
              color: #000000;
    div.Titles{
              padding: 0.5em;;
              text-align: center;
              color: #009900;
    button{
              font-family: gill sans, heletevica;
              font-size: 100%;
              display: inline;
    .ExerciseTitle{
              font-size: 140%;
              color: #009900;
    .ExerciseSubtitle{
              font-size: 120%;
              color: #009900;
    div.StdDiv{
              background-color: #ffffff;
              text-align: center;
              font-size: 100%;
              color: #000000;
              padding: 0.5em;
              border-style: solid;
              border-width: 1px 1px 1px 1px;
              border-color: #000000;
              margin-bottom: 1px;
    /* EndCorePageCSS */
    .RTLText{
              text-align: right;
              font-size: 150%;
              direction: rtl;
              font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", gill sans, heletevica;
    .CentredRTLText{
              text-align: center;
              font-size: 150%;
              direction: rtl;
              font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", gill sans, heletevica;
    button p.RTLText{
              text-align: center;
    .RTLGapBox{
              text-align: right;
              font-size: 150%;
              direction: rtl;
              font-family: "Times New Roman", gill sans, heletevica;
    .Guess{
              font-weight: bold;
    .CorrectAnswer{
              font-weight: bold;
    div#Timer{
              padding: 0.25em;
              margin-left: auto;
              margin-right: auto;
              text-align: center;
              color: #009900;
    span#TimerText{
              padding: 0.25em;
              border-width: 1px;
              border-style: solid;
              font-weight: bold;
              display: none;
              color: #009900;
    span.Instructions{
    div.ExerciseText{
    .FeedbackText, .FeedbackText span.CorrectAnswer, .FeedbackText span.Guess, .FeedbackText span.Answer{
              color: #009900;
    .LeftItem{
              font-size: 100%;
              color: #000000;
              text-align: left;
    .RightItem{
              font-weight: bold;
              font-size: 100%;
              color: #000000;
    span.CorrectMark{
    input, textarea{
              font-family: gill sans, heletevica;
              font-size: 120%;
    select{
              font-size: 100%;
    div.Feedback {
              background-color: #ffffff;
              left: 33%;
              width: 34%;
              top: 33%;
              z-index: 1;
              border-style: solid;
              border-width: 1px;
              padding: 5px;
              text-align: center;
              color: #009900;
              position: absolute;
              display: none;
              font-size: 100%;
    div.ExerciseDiv{
              color: #000000;
    /* JMatch flashcard styles */
    table.FlashcardTable{
              background-color: transparent;
              color: #000000;
              border-color: #000000;
              margin-left: 5%;
              margin-right: 5%;
              margin-top: 2em;
              margin-bottom: 2em;
              width: 90%;
              position: relative;
              text-align: center;
              padding: 0px;
    table.FlashcardTable tr{
              border-style: none;
              margin: 0px;
              padding: 0px;
              background-color: #ffffff;
    table.FlashcardTable td.Showing{
              font-size: 140%;
              text-align: center;
              width: 50%;
              display: table-cell;
              padding: 2em;
              margin: 0px;
              border-style: solid;
              border-width: 1px;
              color: #000000;
              background-color: #ffffff;
    table.FlashcardTable td.Hidden{
              display: none;
    /* JMix styles */
    div#SegmentDiv{
              margin-top: 2em;
              margin-bottom: 2em;
              text-align: center;
    a.ExSegment{
              font-size: 120%;
              font-weight: bold;
              text-decoration: none;
              color: #000000;
    span.RemainingWordList{
              font-style: italic;
    div.DropLine {
              position: absolute;
              text-align: center;
              border-bottom-style: solid;
              border-bottom-width: 1px;
              border-bottom-color: #009900;
              width: 80%;
    /* JCloze styles */
    .ClozeWordList{
              text-align: center;
              font-weight: bold;
    div.ClozeBody{
              text-align: left;
              margin-top: 2em;
              margin-bottom: 2em;
              line-height: 2.0
    span.GapSpan{
              font-weight: bold;
    /* JCross styles */
    table.CrosswordGrid{
              margin: auto auto 1em auto;
              border-collapse: collapse;
              padding: 0px;
              background-color: #000000;
    table.CrosswordGrid tbody tr td{
              width: 1.5em;
              height: 1.5em;
              text-align: center;
              vertical-align: middle;
              font-size: 140%;
              padding: 1px;
              margin: 0px;
              border-style: solid;
              border-width: 1px;
              border-color: #000000;
              color: #000000;
    table.CrosswordGrid span{
              color: #000000;
    table.CrosswordGrid td.BlankCell{
              background-color: #000000;
              color: #000000;
    table.CrosswordGrid td.LetterOnlyCell{
              text-align: center;
              vertical-align: middle;
              background-color: #ffffff;
              color: #000000;
              font-weight: bold;
    table.CrosswordGrid td.NumLetterCell{
              text-align: left;
              vertical-align: top;
              background-color: #ffffff;
              color: #000000;
              padding: 1px;
              font-weight: bold;
    .NumLetterCellText{
              cursor: pointer;
              color: #000000;
    .GridNum{
              vertical-align: super;
              font-size: 66%;
              font-weight: bold;
              text-decoration: none;
              color: #000000;
    .GridNum:hover, .GridNum:visited{
              color: #000000;
    table#Clues{
              margin: auto;
              vertical-align: top;
    table#Clues td{
              vertical-align: top;
    table.ClueList{
      margin: auto;
    td.ClueNum{
              text-align: right;
              font-weight: bold;
              vertical-align: top;
    td.Clue{
              text-align: left;
    div#ClueEntry{
              text-align: left;
              margin-bottom: 1em;
    /* Keypad styles */
    div.Keypad{
              text-align: center;
              display: none; /* initially hidden, shown if needed */
              margin-bottom: 0.5em;
    div.Keypad button{
              font-family: gill sans, heletevica;
              font-size: 120%;
              background-color: #ffffff;
              color: #000000;
              width: 2em;
    /* JQuiz styles */
    div.QuestionNavigation{
              text-align: center;
    .QNum{
              margin: 0em 1em 0.5em 1em;
              font-weight: bold;
              vertical-align: middle;
    textarea{
              font-family: gill sans, heletevica;
    .QuestionText{
              text-align: left;
              margin: 0px;
              font-size: 100%;
    .Answer{
              font-size: 120%;
              letter-spacing: 0.1em;
    .PartialAnswer{
              font-size: 120%;
              letter-spacing: 0.1em;
              color: #009900;
    .Highlight{
              color: #000000;
              background-color: #ffff00;
              font-weight: bold;
              font-size: 120%;
    ol.QuizQuestions{
              text-align: left;
              list-style-type: none;
    li.QuizQuestion{
              padding: 1em;
              border-style: solid;
              border-width: 0px 0px 1px 0px;
    ol.MCAnswers{
              text-align: left;
              list-style-type: upper-alpha;
              padding: 1em;
    ol.MCAnswers li{
              margin-bottom: 1em;
    ol.MSelAnswers{
              text-align: left;
              list-style-type: lower-alpha;
              padding: 1em;
    div.ShortAnswer{
              padding: 1em;
    .FuncButton {
              text-align: center;
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              color: #000000;
              background-color: #ffffff;
              border-width: 2px;
              padding: 3px 6px 3px 6px;
              cursor: pointer;
    .FuncButtonUp {
              color: #ffffff;
              text-align: center;
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              background-color: #000000;
              color: #ffffff;
              border-width: 2px;
              padding: 3px 6px 3px 6px;
              cursor: pointer;
    .FuncButtonDown {
              color: #ffffff;
              text-align: center;
              border-style: solid;
              border-left-color: #7f7f7f;
              border-top-color: #7f7f7f;
              border-right-color: #ffffff;
              border-bottom-color: #ffffff;
              background-color: #000000;
              color: #ffffff;
              border-width: 2px;
              padding: 3px 6px 3px 6px;
              cursor: pointer;
    /*BeginNavBarStyle*/
    div.NavButtonBar{
              background-color: #ffffff;
              text-align: center;
              margin: 2px 0px 2px 0px;
              clear: both;
              font-size: 100%;
    .NavButton {
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              background-color: #ffffff;
              color: #000000;
              border-width: 2px;
              cursor: pointer;
    .NavButtonUp {
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              color: #ffffff;
              background-color: #000000;
              border-width: 2px;
              cursor: pointer;
    .NavButtonDown {
              border-style: solid;
              border-left-color: #7f7f7f;
              border-top-color: #7f7f7f;
              border-right-color: #ffffff;
              border-bottom-color: #ffffff;
              color: #ffffff;
              background-color: #000000;
              border-width: 2px;
              cursor: pointer;
    /*EndNavBarStyle*/
    a{
              color: #009900;
    a:visited{
              color: #009900;
    a:hover{
              color: #009900;
    div.CardStyle {
              position: absolute;
              font-family: gill sans, heletevica;
              font-size: 100%;
              padding: 5px;
              border-style: solid;
              border-width: 1px;
              color: #000000;
              background-color: #ffffff;
              left: -50px;
              top: -50px;
              overflow: visible;
    .rtl{
              text-align: right;
              font-size: 140%;
    </style>
    <script type="text/javascript">
    //<![CDATA[
    <!--
    function Client(){
    //if not a DOM browser, hopeless
              this.min = false; if (document.getElementById){this.min = true;};
              this.ua = navigator.userAgent;
              this.name = navigator.appName;
              this.ver = navigator.appVersion; 
    //Get data about the browser
              this.mac = (this.ver.indexOf('Mac') != -1);
              this.win = (this.ver.indexOf('Windows') != -1);
    //Look for Gecko
              this.gecko = (this.ua.indexOf('Gecko') > 1);
              if (this.gecko){
                        this.geckoVer = parseInt(this.ua.substring(this.ua.indexOf('Gecko')+6, this.ua.length));
                        if (this.geckoVer < 20020000){this.min = false;}
    //Look for Firebird
              this.firebird = (this.ua.indexOf('Firebird') > 1);
    //Look for Safari
              this.safari = (this.ua.indexOf('Safari') > 1);
              if (this.safari){
                        this.gecko = false;
    //Look for IE
              this.ie = (this.ua.indexOf('MSIE') > 0);
              if (this.ie){
                        this.ieVer = parseFloat(this.ua.substring(this.ua.indexOf('MSIE')+5, this.ua.length));
                        if (this.ieVer < 5.5){this.min = false;}
    //Look for Opera
              this.opera = (this.ua.indexOf('Opera') > 0);
              if (this.opera){
                        this.operaVer = parseFloat(this.ua.substring(this.ua.indexOf('Opera')+6, this.ua.length));
                        if (this.operaVer < 7.04){this.min = false;}
              if (this.min == false){
                        alert('Your browser may not be able to handle this page.');
    //Special case for the horrible ie5mac
              this.ie5mac = (this.ie&&this.mac&&(this.ieVer<6));
    var C = new Client();
    //for (prop in C){
    //          alert(prop + ': ' + C[prop]);
    //CODE FOR HANDLING NAV BUTTONS AND FUNCTION BUTTONS
    //[strNavBarJS]
    function NavBtnOver(Btn){
              if (Btn.className != 'NavButtonDown'){Btn.className = 'NavButtonUp';}
    function NavBtnOut(Btn){
              Btn.className = 'NavButton';
    function NavBtnDown(Btn){
              Btn.className = 'NavButtonDown';
    //[/strNavBarJS]
    function FuncBtnOver(Btn){
              if (Btn.className != 'FuncButtonDown'){Btn.className = 'FuncButtonUp';}
    function FuncBtnOut(Btn){
              Btn.className = 'FuncButton';
    function FuncBtnDown(Btn){
              Btn.className = 'FuncButtonDown';
    function FocusAButton(){
              if (document.getElementById('CheckButton1') != null){
                        document.getElementById('CheckButton1').focus();
              else{
                        if (document.getElementById('CheckButton2') != null){
                                  document.getElementById('CheckButton2').focus();
                        else{
                                  document.getElementsByTagName('button')[0].focus();
    //CODE FOR HANDLING DISPLAY OF POPUP FEEDBACK BOX
    var topZ = 1000;
    function ShowMessage(Feedback){
              var Output = Feedback + '<br /><br />';
              document.getElementById('FeedbackContent').innerHTML = Output;
              var FDiv = document.getElementById('FeedbackDiv');
              topZ++;
              FDiv.style.zIndex = topZ;
              FDiv.style.top = TopSettingWithScrollOffset(30) + 'px';
              FDiv.style.display = 'block';
              ShowElements(false, 'input');
              ShowElements(false, 'select');
              ShowElements(false, 'object');
              ShowElements(true, 'object', 'FeedbackContent');
    //Focus the OK button
              setTimeout("document.getElementById('FeedbackOKButton').focus()", 50);
    function ShowElements(Show, TagName, ContainerToReverse){
    // added third argument to allow objects in the feedback box to appear
    //IE bug -- hide all the form elements that will show through the popup
    //FF on Mac bug : doesn't redisplay objects whose visibility is set to visible
    //unless the object's display property is changed
              //get container object (by Id passed in, or use document otherwise)
              TopNode = document.getElementById(ContainerToReverse);
              var Els;
              if (TopNode != null) {
                        Els = TopNode.getElementsByTagName(TagName);
              } else {
                        Els = document.getElementsByTagName(TagName);
              for (var i=0; i<Els.length; i++){
                        if (TagName == "object") {
                                  //manipulate object elements in all browsers
                                  if (Show == true){
                                            Els[i].style.visibility = 'visible';
                                            //get Mac FireFox to manipulate display, to force screen redraw
                                            if (C.mac && C.gecko) {Els[i].style.display = '';}
                                  else{
                                            Els[i].style.visibility = 'hidden';
                                            if (C.mac && C.gecko) {Els[i].style.display = 'none';}
                        else {
                                  // tagName is either input or select (that is, Form Elements)
                                  // ie6 has a problem with Form elements, so manipulate those
                                  if (C.ie) {
                                            if (C.ieVer < 7) {
                                                      if (Show == true){
                                                                Els[i].style.visibility = 'visible';
                                                      else{
                                                                Els[i].style.visibility = 'hidden';
    function HideFeedback(){
              document.getElementById('FeedbackDiv').style.display = 'none';
              ShowElements(true, 'input');
              ShowElements(true, 'select');
              ShowElements(true, 'object');
              if (Finished == true){
                        Finish();
    //GENERAL UTILITY FUNCTIONS AND VARIABLES
    //PAGE DIMENSION FUNCTIONS
    function PageDim(){
    //Get the page width and height
              this.W = 600;
              this.H = 400;
              this.W = document.getElementsByTagName('body')[0].clientWidth;
              this.H = document.getElementsByTagName('body')[0].clientHeight;
    var pg = null;
    function GetPageXY(El) {
              var XY = {x: 0, y: 0};
              while(El){
                        XY.x += El.offsetLeft;
                        XY.y += El.offsetTop;
                        El = El.offsetParent;
              return XY;
    function GetScrollTop(){
              if (typeof(window.pageYOffset) == 'number'){
                        return window.pageYOffset;
              else{
                        if ((document.body)&&(document.body.scrollTop)){
                                  return document.body.scrollTop;
                        else{
                                  if ((document.documentElement)&&(document.documentElement.scrollTop)){
                                            return document.documentElement.scrollTop;
                                  else{
                                            return 0;
    function GetViewportHeight(){
              if (typeof window.innerHeight != 'undefined'){
                        return window.innerHeight;
              else{
                        if (((typeof document.documentElement != 'undefined')&&(typeof document.documentElement.clientHeight !=
         'undefined'))&&(document.documentElement.clientHeight != 0)){
                                  return document.documentElement.clientHeight;
                        else{
                                  return document.getElementsByTagName('body')[0].clientHeight;
    function TopSettingWithScrollOffset(TopPercent){
              var T = Math.floor(GetViewportHeight() * (TopPercent/100));
              return GetScrollTop() + T;
    //CODE FOR AVOIDING LOSS OF DATA WHEN BACKSPACE KEY INVOKES history.back()
    var InTextBox = false;
    function SuppressBackspace(e){
              if (InTextBox == true){return;}
              if (C.ie) {
                        thisKey = window.event.keyCode;
              else {
                        thisKey = e.keyCode;
              var Suppress = false;
              if (thisKey == 8) {
                        Suppress = true;
              if (Suppress == true){
                        if (C.ie){
                                  window.event.returnValue = false;
                                  window.event.cancelBubble = true;
                        else{
                                  e.preventDefault();
    if (C.ie){
              document.attachEvent('onkeydown',SuppressBackspace);
              window.attachEvent('onkeydown',SuppressBackspace);
    else{
              if (window.addEventListener){
                        window.addEventListener('keypress',SuppressBackspace,false);
    function ReduceItems(InArray, ReduceToSize){
              var ItemToDump=0;
              var j=0;
              while (InArray.length > ReduceToSize){
                        ItemToDump = Math.floor(InArray.length*Math.random());
                        InArray.splice(ItemToDump, 1);
    function Shuffle(InArray){
              var Num;
              var Temp = new Array();
              var Len = InArray.length;
              var j = Len;
              for (var i=0; i<Len; i++){
                        Temp[i] = InArray[i];
              for (i=0; i<Len; i++){
                        Num = Math.floor(j  *  Math.random());
                        InArray[i] = Temp[Num];
                        for (var k=Num; k < (j-1); k++) {
                                  Temp[k] = Temp[k+1];
                        j--;
              return InArray;
    function WriteToInstructions(Feedback) {
              document.getElementById('InstructionsDiv').innerHTML = Feedback;
    function EscapeDoubleQuotes(InString){
              return InString.replace(/"/g, '&quot;')
    function TrimString(InString){
            var x = 0;
            if (InString.length != 0) {
                    while ((InString.charAt(InString.length - 1) == '\u0020') || (InString.charAt(InString.length - 1) == '\u000A') || (InString.charAt(InString.length - 1) == '\u000D')){
                            InString = InString.substring(0, InString.length - 1)
                    while ((InString.charAt(0) == '\u0020') || (InString.charAt(0) == '\u000A') || (InString.charAt(0) == '\u000D')){
                            InString = InString.substring(1, InString.length)
                    while (InString.indexOf('  ') != -1) {
                            x = InString.indexOf('  ')
                            InString = InString.substring(0, x) + InString.substring(x+1, InString.length)
                    return InString;
            else {
                    return '';
    function FindLongest(InArray){
              if (InArray.length < 1){return -1;}
              var Longest = 0;
              for (var i=1; i<InArray.length; i++){
                        if (InArray[i].length > InArray[Longest].length){
                                  Longest = i;
              return Longest;
    //UNICODE CHARACTER FUNCTIONS
    function IsCombiningDiacritic(CharNum){
              var Result = (((CharNum >= 0x0300)&&(CharNum <= 0x370))||((CharNum >= 0x20d0)&&(CharNum <= 0x20ff)));
              Result = Result || (((CharNum >= 0x3099)&&(CharNum <= 0x309a))||((CharNum >= 0xfe20)&&(CharNum <= 0xfe23)));
              return Result;
    function IsCJK(CharNum){
              return ((CharNum >= 0x3000)&&(CharNum < 0xd800));
    //SETUP FUNCTIONS
    //BROWSER WILL REFILL TEXT BOXES FROM CACHE IF NOT PREVENTED
    function ClearTextBoxes(){
              var NList = document.getElementsByTagName('input');
              for (var i=0; i<NList.length; i++){
                        if ((NList[i].id.indexOf('Guess') > -1)||(NList[i].id.indexOf('Gap') > -1)){
                                  NList[i].value = '';
                        if (NList[i].id.indexOf('Chk') > -1){
                                  NList[i].checked = '';
    //EXTENSION TO ARRAY OBJECT
    function Array_IndexOf(Input){
              var Result = -1;
              for (var i=0; i<this.length; i++){
                        if (this[i] == Input){
                                  Result = i;
              return Result;
    Array.prototype.indexOf = Array_IndexOf;
    //IE HAS RENDERING BUG WITH BOTTOM NAVBAR
    function RemoveBottomNavBarForIE(){
              if ((C.ie)&&(document.getElementById('Reading') != null)){
                        if (document.getElementById('BottomNavBar') != null){
                                  document.getElementById('TheBody').removeChild(document.getElementById('Bo ttomNavBar'));
    //HOTPOTNET-RELATED CODE
    var HPNStartTime = (new Date()).getTime();
    var SubmissionTimeout = 30000;
    var Detail = ''; //Global that is used to submit tracking data
    function Finish(){
    //If there's a form, fill it out and submit it
              if (document.store != null){
                        Frm = document.store;
                        Frm.starttime.value = HPNStartTime;
                        Frm.endtime.value = (new Date()).getTime();
                        Frm.mark.value = Score;
                        Frm.detail.value = Detail;
                        Frm.submit();
    //JQUIZ CORE JAVASCRIPT CODE
    var CurrQNum = 0;
    var CorrectIndicator = ':-)';
    var IncorrectIndicator = 'X';
    var YourScoreIs = 'Your score is ';
    //New for 6.2.2.0
    var CompletedSoFar = 'Completed so far:';
    var ExerciseCompleted = 'You have completed the exercise.';
    var ShowCompletedSoFar = true;
    var ContinuousScoring = true;
    var CorrectFirstTime = 'Questions answered correctly first time: ';
    var ShowCorrectFirstTime = false;
    var ShuffleQs = false;
    var ShuffleAs = true;
    var DefaultRight = 'Correct!';
    var DefaultWrong = 'Not perfect yet. Please try again.';
    var QsToShow = 9;
    var Score = 0;
    var Finished = false;
    var Qs = null;
    var QArray = new Array();
    var ShowingAllQuestions = false;
    var ShowAllQuestionsCaption = 'Show all questions';
    var ShowOneByOneCaption = 'Show questions one by one';
    var State = new Array();
    var Feedback = '';
    var TimeOver = false;
    var strInstructions = '';
    var Locked = false;
    //The following variable can be used to add a message explaining that
    //the question is finished, so no further marking will take place.
    var strQuestionFinished = '';
    function CompleteEmptyFeedback(){
              var QNum, ANum;
              for (QNum=0; QNum<I.length; QNum++){
    //Only do this if not multi-select
                        if (I[QNum][2] != '3'){
                          for (ANum = 0; ANum<I[QNum][3].length; ANum++){
                                    if (I[QNum][3][ANum][1].length < 1){
                                              if (I[QNum][3][ANum][2] > 0){
                                                        I[QNum][3][ANum][1] = DefaultRight;
                                              else{
                                                        I[QNum][3][ANum][1] = DefaultWrong;
    function SetUpQuestions(){
              var AList = new Array();
              var QList = new Array();
              var i, j;
              Qs = document.getElementById('Questions');
              while (Qs.getElementsByTagName('li').length > 0){
                        QList.push(Qs.removeChild(Qs.getElementsByTagName('li')[0]));
              var DumpItem = 0;
              if (QsToShow > QList.length){
                        QsToShow = QList.length;
              while (QsToShow < QList.length){
                        DumpItem = Math.floor(QList.length*Math.random());
                        for (j=DumpItem; j<(QList.length-1); j++){
                                  QList[j] = QList[j+1];
                        QList.length = QList.length-1;
              if (ShuffleQs == true){
                        QList = Shuffle(QList);
              if (ShuffleAs == true){
                        var As;
                        for (var i=0; i<QList.length; i++){
                                  As = QList[i].getElementsByTagName('ol')[0];
                       

    .oO(dd.l)
    > I want to insert a HTML file( so-called A) in a small
    area in another HTML
    >file( so-called B) .
    > Now the B has been done, and A is from another server
    and its URL is known.
    >How to do that?
    > I'm new to Dreameaver, so anyone can explain or give me
    useful hints?
    Use an iframe. Do a search on Google or use the F1 help for
    details.
    Be aware of possible drawbacks and usability problems,
    dependent on
    what you're actually trying to accomplish.
    Micha

  • Problem sending form with fmt:message key=" " / tag system and jsp code

    I have developt my new web page using jsp. I have done a booking form, please se below here. There are two pages, bookings.jsp and booking_sent.jsp. The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all. For more information follow this link and try out the form;
    http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    BOOKINGS.JSP
    <%@page import="com.neptunediving.*"%>
    <%@include file="../WEB-INF/include/LangSupport.jsp"%>
    <%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
    <!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>
    <title><fmt:message key="bookings.title1" /></title>
    <META NAME="description" Content="<fmt:message key="bookings.description1" />
    <fmt:message key="bookings.description2" />
    <fmt:message key="bookings.description3" />">
    <meta name="keywords" CONTENT="<fmt:message key="bookings.keywords1" />
    <fmt:message key="bookings.keywords2" />
    <fmt:message key="bookings.keywords3" />">
    <meta name="robots" CONTENT="index, follow">
    <link rel="shortcut icon" href="favicon.ico" >
    <meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
    <meta name="Author" CONTENT="Jesper Nykvist">
    <META NAME="revisit-after" CONTENT="45 days">
    <META NAME="classification" CONTENT="diving">
    <META NAME="classification" CONTENT="scuba">
    <META NAME="classification" CONTENT="accommodation">
    <META NAME="classification" CONTENT="travel">
    <META NAME="classification" CONTENT="restaurants">
    <META NAME="distribution" CONTENT="global">
    <meta name="FreeFind" content="neverFollowScript">
    <meta name="FreeFind" content="noFollowQueries">
    <link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a name="Return"></a>
    <div class="pageHead">
    <div align="center"><%@include
         file="../WEB-INF/include/header.jsp"%></div>
    </div>
    <table class="nav" cellspacing="0">
         <tbody>
              <%@include file="../WEB-INF/include/bookings.jsp"%>
              <table width="100%" height="362" cellspacing="0" class="listTable">
                   <tbody>
                        <tr class="subhead">
                             <td width="54%" height="31"><%@include
                                  file="../WEB-INF/include/freefind.jsp"%></td>
                             <td width="46%">
                             <h1><span class="date"> <%@include
                                  file="../WEB-INF/include/showtime.jsp"%> </span></h1>
                             </td>
                        </tr>
                        <tr>
                             <td height="169" colspan="2">
                             <h2 align="center" class="listTable"><fmt:message key="general.bookings.header1" /></h2>
                             <h2 align="center" class="listTable"><fmt:message key="general.bookings.header2" /></h2>
                             <hr />
                             <p align="center"><fmt:message key="general.bookings.header3" />
                             <fmt:message key="general.bookings.header4" />
                             <fmt:message key="general.bookings.header5" /></p>
                             <p align="center"><fmt:message key="general.bookings.header6" />
                             <fmt:message key="general.bookings.header7" />
                             <fmt:message key="general.bookings.header8" /></p>
                             <hr />
                             </td>
                        </tr>
                        <tr>
                                       <td height="20" colspan="2">
                                       <form id="bookings" name="bookings" method="post"
                                       action="booking_sent.jsp">
                                       <h2 class="newsBody"><fmt:message key="general.bookings.header9" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text1" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="from" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text2" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="email" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text3" /></p>
                                       </td>
                                       <td width="30%"><select name="region">
                                            <option><fmt:message key="general.bookings.text4" /></option>
                                            <option><fmt:message key="general.bookings.text5" /></option>
                                            <option><fmt:message key="general.bookings.text6" /></option>
                                            <option><fmt:message key="general.bookings.text7" /></option>
                                            <option><fmt:message key="general.bookings.text8" /></option>
                                            <option><fmt:message key="general.bookings.text9" /></option>
                                            <option><fmt:message key="general.bookings.text10" /></option>
                                            <option><fmt:message key="general.bookings.text11" /></option>
                                            <option><fmt:message key="general.bookings.text12" /></option>
                                            <option><fmt:message key="general.bookings.text13" /></option>
                                            <option><fmt:message key="general.bookings.text14" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text15" /></p>
                                       </td>
                                       <td width="30%"><select name="language">
                                            <option><fmt:message key="general.bookings.text16" /></option>
                                            <option><fmt:message key="general.bookings.text17" /></option>
                                            <option><fmt:message key="general.bookings.text18" /></option>
                                            <option><fmt:message key="general.bookings.text19" /></option>
                                            <option><fmt:message key="general.bookings.text20" /></option>
                                            <option><fmt:message key="general.bookings.text21" /></option>
                                            <option><fmt:message key="general.bookings.text22" /></option>
                                            <option><fmt:message key="general.bookings.text23" /></option>
                                            <option><fmt:message key="general.bookings.text24" /></option>
                                            <option><fmt:message key="general.bookings.text25" /></option>
                                            <option><fmt:message key="general.bookings.text26" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text27" />
                                       <fmt:message key="general.bookings.text28" />
                                       <fmt:message key="general.bookings.text29" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text30" /><input type="radio"
                                            name="mailing" value="Yes" />
                                            <class="listTable"><fmt:message key="general.bookings.text31" /><input type="radio"
                                            name="mailing" value="No" checked="checked" /></p>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text32" /></p>
                                       </td>
                                       <td width="30%"><select name="find us">
                                            <option><fmt:message key="general.bookings.text33" /></option>
                                            <option><fmt:message key="general.bookings.text34" /></option>
                                            <option><fmt:message key="general.bookings.text35" /></option>
                                            <option><fmt:message key="general.bookings.text36" /></option>
                                            <option><fmt:message key="general.bookings.text37" /></option>
                                            <option><fmt:message key="general.bookings.text38" /></option>
                                            <option><fmt:message key="general.bookings.text39" /></option>
                                            <option><fmt:message key="general.bookings.text40" /></option>
                                            <option><fmt:message key="general.bookings.text41" /></option>
                                            <option><fmt:message key="general.bookings.text42" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       </table>
                                       <br />
                                       <h2 class="newsBody"><fmt:message key="general.bookings.text43" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text44" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="flight no, from"
                                            size="30" maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text45" /></p>
                                       </td>
                                       <td width="30%"><input type="text"
                                            name="arrival time, place" size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text46" />
                                       <fmt:message key="general.bookings.text47" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text48" /><input type="radio"
                                            name="transport" value="Pick-up" />
                                            <class ="listtable="listTable""><fmt:message key="general.bookings.text49" /><input type="radio"
                                            name="transport" value="Bus" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text50" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text51" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text52" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (adults)" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text53" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (children)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text54" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="rooms (fan)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text55" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="rooms (air-con)" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                             </table>
                             <br />
                             <h2 class="newsBody"><fmt:message key="general.bookings.text56" /></h2>
                             <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text57" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text58" /><input type="radio"
                                            name="certified diver" value="Yes" />
                                            <class="listTable"><fmt:message key="general.bookings.text59" /><input type="radio"
                                            name="certified diver" value="No" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text60" />
                                       <fmt:message key="general.bookings.text61" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.bookings.text62" /><input type="radio"
                                            name="introductory course" value="Yes" />
                                            <class ="listTable""><fmt:message key="general.bookings.text63" /><input type="radio"
                                            name="introductory course" value="No" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text64" /></p>
                                       </td>
                                       <td width="30%"><select name="where to dive">
                                            <option><fmt:message key="general.bookings.text65" /></option>
                                            <option><fmt:message key="general.bookings.text66" /></option>
                                            <option><fmt:message key="general.bookings.text67" /></option>
                                       </select></td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text68" /></p>
                                       </td>
                                       <td width="30%"><select name="dive course(s)">
                                            <option><fmt:message key="general.bookings.text69" /></option>
                                            <option><fmt:message key="general.bookings.text70" /></option>
                                            <option><fmt:message key="general.bookings.text71" /></option>
                                            <option><fmt:message key="general.bookings.text72" /></option>
                                            <option><fmt:message key="general.bookings.text73" /></option>
                                            <option><fmt:message key="general.bookings.text74" /></option>
                                            <option><fmt:message key="general.bookings.text75" /></option>
                                            <option><fmt:message key="general.bookings.text76" /></option>
                                            <option><fmt:message key="general.bookings.text77" /></option>
                                            <option><fmt:message key="general.bookings.text78" /></option>
                                            <option><fmt:message key="general.bookings.text79" /></option>
                                            <option><fmt:message key="general.bookings.text80" /></option>
                                       </select>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text81" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="other dive course"
                                            size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text82" /></p>
                                       </td>
                                       <td width="30%"><select name="divepackage / safari">
                                            <option><fmt:message key="general.bookings.text83" /></option>
                                            <option><fmt:message key="general.bookings.text84" /></option>
                                            <option><fmt:message key="general.bookings.text85" /></option>
                                            <option><fmt:message key="general.bookings.text86" /></option>
                                            <option><fmt:message key="general.bookings.text87" /></option>
                                            <option><fmt:message key="general.bookings.text88" /></option>
                                            <option><fmt:message key="general.bookings.text89" /></option>
                                            <option><fmt:message key="general.bookings.text90" /></option>
                                            <option><fmt:message key="general.bookings.text91" /></option>
                                            <option><fmt:message key="general.bookings.text92" /></option>
                                            <option><fmt:message key="general.bookings.text93" /></option>
                                       </select>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text94" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="dive package or safari from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.bookings.text95" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="dive package or safari to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                  </table>
                             <br />
                             <h2 class="newsBody"><fmt:message key="general.bookings.text96" /></h2>
                             <fmt:message key="general.bookings.text97" />
                             <fmt:message key="general.bookings.text98" />
                             <fmt:message key="general.bookings.text99" /></p>
                             <div align="left"> <textarea name="comments" cols="55" rows="10"></textarea>
                             <div>
                             <br />
                             <input name="Submit" type="submit" value="<fmt:message key="general.bookings.button1" />" />
                             <input type="reset" name="Clear form and start again..!"
                             value="<fmt:message key="general.bookings.button2" />" /></p>
                             </form>
                             </td>
                        </tr>
                        <tr>
                             <td height="29" colspan="2"><a href="#Return"><img
                                  src='<%=URLHelper.getURL("images/arrow.gif")%>'
                                  alt="Return to top" width="21" height="21" border="0" /></a>
                                  <fmt:message key="general.bookings.link1" />
                             </td>
                        </tr>
                        <tr>
                             <td height="105" colspan="2">
                             <hr />
                             <div class="pageFoot">
                             <div align="center"><font size="-1"><b><font
                                  size="3" face="Verdana, Arial, Helvetica, sans-serif"> <%@include
                                  file="../WEB-INF/include/footer.jsp"%>
                             </div>
                             </td>
                        </tr>
                   </tbody>
              </table>
              <p><br style="clear: both;" />
              </p>
         </tbody>
    </table>
    </body>
    </html>
    BOOKING_SENT.JSP
    <%@page import="com.neptunediving.*"%>
    <%@include file="../WEB-INF/include/LangSupport.jsp"%>
    <%@page contentType="text/html; charset=ISO-8859-1" language="java"%>
    <%
         String message;
         message  = "Booking";
         message += "\r\nFrom: " + request.getParameter("from");
         message += "\r\nEmail: " + request.getParameter("email");
         message += "\r\nRegion: " + request.getParameter("region");
         message += "\r\nlanguage: " + request.getParameter("language");
         message += "\r\nMailing: " + request.getParameter("mailing");
         message += "\r\nFind us: " + request.getParameter("find us");
         message += "\r\nFlight: " + request.getParameter("flight no, from");
         message += "\r\nArrival: " + request.getParameter("arrival time, place");
         message += "\r\nPickup: " + request.getParameter("transport");
         message += "\r\nStay from: " + request.getParameter("stay from");
         message += "\r\nStay to: " + request.getParameter("stay to");
         message += "\r\nAdult: " + request.getParameter("guests (adults)");
         message += "\r\nChildren: " + request.getParameter("guests (children)");
         message += "\r\nFan: " + request.getParameter("rooms (fan)");
         message += "\r\nAir-con: " + request.getParameter("rooms (air-con)");
         message += "\r\nCertification: " + request.getParameter("certified diver");
         message += "\r\nIntroductory dive: " + request.getParameter("introductory course");
         message += "\r\nWhere to dive: " + request.getParameter("where to dive");
         message += "\r\nDive courses: " + request.getParameter("dive course(s)");
         message += "\r\nOther dive course: " + request.getParameter("other dive course");
         message += "\r\nDive package or safari: " + request.getParameter("divepackage / safari");
         message += "\r\nDive package or safari from: " + request.getParameter("dive package or safari from");
         message += "\r\nDive package or safari to: " + request.getParameter("dive package or safari to");
         message += "\r\nComments: " + request.getParameter("comments");
         Mailer mailer = new Mailer();
         mailer.sendMail(request.getParameter("from") + "<" + request.getParameter("email") + ">",
                   "booking_sent",
                   message);
    %>
    <!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>
    <title><fmt:message key="booking_sent.title1" /></title>
    <META NAME="description" Content="<fmt:message key="booking_sent.description1" />
    <fmt:message key="booking_sent.description2" />
    <fmt:message key="booking_sent.description3" />">
    <meta name="keywords" CONTENT="<fmt:message key="booking_sent.keywords1" />
    <fmt:message key="booking_sent.keywords2" />
    <fmt:message key="booking_sent.keywords3" />">
    <meta name="robots" CONTENT="index, follow">
    <link rel="shortcut icon" href="favicon.ico" >
    <meta name="Copyright" CONTENT="Cebu Neptune Diving Adventure, Inc. Copyright (c) 1996-2007">
    <meta name="Author" CONTENT="Jesper Nykvist">
    <META NAME="revisit-after" CONTENT="45 days">
    <META NAME="classification" CONTENT="diving">
    <META NAME="classification" CONTENT="scuba">
    <META NAME="classification" CONTENT="accommodation">
    <META NAME="classification" CONTENT="travel">
    <META NAME="classification" CONTENT="restaurants">
    <META NAME="distribution" CONTENT="global">
    <meta name="FreeFind" content="neverFollowScript">
    <meta name="FreeFind" content="noFollowQueries">
    <link href="../stylesheet/neptunediving.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <a name="Return"></a>
    <div class="pageHead">
    <div align="center"><%@include
         file="../WEB-INF/include/header.jsp"%></div>
    </div>
    <table class="nav" cellspacing="0">
         <tbody>
              <%@include file="../WEB-INF/include/bookings.jsp"%>
              <table width="100%" height="362" cellspacing="0" class="listTable">
                   <tbody>
                        <tr class="subhead">
                             <td width="54%" height="31"><%@include
                                  file="../WEB-INF/include/freefind.jsp"%></td>
                             <td width="46%">
                             <h1><span class="date"> <%@include
                                  file="../WEB-INF/include/showtime.jsp"%> </span></h1>
                             </td>
                        </tr>
                        <tr>
                             <td height="169" colspan="2">
                             <h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header1" /></h2>
                             <h2 align="center" class="listTable"><fmt:message key="general.booking_sent.header2" /></h2>
                             <hr />
                             <p align="center"><fmt:message key="general.booking_sent.header3" />
                             <fmt:message key="general.booking_sent.header4" />
                             <fmt:message key="general.booking_sent.header5" /></p>
                             <p align="center"><fmt:message key="general.booking_sent.header6" />
                             <fmt:message key="general.booking_sent.header7" />
                             <fmt:message key="general.booking_sent.header8" /></p>
                             <hr />
                             </td>
                        </tr>
                        <tr>
                                       <td height="20" colspan="2">
                                       <form id="bookings" name="bookings" method="post"
                                       action="booking_sent.jsp">
                                       <h2 class="newsBody"><fmt:message key="general.booking_sent.header9" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text1" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="from" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text2" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="email" size="30"
                                            maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text3" /></p>
                                       </td>
                                       <td width="30%"><select name="region">
                                            <option><fmt:message key="general.booking_sent.text4" /></option>
                                            <option><fmt:message key="general.booking_sent.text5" /></option>
                                            <option><fmt:message key="general.booking_sent.text6" /></option>
                                            <option><fmt:message key="general.booking_sent.text7" /></option>
                                            <option><fmt:message key="general.booking_sent.text8" /></option>
                                            <option><fmt:message key="general.booking_sent.text9" /></option>
                                            <option><fmt:message key="general.booking_sent.text10" /></option>
                                            <option><fmt:message key="general.booking_sent.text11" /></option>
                                            <option><fmt:message key="general.booking_sent.text12" /></option>
                                            <option><fmt:message key="general.booking_sent.text13" /></option>
                                            <option><fmt:message key="general.booking_sent.text14" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text15" /></p>
                                       </td>
                                       <td width="30%"><select name="language">
                                            <option><fmt:message key="general.booking_sent.text16" /></option>
                                            <option><fmt:message key="general.booking_sent.text17" /></option>
                                            <option><fmt:message key="general.booking_sent.text18" /></option>
                                            <option><fmt:message key="general.booking_sent.text19" /></option>
                                            <option><fmt:message key="general.booking_sent.text20" /></option>
                                            <option><fmt:message key="general.booking_sent.text21" /></option>
                                            <option><fmt:message key="general.booking_sent.text22" /></option>
                                            <option><fmt:message key="general.booking_sent.text23" /></option>
                                            <option><fmt:message key="general.booking_sent.text24" /></option>
                                            <option><fmt:message key="general.booking_sent.text25" /></option>
                                            <option><fmt:message key="general.booking_sent.text26" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text27" />
                                       <fmt:message key="general.booking_sent.text28" />
                                       <fmt:message key="general.booking_sent.text29" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text30" /><input type="radio"
                                            name="mailing" value="Yes" />
                                            <class="listTable"><fmt:message key="general.booking_sent.text31" /><input type="radio"
                                            name="mailing" value="No" checked="checked" /></p>
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text32" /></p>
                                       </td>
                                       <td width="30%"><select name="find us">
                                            <option><fmt:message key="general.booking_sent.text33" /></option>
                                            <option><fmt:message key="general.booking_sent.text34" /></option>
                                            <option><fmt:message key="general.booking_sent.text35" /></option>
                                            <option><fmt:message key="general.booking_sent.text36" /></option>
                                            <option><fmt:message key="general.booking_sent.text37" /></option>
                                            <option><fmt:message key="general.booking_sent.text38" /></option>
                                            <option><fmt:message key="general.booking_sent.text39" /></option>
                                            <option><fmt:message key="general.booking_sent.text40" /></option>
                                            <option><fmt:message key="general.booking_sent.text41" /></option>
                                            <option><fmt:message key="general.booking_sent.text42" /></option>
                                       </select>
                                        </td>
                                  </tr>
                                  <tr>
                                       </table>
                                       <br />
                                       <h2 class="newsBody"><fmt:message key="general.booking_sent.text43" /></h2>
                                       <table width="100%" border="1" cellpadding="4">
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text44" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="flight no, from"
                                            size="30" maxlength="25" />
                                        </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text45" /></p>
                                       </td>
                                       <td width="30%"><input type="text"
                                            name="arrival time, place" size="30" maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text46" />
                                       <fmt:message key="general.booking_sent.text47" /></p>
                                       </td>
                                       <td width="30%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text48" /><input type="radio"
                                            name="transport" value="Pick-up" />
                                            <class ="listtable="listTable""><fmt:message key="general.booking_sent.text49" /><input type="radio"
                                            name="transport" value="Bus" checked="checked" /></p>
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text50" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay from" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text51" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="stay to" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text52" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (adults)" size="30"
                                            maxlength="25" />
                                       </td>
                                  </tr>
                                  <tr>
                                       <td width="70%">
                                       <p class="listTable"><fmt:message key="general.booking_sent.text53" /></p>
                                       </td>
                                       <td width="30%"><input type="text" name="guests (children)" size="30"
                                            maxlength="25" />
                                        </td>
                              

    Nope, can't delete posts on this forum,
    I have developed my new web page using jsp. I have done a booking form,
    There are two pages, bookings.jsp and booking_sent.jsp.
    The page has 6 different languages so i have also used the <fmt:message key=" " /> tag system for each language.
    The problem i have is when i send the form it opens a page where you only see all the tags, no text at all.
    For more information follow this link and try out the form; http://www.neptunediving.com/neptune/general/bookings.jsp/
    When you fill out the form and click send you should come to booking_sent and you do but the page is only full of tags, no text. Booking_sent looks exactly the same as bookings, except the header so why should not this work. I have tried everything but i cannot solve this problem. So i wonder if there is anybody out there who can help me with this?
    Tried going to that URL and got an error page served by Apache Webserver
    Maybe you haven't got the correct connector going between the webserver and the application server?

  • PHP Email Form is not Emailing

    HI,
    I made a PHP email form and i was wondering if i did it
    correct. I try to send a email but for some reason it wont work
    here is the PHP code:
    <?php
    $emailSubject = 'Computer Question!';
    $webMaster = '[email protected]';
    $nameField = $_POST ['name'];
    $phoneField = $_POST ['phone'];
    $emailField = $_POST ['email'];
    $questionField = $_POST ['question'];
    $body = <<<EOD
    <br><hr><br>
    Name: $name <br>
    Phone: $phone <br>
    Email: $email <br>
    Question: $question <br>
    EOD;
    $headers = "From: $email\r\n";
    $headers .="Content=type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    /* Results Rendered as HTML */
    $theResults = <<<EOD
    ?>
    Here is the Email form:
    :<!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>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post"
    action="Contact form 505 test 2.php">
    <table width="70%" border="1" cellpadding="6">
    <tr>
    <th width="16%" scope="col"><div align="right">
    <label for="name">Name:</label>
    </div></th>
    <th width="84%" scope="col"><div align="left">
    <input name="name" type="text" id="name" size="35"
    maxlength="60" />
    </div></th>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="phone ">Phone Number</label>
    </div></th>
    <td><div align="left">
    <input name="phone " type="text" id="phone " size="35"
    maxlength="13" />
    </div></td>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="email">Email:</label>
    </div></th>
    <td><div align="left">
    <input name="email" type="text" id="email" size="35"
    maxlength="40" />
    </div></td>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="question">Question:</label>
    </div></th>
    <td><div align="left">
    <textarea name="question" cols="26" rows="8"
    id="question"></textarea>
    </div></td>
    </tr>
    <tr>
    <th scope="row"> </th>
    <td><label for="Send Email"></label>
    <input type="submit" name="Send Email" id="Send Email"
    value="Submit" /></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    Any help would be appreciated!
    thanks

    .oO(jumpman310)
    > I made a PHP email form and i was wondering if i did it
    correct. I try to send
    >a email but for some reason it wont work here is the PHP
    code:
    Next time please be more specific. "won't work" isn't really
    helpful.
    Anyway, the first thing to fix is the error reporting on your
    testing
    server, obviously it's not configured properly. In your
    php.ini these
    directives have to be set:
    error_reporting = E_ALL|E_STRICT
    display_errors = on
    You should get some notices from your script. After fixing
    those issues,
    you should also read about header injection and how to
    prevent it. Your
    script is vulnerable and can be abused for sending spam. Also
    consider
    to use a class like PHPMailer to make things more secure and
    convenient.
    Some further notes about your form markup:
    * It's very good that you make use of labels for your form
    controls, but
    in some cases the IDs of these controls contain spaces, which
    is not
    allowed.
    * You don't really need a label for a submit button.
    * Consider to drop all those div elements in the table
    headers - you
    don't need them. Use CSS to style the labels the way you
    want, e.g.
    form th {text-align: right}
    I also use this:
    label:hover {outline: 1px dotted #666}
    * Check the markup of the "Name" row. The 'scope' attribute
    is incorrect
    and the form control should be inside a 'td', not a 'th'.
    Micha

  • Error - Conversion of type

    What has happened?
    The URL http://nw04shost.sapathome.net:8000/sap/bc/bsp/sap/zbspedu04/z_20070201_dtobi/notice04.htm was not called due to an error.
    Note
    The following error text was processed in the system NSP : Conversion of type g to type ZTE04_070127_01 not supported.
    The error occurred on the application server nw04shost_NSP_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: INSTANTIATE_SIMPLE_DATA of program CL_BSP_UTILITY================CP
    Method: INSTANTIATE_DATA of program CL_BSP_UTILITY================CP
    Method: %_INITATTRIBUTES of program CL_O2BH87VI4ZW2H3ZRXIPVYWAEH6FCP
    Method: DO_INITATTRIBUTES of program CL_BSP_PAGE===================CP
    Method: ON_REQUEST_ENTER of program CL_BSP_RUNTIME================CP
    Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system NSP in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server nw04shost_NSP_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server nw04shost_NSP_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 500 -u: BWUSER -l: E -s: NSP -i: nw04shost_NSP_00 -w: 0 -d: 20070206 -t: 092714 -v: RABAX_STATE -e: OBJECTS_MOVE_NOT_SUPPORTED
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    It is error message of a modify.
    I have no idea this problem.
    anybody have a solution?
    plz. reply this problem,
    this is part of layout code.
    <table cellpadding=0 cellspacing=0 border=0 width="570">
        <FORM NAME="ModifyFm" method="post">
        <input type="hidden" name="OnInputProcessing" value="MODIFY">
        <input type="hidden" name="IT_NOTICE[001].VCNT" id="IT_NOTICE[001].VCNT" value="<%=WA_NOTICE-VCNT%>">
            <TR>
                <TD height="30" valign="middle" width="60">TITLE:</td>
                <td width="510"><TEXTAREA TYPE="TEXT" NAME="IT_NOTICE[001].TITLE" rows="1" style="width:50%"><%=WA_NOTICE-TITLE%></TEXTAREA></TD>
                </TR>
            <TR>
                <TD height="30" valign="middle">WRITER:</td>
                <td><TEXTAREA TYPE="TEXT" NAME="IT_NOTICE[001]..WRITER" rows="1" style="width:55%"><%=WA_NOTICE-WRITER%></TEXTAREA></TD>
            </TR>
            <TR><TD align="center" colspan="2" height="30">CONTENT</td></tr>
            <tr><td colspan="2" align="center"><TEXTAREA TYPE="TEXT" NAME="IT_NOTICE[001].CONTENT" style="width:98%;height:150px"><%=WA_NOTICE-CONTENT%></TEXTAREA></TD></TR>
            <tr><td  colspan="2" height="5"></td></tr>
            <TR>
                <TD colspan="2">WDATE:<%=WA_NOTICE-WDATE0(4)%>/<%=WA_NOTICE-WDATE4(2)%>/<%=WA_NOTICE-WDATE6(2)%> <%=WA_NOTICE-WTIME0(2)%>H<%=WA_NOTICE-WTIME2(2)%>M<%=WA_NOTICE-WTIME4(2)%>S</TD>
            </TR>
    </table>
    this is oninputprocessing.
    CLEAR IT_NOTICE_EX.
    CLEAR WA_NOTICE_UP.
    Loop at IT_NOTICE into WA_NOTICE_UP.
        WA_NOTICE_UP-IDX = IDX.
        WA_NOTICE_UP-WDATE = SY-DATUM.
        WA_NOTICE_UP-WTIME = SY-TIMLO.
        WA_NOTICE_UP-BTYPE = BTYPE.
        APPEND WA_NOTICE_UP TO IT_NOTICE_EX.
    EndLoop.
    *DATA : BOARDTYPE_NO TYPE C.
    *BOARDTYPE_NO = BTYPE.
    *CONCATENATE './notice01.htm?BTYPE=' BOARDTYPE_NO INTO P_PAGE_M.
    CASE event_id.
      WHEN 'MODIFY'.
        MODIFY ZTE04_070127_01 FROM TABLE IT_NOTICE_EX.
       navigation->goto_page( P_PAGE_M ).
    ENDCASE.

    Hi,
    Please refer to this wiki by me to avoid these errors -
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=83657471
    Regards,
    Lekha.

  • Email form not coming through to inbox

    Hello everyone.
    I've built a email form in DW CS3 (It's a custom form, not something I got from godaddy or from internet), but when you type in the info, from the form it is not coming to the inbox once you hit send. Can anyone tell me what I'm doing wrong?
    I'm using godaddy. In "action" I have: /gdform.php (Post).
    Here is the code:
    <!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>Process/Mosotomoss/Image Stager</title>
    <style type="text/css">
    <!--
    #apDiv1 {
              position:absolute;
              left:195px;
              top:17px;
              width:692px;
              height:1682px;
              z-index:1;
    .style1 {color: #FFFFFF
    #apDiv3 {
              position:absolute;
              left:193px;
              top:1700px;
              width:1020px;
              height:24px;
              z-index:2;
    #apDiv2 {
              position:absolute;
              left:301px;
              top:743px;
              width:397px;
              height:40px;
              z-index:3;
    #apDiv4 {
              position:absolute;
              left:298px;
              top:739px;
              width:603px;
              height:36px;
              z-index:3;
              background-color: #FFFFFF;
    #apDiv5 {
              position:absolute;
              left:300px;
              top:741px;
              width:509px;
              height:31px;
              z-index:3;
              background-color: #FFFFFF;
    #apDiv6 {
              position:absolute;
              left:299px;
              top:739px;
              width:353px;
              height:38px;
              z-index:3;
    #apDiv7 {
              position:absolute;
              left:305px;
              top:741px;
              width:382px;
              height:40px;
              z-index:3;
    #apDiv8 {
              position:absolute;
              left:301px;
              top:738px;
              width:822px;
              height:530px;
              z-index:3;
    #apDiv9 {
              position:absolute;
              left:299px;
              top:742px;
              width:824px;
              height:528px;
              z-index:3;
    #apDiv10 {
              position:absolute;
              left:443px;
              top:745px;
              width:401px;
              height:258px;
              z-index:4;
    #apDiv11 {
              position:absolute;
              left:300px;
              top:746px;
              width:143px;
              height:257px;
              z-index:5;
    #apDiv12 {
              position:absolute;
              left:1227px;
              top:586px;
              width:240px;
              height:272px;
              z-index:4;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_validateForm() { //v4.0
      if (document.getElementById){
        var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
        for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=document.getElementById(args[i]);
          if (val) { nm=val.name; if ((val=val.value)!="") {
            if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
              if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
            } else if (test!='R') { num = parseFloat(val);
              if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
              if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
                min=test.substring(8,p); max=test.substring(p+1);
                if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
          } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
        } if (errors) alert('The following error(s) occurred:\n'+errors);
        document.MM_returnValue = (errors == '');
    //-->
    </script>
    </head>
    <body>
    <div id="apDiv1">
      <div align="center"><img src="images/process.jpg" width="1024" height="1685" border="0" usemap="#Map" />
          <map name="Map" id="Map">
            <area shape="rect" coords="791,45,832,73" href="blog.html" />
            <area shape="rect" coords="841,29,882,74" href="http://www.youtube.com/user/mosotomoss" />
            <area shape="rect" coords="730,44,781,68" href="store.html" />
            <area shape="rect" coords="885,30,929,76" href="https://www.facebook.com/pages/Mosotomoss/125744364118146" />
            <area shape="rect" coords="929,28,974,75" href="http://twitter.com/mosotomoss" />
            <area shape="rect" coords="670,45,722,69" href="press.html" />
            <area shape="rect" coords="611,45,660,69" href="faq.html" />
            <area shape="rect" coords="223,43,298,72" href="process.html" />
            <area shape="rect" coords="304,42,384,68" href="services.html" />
            <area shape="rect" coords="136,40,220,68" href="about.html" />
            <area shape="rect" coords="394,42,505,70" href="1on1staging.html" />
            <area shape="rect" coords="518,45,602,72" href="team.html" />
            <area shape="rect" coords="56,24,117,83" href="index.html" />
            </map>
      </div>
    </div>
    <div class="style1" id="apDiv3">Mosotomoss is an Image Staging Company and an Image Making Company</div>
    <div id="apDiv9">
      <form id="form1" name="form1" method="post" action="/gdform.php">
        <table width="100%" border="0" cellpadding="6">
          <tr>
            <td><div align="right">
              <label>First Name:</label>
            </div></td>
            <td><div align="left">
              <input name="firstname" type="text" id="firstname" size="35" maxlength="90" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>Last Name:</label>
            </div></td>
            <td><div align="left">
              <input name="lastname" type="text" id="lastname" size="35" maxlength="90" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>Company:</label>
            </div></td>
            <td><div align="left">
              <input name="company" type="text" id="company" size="35" maxlength="90" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>Website:</label>
            </div></td>
            <td><div align="left">
              <input name="website" type="text" id="website" size="35" maxlength="90" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">Email:</div></td>
            <td><div align="left">
              <input name="email" type="text" id="email" size="35" maxlength="90" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>Phone:</label>
            </div></td>
            <td><div align="left">
              <input name="phone" type="text" id="phone" size="35" maxlength="15" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>City:</label>
            </div></td>
            <td><div align="left">
              <input name="city" type="text" id="city" size="35" maxlength="90" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>State:</label>
            </div></td>
            <td><div align="left">
              <input name="state" type="text" id="state" size="35" maxlength="90" />
            </div></td>
          </tr>
          <tr>
            <td><div align="right">Services:</div></td>
            <td><div align="left">
              <p>
                <label>
                  <input type="radio" name="Services" value="Seminars" id="Services_0" />
                  Seminars</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Mentoring" id="Services_1" />
                  Mentoring</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Workshops" id="Services_2" />
                  Workshops</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="1on1 Staging" id="Services_3" />
                  1on1 Staging</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Marketing & PR" id="Services_4" />
                  Marketing & PR</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Nonprofit Staging" id="Services_5" />
                  Nonprofit Staging</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Business Planning" id="Services_6" />
                  Business Planning</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Customer relations" id="Services_7" />
                  Customer relations</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Business Plan Staging" id="Services_8" />
                  Business Plan Staging</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Social Media & Networking" id="Services_9" />
                  Social Media & Networking</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="Everyday Retail Store Staging" id="Services_10" />
                  Everyday Retail Store Staging</label>
                <br />
                <label>
                  <input type="radio" name="Services" value="radio" id="Services_11" />
                  Consistent & Cohesive Staging</label>
                <br />
              </p>
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>How can we help you?</label>
            </div></td>
            <td><div align="left">
              <textarea name="howcanwehelpyou" id="howcanwehelpyou" cols="25" rows="5"></textarea>
            </div></td>
          </tr>
          <tr>
            <td><div align="right"></div></td>
            <td><div align="left">
              <label>
              <input name="newsletter" type="checkbox" id="newsletter" value="subscribe me" checked="checked" />
              Would you like to subscribe to our FREE newsletter?</label>
            </div></td>
          </tr>
          <tr>
            <td><div align="right">
              <label>
              <input type="reset" name="clear" id="clear" value="Reset Form" />
              </label>
            </div></td>
            <td><div align="left">
              <label>
              <input name="submit" type="submit" id="submit" onclick="MM_validateForm('firstname','','R','lastname','','R','email','','RisEmail','phon e','','R');return document.MM_returnValue" value="Submit form" />
              </label>
            </div></td>
          </tr>
          <tr>
            <td><div align="right"></div></td>
            <td><div align="left"></div></td>
          </tr>
        </table>
        <input name="reciepient" type="hidden" id="reciepient" value="[email protected]" />
        <input name="Redirect" type="hidden" id="Redirect" value="emailform.html" />
      </form>
    </div>
    <div align="center"></div>
    </body>
    </html>

    You have this:
      <input name="reciepient" type="hidden" id="reciepient" value="[email protected]" />
    which should be
      <input name="recipient" type="hidden" id="recipient" value="[email protected]" />
    ...but I don't know if current gdform.php processor uses the recipient field, or some other mechanism. Try fixing the typo and if it still doesn't work you need to contact GD for support.

  • Validate Menu List in form.

    I was wondering if there is a way to validate a menu or list in a form. ie. at http://www.metrobham.org/register.html I would like to at least make the "Choose One" menu/list a required field as well as the "Age" and "Gender" fields.
    Thanks

    You can do it quickly and simply with javascript before the information is sent to your php processing script. I've validated the 'Choose One' select, the 'Gender' radio buttons and the 'Age' select. You can do the rest if you want but you will have to look at the code and see how it works. It's not that difficult when you see the pattern forming.
    <!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>
    <!-- VALIDATE FORM  -->
    <script type="text/javascript">
    <!--
    function validateForm() {
    var choose = document.forms.form1.choose.value;
    // inform customer to provide their requirements
    if (choose == null || choose == "" || choose == "Please Choose")
    alert("Please choose from list provided");
    return false;
    var age = document.forms.form1.age.value;
    // inform customer to provide their age
    if (age == null || age == "" || age == "Select Age")
    alert("Please select Age");
    return false;
    // inform customer to provide their gender
    if(document.getElementById('gender_0').checked) {
    } else if(document.getElementById('gender_1').checked) {
    } else {
      alert ("You must select a Gender");
      return false;
    } // end function
    -->
    </script>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="registration.php" onsubmit="return validateForm()">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="27%" align="right"><label for="choose">Choose One:</label></td>
            <td width="73%" align="left"><select name="choose" id="choose">
              <option value="Please Choose" selected="selected">Please Choose</option>
              <option value="baptism">Baptism</option>
              <option value="baby dedication">Baby Dedication</option>
              <option value="new member">New Member</option>
            </select></td>
          </tr>
          <tr>
            <td align="right"><label for="name2">Name:</label></td>
            <td align="left"><input name="name" type="text" id="name2" size="40" /></td>
          </tr>
          <tr>
            <td align="right"><label for="address">Address:</label></td>
            <td align="left"><input name="address" type="text" id="address" size="45" /></td>
          </tr>
          <tr>
            <td align="right"><label for="city">City:</label></td>
            <td align="left"><input name="city" type="text" id="city" size="35" /></td>
          </tr>
          <tr>
            <td align="right"><label for="state">State:</label></td>
            <td align="left"><input name="state" type="text" id="state" size="25" /></td>
          </tr>
          <tr>
            <td align="right"><label for="zip">Zip:</label></td>
            <td align="left"><input name="zip" type="text" id="zip" size="5" /></td>
          </tr>
          <tr>
            <td align="right"><label for="phone">Phone:</label></td>
            <td align="left"><input name="phone" type="text" id="phone" size="12" /></td>
          </tr>
          <tr>
            <td align="right"><label for="email">Email:</label></td>
            <td align="left"><input name="email" type="text" id="email" size="50" /></td>
          </tr>
          <tr>
            <td align="right"><label for="age">Age (if Child):</label></td>
            <td align="left"><select name="age" id="age">
              <option value="Select Age" selected="selected">Select Age</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
            </select></td>
          </tr>
          <tr>
            <td align="right">Gender:</td>
            <td align="left"><p>
              <label>
                <input type="radio" name="gender" value="male" id="gender_0" />
                Male</label>
              <br />
              <label>
                <input type="radio" name="gender" value="female" id="gender_1" />
                Female</label>
              <br />
            </p></td>
          </tr>
          <tr>
            <td align="right"><label for="comments">Comments:</label></td>
            <td align="left"><textarea name="comments" id="comments" cols="45" rows="5"></textarea></td>
          </tr>
          <tr>
            <td align="right"><input type="reset" name="clear" id="clear" value="Reset Form!" /></td>
            <td align="left"><input name="submit" type="submit" id="submit" onclick="MM_validateForm('name2','','R','address','','R','city','','R','state','','R','zi p','','R','phone','','RisNum','email','','RisEmail');return document.MM_returnValue" value="Submit" /></td>
          </tr>
        </table>
      </form>
    </body>
    </html>

  • Required form fields - help.

    Hello:
    Knowing next to nothing about html code, Javascript and submission forms, I was hoping to make the following form fields below mandatory.
    Below is the script for doing so and below that the form. Can someone please adjust the form below (to work with the Javscript) so that it will function, so that I can just copy the adjusted code, paste it all into the form page and be on my way? Any help would be appreciated.
    Thanks,
    --Joe
    First Name
    Last Name
    Title
    Facility/Practice Name
    Daytime Phone
    Evening Phone
    Email
    <script language="JavaScript">
    <!--
    * Required field(s) validation v1.10- By NavSurf
    * Visit Nav Surf at http://navsurf.com
    * Visit http://www.dynamicdrive.com/ for full source code
    function formCheck(formobj){
        // Enter name of mandatory fields
        var fieldRequired = Array("FirstName", "LastName");
        // Enter field description to appear in the dialog box
        var fieldDescription = Array("First Name", "Last Name");
        // dialog message
        var alertMsg = "Please complete the following fields:\n";
        var l_Msg = alertMsg.length;
        for (var i = 0; i < fieldRequired.length; i++){
            var obj = formobj.elements[fieldRequired[i]];
            if (obj){
                switch(obj.type){
                case "select-one":
                    if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
                        alertMsg += " - " + fieldDescription[i] + "\n";
                    break;
                case "select-multiple":
                    if (obj.selectedIndex == -1){
                        alertMsg += " - " + fieldDescription[i] + "\n";
                    break;
                case "text":
                case "textarea":
                    if (obj.value == "" || obj.value == null){
                        alertMsg += " - " + fieldDescription[i] + "\n";
                    break;
                default:
                if (obj.type == undefined){
                    var blnchecked = false;
                    for (var j = 0; j < obj.length; j++){
                        if (obj[j].checked){
                            blnchecked = true;
                    if (!blnchecked){
                        alertMsg += " - " + fieldDescription[i] + "\n";
        if (alertMsg.length == l_Msg){
            return true;
        }else{
            alert(alertMsg);
            return false;
    // -->
    </script>
    <form id="wstForm_Contact" name="Contact Form" action="%wstx.formmailerurl%" method="post" labelid="formLabel_ContactForm">
        <table width="100%" cellspacing="1" cellpadding="5" class="contactFormTable">
            <tbody>
                <tr>
                    <td align="center" style="font-size: 8pt; text-decoration: none; font-weight: normal;">
                    <table width="90%" cellspacing="0" cellpadding="3" border="0" class="contactFormTable">
                        <tbody>
                            <tr>
                                <td align="center" style="font-size: 12pt; font-weight: bold;">
                                <font face="Palatino Linotype, Book Antiqua, Palatino, serif"><span id="formLabel_ContactForm" controlid="wstForm_Contact">Contact Us</span><br />
                                </font>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-decoration: none; font-weight: normal; padding-bottom: 10px;">
                                <p style="text-align: justify;">
                                <font face="Palatino Linotype, Book Antiqua, Palatino, serif" style="font-size: 13px;">In this area, you can enter text about your contact form. You may want to explain what happens after a visitor submits the form and include a contact phone number.</font>
                                </p>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <table width="90%" cellspacing="1" cellpadding="3" border="0" class="contactFormTable">
                        <tbody>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_First" controlid="formElement_First">First Name:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_First" name="First Name" labelid="formLabel_First" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Last" controlid="formElement_Last">Last Name:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Last" name="Last Name" labelid="formLabel_Last" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Last" controlid="formElement_Last">Title:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Last" name="Title" labelid="formLabel_Last" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Last" controlid="formElement_Last">Facility/Practice Name:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Last" name="Facility/Practice Name" labelid="formLabel_Last" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Street1" controlid="formElement_Street1">Address Street 1:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Street1" size="30" name="Address Street 1" labelid="formLabel_Street1" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Street2" controlid="formElement_Street2">Address Street 2:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Street2" size="30" name="Address Street 2" labelid="formLabel_Street2" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_City" controlid="formElement_City">City:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_City" name="City" labelid="formLabel_City" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Zip" controlid="formElement_Zip">Zip Code:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Zip" size="5" name="Zip Code" maxlength="5" labelid="formLabel_Zip" /> (5 digits)
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_State" controlid="formElement_State">State:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <select id="formElement_State" name="State" labelid="formLabel_State">
                                <option value="AL">
                                AL
                                </option>
                                <option value="AK">
                                AK
                                </option>
                                <option value="AZ">
                                AZ
                                </option>
                                <option value="AR">
                                AR
                                </option>
                                <option value="CA">
                                CA
                                </option>
                                <option value="CO">
                                CO
                                </option>
                                <option value="CT">
                                CT
                                </option>
                                <option value="DE">
                                DE
                                </option>
                                <option value="DC">
                                DC
                                </option>
                                <option value="FL">
                                FL
                                </option>
                                <option value="GA">
                                GA
                                </option>
                                <option value="HI">
                                HI
                                </option>
                                <option value="ID">
                                ID
                                </option>
                                <option value="IL">
                                IL
                                </option>
                                <option value="IN">
                                IN
                                </option>
                                <option value="IA">
                                IA
                                </option>
                                <option value="KS">
                                KS
                                </option>
                                <option value="KY">
                                KY
                                </option>
                                <option value="LA">
                                LA
                                </option>
                                <option value="ME">
                                ME
                                </option>
                                <option value="MD">
                                MD
                                </option>
                                <option value="MA">
                                MA
                                </option>
                                <option value="MI">
                                MI
                                </option>
                                <option value="MN">
                                MN
                                </option>
                                <option value="MS">
                                MS
                                </option>
                                <option value="MO">
                                MO
                                </option>
                                <option value="MT">
                                MT
                                </option>
                                <option value="NE">
                                NE
                                </option>
                                <option value="NV">
                                NV
                                </option>
                                <option value="NH">
                                NH
                                </option>
                                <option value="NJ">
                                NJ
                                </option>
                                <option value="NM">
                                NM
                                </option>
                                <option value="NY">
                                NY
                                </option>
                                <option value="NC">
                                NC
                                </option>
                                <option value="ND">
                                ND
                                </option>
                                <option value="OH">
                                OH
                                </option>
                                <option value="OK">
                                OK
                                </option>
                                <option value="OR">
                                OR
                                </option>
                                <option value="PA">
                                PA
                                </option>
                                <option value="RI">
                                RI
                                </option>
                                <option value="SC">
                                SC
                                </option>
                                <option value="SD">
                                SD
                                </option>
                                <option value="TN">
                                TN
                                </option>
                                <option value="TX">
                                TX
                                </option>
                                <option value="UT">
                                UT
                                </option>
                                <option value="VT">
                                VT
                                </option>
                                <option value="VA">
                                VA
                                </option>
                                <option value="WA">
                                WA
                                </option>
                                <option value="WV">
                                WV
                                </option>
                                <option value="WI">
                                WI
                                </option>
                                <option value="WY">
                                WY
                                </option>
                                </select>
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_DaytimePhone" controlid="formElement_DaytimePhone">Daytime Phone:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_DaytimePhone" name="Daytime Phone" labelid="formLabel_DaytimePhone" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_EveningPhone" controlid="formElement_EveningPhone">Evening Phone:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_EveningPhone" name="Evening Phone" labelid="formLabel_EveningPhone" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Email" controlid="formElement_Email">Email:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <input id="formElement_Email" name="Email" labelid="formLabel_Email" />
                                </td>
                            </tr>
                            <tr>
                                <td style="font-size: 8pt; text-align: left;">
                                <span id="formLabel_Comments" controlid="formElement_Comments">Comments:</span>
                                </td>
                                <td style="font-size: 8pt; text-align: left;">
                                <textarea id="formElement_Comments" name="Comments" rows="4" cols="38" style="width: 100%;" labelid="formLabel_Comments">Enter comments here!
                                </textarea>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <p>
                    <input type="submit" id="wstForm_Contact_Submit" value="Submit" onclick="return wstxSubmitForm(this);" /> <input type="reset" id="wstForm_Contact_Reset" value="Reset" />
                    </p>
                    </td>
                </tr>
            </tbody>
        </table>
        <input type="hidden" id="FormMailerSubject" name="FormMailerSubject" value="Contact Form." /><input type="hidden" id="FormMailerRedirect" name="FormMailerRedirect" value="%wstx.project.BaseUrl%" />
    </form>

    Rather than re-inventing the wheel, why don't you use Spry Validation widgets for your client side processing? Have a look here http://labs.adobe.com/technologies/spry/demos/formsvalidation/index.html and here http://labs.adobe.com/technologies/spry/samples/.
    Mind you, using JS your are only validating on the side of the client. If JS is turned off in the browser, there will be no validation. Therefore you should look at serverside validation as well.
    Gramps

Maybe you are looking for

  • Quantity field not getting displayed for all document types

    Hi, I have made a configuration to include field Quantity(BSEG-MENGE) in the GL account line item display.When I ran the report for stock adjustment account(FAGLL03), only the following document types are showing quantity against them. WI- Inventory

  • Error in EEWB when  a n Extension is changed

    Hello, I need to add some more custom fields in Opportunity tab. There were already some existing fields created using Project Extension(say it is PE1) in EEWB. But I am facing some problems (1) To add the new ones, when I created a new Extension PE2

  • Getting Started error  when starting messaging Gateway on Unix

    HI all. We are having difficulties with getting messaging gateway set up on unix. We are following the DocId Note:212587.1 The error we are getting is when we try and start the gateway. ORA 6520 pl/sql error loading external library line 33 ORA 6512

  • How to Cancel the integration process(ccBPM) after a specifice period

    Dear Experts, I have a ccBPM(integration process) having two receive steps using one correlation, 1. First receive step receives the Delivery IDOC 2. Second receive step receives the Invoice IDOC of the corrospondng delivery of the first receive step

  • ITunes can't read the contents of my iPhone... Any fixes without restoring?

    Whenever I plug my iPhone 4S running iOS 6 Beta 4 into iTunes 10.7 on my Windows 7 64 Bit machine, iTunes gives me an error message stating that "iTunes cannot read the contents of this iPhone. Please restore it". I absolutely CANNOT restore it... Is