Contact form functionality

Hello there,
Ok so here's my problem. I have almost completed my website with all the buttons and MC's communicating nicely with their respective frames. I am on my final frame being the "Contact Form" frame. I searched the web to find a tutorial in finding as3 contact form.
Link: http://www.republicofcode.com/tutorials/flash/as3contactform
It was easy to follow and helpful. I created a php file called "mail.php" and an .fla file called "contactmovie.fla".
I followed the steps and finally put in the required as3 in the contactmovie.fla. I tested contactmovie.fla in a browser effectively creating an swf file in the same name. In the browser, I typed into the text fields and pressed submit which returned a "Message Sent" response. All appears well.
BUT...
When I want to incorporate this into a website that I am creating in flash under a different file name I have issues.
1. I am not sure whether I need to import the contactmovie.swf file into the website .fla file which I called allrounda.fla (also, when I do this no text appears); or,
2. I can simply copy the frames in the contactmovie.fla file and paste the frames into the allrounda.fla file.
Eitherway, doesn't seem to work. In point 2,  the text is displayed but when I type the details in the text field, no "Message Sent" is displayed.
This indicates to me that the script is not communicating with the text fields which has the instance names of name_txt, email_txt and message_txt. The instance names do correspond to the script. The contact form created is not on frame 1 but frame 5. There is an MC that behaves like a button that takes you to frame 5 where the contact form is on.
It is probably a small issue with an as3 guru.
AS3 SCRIPT
//CONTACT FORM //
submit_btn.addEventListener(MouseEvent.CLICK, sendMessage);
function sendMessage(e:MouseEvent):void{
var my_vars:URLVariables = new URLVariables();
my_vars.senderName = name_txt.text;
my_vars.senderEmail = email_txt.text;
my_vars.senderMsg = message_txt.text;
var my_url:URLRequest = new URLRequest("allrounda.php");
my_url.method = URLRequestMethod.POST;
my_url.data = my_vars;
var my_loader:URLLoader = new URLLoader();
my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
my_loader.load(my_url);
name_txt.text = "";
email_txt.text = "";
message_txt.text = "Message Sent";
PHP SCRIPT
<!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>
<?php
$to = "[email protected]";
$subject = ($_POST['senderName']);
$message = ($_POST['senderMsg']);
$message .= "\n\n---------------------------\n";
$message .= "E-mail Sent From: " . $_POST['senderName'] . " <" . $_POST['senderEmail'] . ">\n";
$headers = "From: " . $_POST['senderName'] . " <" . $_POST['senderEmail'] . ">\n";
if(@mail($to, $subject, $message, $headers))
echo "answer=ok";
else
echo "answer=error";
?>
</body>
</html>
Or is it the case that this will all work when I have uploaded both .fla and .php file to the server?
I know it is a lot to ask but it would be appreciated.
Kind regards,
Dean D

This is my whole script. I know it is not the cleanest way to do it but it works.
stop();
pic4_mc.buttonMode = true;
pic4_mc.useHandCursor = true;
pic14_mc.buttonMode = true;
pic14_mc.useHandCursor = true;
pic1_mc.buttonMode = true;
pic1_mc.useHandCursor = true;
home_btn.buttonMode = true;
home_btn.useHandCursor = true;
quote_btn.buttonMode = true;
quote_btn.useHandCursor = true;
gallery_btn.buttonMode = true;
gallery_btn.useHandCursor = true;
contact_btn.buttonMode = true;
contact_btn.useHandCursor = true;
//Cleaning services pic
pic4_mc.addEventListener(MouseEvent.ROLL_OUT, fl_MouseOutHandler_5);
function fl_MouseOutHandler_5(event:MouseEvent):void
    pic4_mc.alpha = 0.5;
    trace("Moused out");
pic4_mc.addEventListener(MouseEvent.ROLL_OVER, fl_MouseOverHandler_5);
function fl_MouseOverHandler_5(event:MouseEvent):void
    pic4_mc.alpha = 1.0;
    trace("Moused over");
//Garden maintenance pic
pic14_mc.addEventListener(MouseEvent.ROLL_OUT, fl_MouseOutHandler_6);
function fl_MouseOutHandler_6(event:MouseEvent):void
    pic14_mc.alpha = 0.5;
    trace("Moused out");
pic14_mc.addEventListener(MouseEvent.ROLL_OVER, fl_MouseOverHandler_6);
function fl_MouseOverHandler_6(event:MouseEvent):void
    pic14_mc.alpha = 1.0;
    trace("Moused over");
//Handyman picture
pic1_mc.addEventListener(MouseEvent.ROLL_OUT, fl_MouseOutHandler_7);
function fl_MouseOutHandler_7(event:MouseEvent):void
    pic1_mc.alpha = 0.5;
    trace("Moused out");
pic1_mc.addEventListener(MouseEvent.ROLL_OVER, fl_MouseOverHandler_7);
function fl_MouseOverHandler_7(event:MouseEvent):void
    pic1_mc.alpha = 1.0;
    trace("Moused over");
//home btn function
home_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_9);
function fl_ClickToGoToAndStopAtFrame_9(event:MouseEvent):void
    gotoAndStop(1);
// Cleaning Services btn function
pic4_mc.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_6);
function fl_ClickToGoToAndStopAtFrame_6(event:MouseEvent):void
    gotoAndStop(2);
//Garden Maintenance btn function
pic14_mc.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_7);
function fl_ClickToGoToAndStopAtFrame_7(event:MouseEvent):void
    gotoAndStop(3);
//Handyman btn function
pic1_mc.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_8);
function fl_ClickToGoToAndStopAtFrame_8(event:MouseEvent):void
    gotoAndStop(4);
/* Click to Go to Frame and Stop
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.
Can be used on the main timeline or on movie clip timelines.
Instructions:
1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
quote_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_10);
function fl_ClickToGoToAndStopAtFrame_10(event:MouseEvent):void
    gotoAndStop(5);
/* Click to Go to Frame and Stop
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.
Can be used on the main timeline or on movie clip timelines.
Instructions:
1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
gallery_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_11);
function fl_ClickToGoToAndStopAtFrame_11(event:MouseEvent):void
    gotoAndStop(6);
/* Click to Go to Frame and Stop
Clicking on the specified symbol instance moves the playhead to the specified frame in the timeline and stops the movie.
Can be used on the main timeline or on movie clip timelines.
Instructions:
1. Replace the number 5 in the code below with the frame number you would like the playhead to move to when the symbol instance is clicked.
contact_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_12);
function fl_ClickToGoToAndStopAtFrame_12(event:MouseEvent):void
    gotoAndStop(7);
//CONTACT FORM //
submit_btn.addEventListener(MouseEvent.CLICK, sendMessage);
function sendMessage(e:MouseEvent):void{
var my_vars:URLVariables = new URLVariables();
my_vars.senderName = name_txt.text;
my_vars.senderEmail = email_txt.text;
my_vars.senderMsg = message_txt.text;
var my_url:URLRequest = new URLRequest("allrounda.php");
my_url.method = URLRequestMethod.POST;
my_url.data = my_vars;
var my_loader:URLLoader = new URLLoader();
my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
my_loader.load(my_url);
name_txt.text = "";
email_txt.text = "";
message_txt.text = "Message Sent";

Similar Messages

  • How can I make my Contact Form send info to my email?

    Greetings! I have below a contact form that i have creaed with some help but I can't seem to make it send the information to my email address after it is submitted. That is my most important issue right now.
    A secondary issue is, can I make it so once this form is submitted it send the info to my email without doing a page redirect?
    Thanks in advance!

    Ok what about this code located at www.ybcreations.com/ContactTest.php?
    <?php
    // Set email variables
    $email_to = '[email protected]';
    $email_subject = 'BestMarketingNames Inquiry';
    // Set required fields
    $required_fields = array('fullname','email','comment');
    // set error messages
    $error_messages = array(
              'fullname' => 'Please enter a Name to proceed.',
              'email' => 'Please enter a valid Email Address to continue.',
              'comment' => 'Please enter your Message to continue.'
    // Set form status
    $form_complete = FALSE;
    // configure validation array
    $validation = array();
    // check form submittal
    if(!empty($_POST)) {
              // Sanitise POST array
              foreach($_POST as $key => $value) $_POST[$key] = remove_email_injection(trim($value));
              // Loop into required fields and make sure they match our needs
              foreach($required_fields as $field) {
                        // the field has been submitted?
                        if(!array_key_exists($field, $_POST)) array_push($validation, $field);
                        // check there is information in the field?
                        if($_POST[$field] == '') array_push($validation, $field);
                        // validate the email address supplied
                        if($field == 'email') if(!validate_email_address($_POST[$field])) array_push($validation, $field);
              // basic validation result
              if(count($validation) == 0) {
                        // Prepare our content string
                        $email_content = 'New Website Comment: ' . "\n\n";
                        // simple email content
                        foreach($_POST as $key => $value) {
                                  if($key != 'submit') $email_content .= $key . ': ' . $value . "\n";
                        // if validation passed ok then send the email
                        mail($email_to, $email_subject, $email_content);
                        // Update form switch
                        $form_complete = TRUE;
    function validate_email_address($email = FALSE) {
              return (preg_match('/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email))? TRUE : FALSE;
    function remove_email_injection($field = FALSE) {
       return (str_ireplace(array("\r", "\n", "%0a", "%0d", "Content-Type:", "bcc:","to:","cc:"), '', $field));
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <!-- Contact Form Designed by James Brand @ dreamweavertutorial.co.uk -->
    <!-- Covered under creative commons license - http://dreamweavertutorial.co.uk/permissions/contact-form-permissions.htm -->
              <title>Contact Form</title>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
              <link href="Billy testing/ContactForm.css" rel="stylesheet" type="text/css" />
              <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
        <script type="text/javascript" src="Billy testing/validation/validation.js"></script>
              <script type="text/javascript">
    var nameError = '<?php echo $error_messages['fullname']; ?>';
                        var emailError = '<?php echo $error_messages['email']; ?>';
                        var commentError = '<?php echo $error_messages['comment']; ?>';
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
        </script>
    </head>
    <body onload="MM_preloadImages('Billy testing/x.png')">
    <div id="formWrap">
    <h2>We appreciate your business</h2>
    <div id="form">
    <?php if($form_complete === FALSE): ?>
    <form action="ContactTest.php" method="post" id="comments_form">
              <div class="row">
              <div class="label">Your Name</div> <!--end .label -->
              <div class="input">
              <input type="text" id="fullname" class="detail" name="fullname" value="<?php echo isset($_POST['fullname'])? $_POST['fullname'] : ''; ?>"/><?php if(in_array('fullname', $validation)): ?><span class="error"><?php echo $error_messages['fullname']; ?></span><?php endif; ?>
              </div><!-- end. input --><!-- end .context -->
              </div><!-- end .row -->
        <div class="row">
              <div class="label">Your Email Address</div> <!--end .label -->
              <div class="input">
              <input type="text" id="email" class="detail" name="email" value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>"/><?php if(in_array('email', $validation)): ?><span class="error"><?php echo $error_messages['email']; ?></span><?php endif; ?>
              </div><!-- end. input --><!-- end .context -->
              </div><!-- end .row -->
        <div class="row">
              <div class="label">Comments</div> <!--end .label -->
              <div class="input">
              <textarea id="comment" name="comment" class="mess"><?php echo isset($_POST['comment'])? $_POST['comment'] : ''; ?></textarea><?php if(in_array('comment', $validation)): ?><span class="error"><?php echo $error_messages['comment']; ?></span><?php endif; ?>
              </div><!-- end. input -->
              </div><!-- end .row -->
        <div class="submit">
        <input type="submit" id="submit" name="submit" value="Send Message" />
        </div><!-- end .submit-->
        </form>
         <?php else: ?>
    <p style="font-size:25px; font-family:Arial, Helvetica, sans-serif; color:#255E67; margin-left:25px;">Thank you for your Message!</p>
    <script type="text/javascript">
    setTimeout('ourRedirect()', 5000)
    funtion ourRedirect(){
              location.href='contact.html'
    </script>
    <?php endif; ?>
    </div><!-- end #form-->
    </div>
    <p> </p>
    <!-- end formwrap -->
    </body>
    </html>

  • AS2 contact form and php - works fine but only sends half of the text in the comments field ???

    hi all - i have an AS2 contact form using php to send the info to my email address - it all works fine except this ..... rather than having an empty comments box in the flash movie i had added a whole bunch of feedback questions that the user can comment yes/no to in the comments box (my feedback questions were added into the input text box in cs3 so are there when the user opens the contact page .. i have set the maximum characters to 10000 so no worries that its that that is stopping it all coming through in the email ..... basically when i go to my form online and send it i get it through as an email but with only three quarters of the feedback text in it ...... i have tried a zillion ways a round this, tried other contact forms and php and always end up with the same problem ... any ideas any one ?
    this is the AS....
    stop();
    a =0;
    function validate () {
        if (from.length>=7) {
            if (from.indexOf("@")>0) {
                if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
                    if (from.lastIndexOf(".")<(from.length-2)) {
                        a = 1;
                        // email is fine
    function formcheck () {
        validate ();       
        trace(a);
        if (fname = "" or telno eq "" or comments eq "" or from eq "") {
            stop();
            error = "You have left blank fields, please fill in all fields, thank you";
        } else {
            emailcheck ();
    function emailcheck (){
        if (a != 1){
            stop();
            error = "Email address not valid";
            } else {
            loadVariablesNum("mail.php3", 0, "POST");
            gotoAndStop(2);
    ..........this is the php
    <?php
    $adminaddress = "[email protected]";
    $sitename = "Flash Site Form Mailer";
    mail("$adminaddress","Info Request",
    "A customer at $sitename has made the following enquiry\n
    First Name: $name
    Company Name: $company
    Telephone: $telno
    Email: $from\n
    The visitor commented:
    $comments
    Logged Info :
    Using: $HTTP_USER_AGENT
    Hostname: $ip
    IP address: $REMOTE_ADDR
    Date/Time:  $date","FROM:$adminaddress");
    ?>
    any help much appreciated

    i think you should not use $HTTP_USER_AGENT.
    and use loadvars instead of loadvariablesnum:
    stop();
    a =0;
    function validate () {
        if (from.length>=7) {
            if (from.indexOf("@")>0) {
                if ((from.indexOf("@")+2)<from.lastIndexOf(".")) {
                    if (from.lastIndexOf(".")<(from.length-2)) {
                        a = 1;
                        // email is fine
    function formcheck () {
        validate ();       
        trace(a);
        if (fname = "" or telno eq "" or comments eq "" or from eq "") {
            stop();
            error = "You have left blank fields, please fill in all fields, thank you";
        } else {
            emailcheck ();
    var sendLV:LoadVars=new LoadVars();
    function emailcheck (){
        if (a != 1){
            stop();
            error = "Email address not valid";
            } else {
    sendLV.name=fname;
    sendLV.telno=telno;
    sendLV.company=company;  //assuming company is a variable in your flash
    sendLV.comments=comments;
    sendLV.send("mail.php3", "POST");
            gotoAndStop(2);
    //..........this is the php
    <?php
    $adminaddress = "[email protected]";
    $sitename = "Flash Site Form Mailer";
    $from=?;//you need to define this variable
    $name=$_POST['name'];
    $telno=$_POST['telno'];
    $company=$_POST['company'];
    $comments=$_POST['comments'];
    $body=
    "A customer at $sitename has made the following enquiry\n
    First Name: $name
    Company Name: $company
    Telephone: $telno
    Email: $from\n
    The visitor commented:
    $comments";
    mail($adminaddress,"Info Request",$body);
    ?>

  • Contact form without PHP Help!

    I'm trying to create a contact form to send an email to me
    when they click on the submit button. I'm using the "getUrl and
    Mailto). It works when I set the variables manually, but I can't
    get it to store the value of the user input fields to use in my
    message body.
    This has got to be a simple matter of syntax or placement of
    the var function. Please forgive me for being such a newbee!
    Thanks in advance for any help.

    I don't think you're going to have any luck processing a contact form without the support of some server-side scripting that is capable of interacting with the server.

  • Problem with contact form

    Hi-
    I found a contact form for my Flash website but it's not working properly. It uses ActionScript 3 and PHP, both of which I don't know much about. Because of this, I can't pinpoint the problem or how to fix it. Here's what's going on:
    1) Each field in the form only allows 3 characters and no special characters such as @ _ ! . , etc...
    2) When the user goes to the next field in the form, the previous field appears blank but the when clicking on that again, the original text appears.
    3) When submitting the form, it just keeps saying "in progress" and never shows the confirmation text nor does the email get sent. There is an HTML file included with this form but I am not sure if I need to put that in as I have embedded this form into an SWF file so I don't think I need that code but please let me know if I am wrong about this.
    I am posting both the AS code and PHP code below.. if someone can help me figure this out I would greatly appreciate it. I am not sure which file the problem is in. If someone here doesn't know PHP then at least see the AS code and let me know if the problem is in that or not. That way I can pinpoint which file the problem is coming from and then seek further help if needed. To see the form in action, go here: http://www.poojasdesigns.com/ and click on "Contact Me".. here are the codes:
    ActionScript 3.0
    //presistant reference to this movie's mail timeline:
    var mainTL:MovieClip = this;
    //start off with submit button dimmed
    submit_mc._alpha = 40;
    //create the LoadVars objects which will be used later
    //one to send the data...
    var dataSender:LoadVars = new LoadVars();
    //and one to recieve what comes back
    var dataReceiver:LoadVars = new LoadVars();
    create listener for Key Object
    this is just a U.I. thing - "wakes up" the submit button
    when all fields have at least some content
    var formCheck:Object = new Object();
    formCheck.onKeyUp = function() {
         if (name_txt.text != '' &&
                   email_txt.text != '' &&
                   subject_txt.text != '' &&
                   message_txt.text != '') {
              //clear any alert messages
              alert_txt.text = '';
              //enable the submit button
              submit_mc._alpha = 100;
         } else {
              //remain disabled until all fields have content
              submit_mc._alpha = 40;
    Key.addListener(formCheck);
    /*#######SET STYLES FOR TEXT FIELDS#######*/
    //define styles for both normal and focussed
    //set hex values here that work with your site's colors
    var normal_border:Number = 0x000000;
    var focus_border:Number = 0xFA8D00;
    var normal_background:Number = 0xFFFFFF;
    var focus_background:Number = 0xE9E3E3;
    var normal_color:Number = 0xFFFFFF;
    var focus_color:Number = 0x000000;
    //create an array containing the fields we wish to have styles applied to
    inputs=[name_txt,email_txt,subject_txt,message_txt];
    a "for in" loop now iterates through each element in the "inputs" array
    and applies our "normal" formatting to each input text field
    for( var elem in inputs) {
         inputs[elem].border = true;
         inputs[elem].borderColor = normal_border;
         inputs[elem].background = true;
         inputs[elem].backgroundColor = normal_background;
         inputs[elem].textColor = normal_color;
         /*this takes care of applying the "normal" style to each of the four input fields;
              the following TextField prototypes handle highlighting when an input field
              gains focus and resetting to normal when a field loses focus*/
         inputs[elem].onSetFocus = function() {
              this.borderColor = focus_border;
              this.backgroundColor = focus_background;
              this.textColor = focus_color;
         inputs[elem].onKillFocus = function() {
              this.borderColor = normal_border;
              this.backgroundColor = normal_background;
              this.textColor = normal_color;
    //finally: make the first field (name_txt) selected when the movie loads
    Selection.setFocus(name_txt);
    /*DEFINE SUBMIT BUTTON BEHAVIOR*/
    submit_mc.onRelease = function() {
         //final check to make sure fields are completed
         if (name_txt.text != '' &&
                   email_txt.text != '' &&
                   subject_txt.text != '' &&
                   message_txt.text != '') {
              alert_txt.text='';//clear any previous error messages or warnings
              //advance playhead to frame 2 - the "processing" message
              mainTL.play();
              //assign properties to LoadVars object created previously
              dataSender.name = name_txt.text;
              dataSender.email = email_txt.text;
              dataSender.subject = subject_txt.text;
              dataSender.message = message_txt.text;
              //callback function - how to handle what comes abck
              dataReceiver.onLoad = function() {
                   if (this.response == "invalid") {
                        mainTL.gotoAndStop(1);
                        alert_txt.text = "Please verify your email address - it appears to be incorrect."
                   } else if (this.response == "passed") {
                        mainTL.gotoAndStop(4);
              //now send data to script
              NOTE: the line below presumes the Flash swf file and php script are in the
              SAME DIRECTORY on your server. If this is not the case (if for example you
              wish to put the php script along with other similar items in a "scripts"
              directory) you MUST MODIFY THE PATH. Otherwise the Flash movie won't be
              able to locate the php script.
              dataSender.sendAndLoad("processEmail.php", dataReceiver, "POST");
         } else {
              //warning if they try to submit before completing
              alert_txt.text = "Please fill out all the fields before submitting the form.";
    PHP
    <?php
    //create short variable names
    $name=$_POST['name'];
    $email=$_POST['email'];
    $subject=$_POST['subject'];
    $message=$_POST['message'];
    $name=trim($name);
    $email=trim($email);
    $subject=StripSlashes($subject);
    $message=StripSlashes($message);
    /*my email address - dummy address inserted for privacy in this forum*/
    $toaddress='[email protected]';
    if (preg_match ("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i", $email)) {
    mail($toaddress,$subject,$message,"From: $name <$email>\r\nReply-To: $email\r\nReturn-Path: $email\r\n");
    //clear the variables
    $name='';
    $email='';
    $subject='';
    $message='';
    echo "response=passed";
    else {
    echo "response=invalid";
    exit;
    ?>
    Please let me know how to proceed. Thanks so much!
    *Pooja*

    You say you don't know much about AS3, and that you have embedded this form into an swf.  In what manner did you embed it, and what version of AS does the swf use?  Have you tried using the form in the page that was provided as a standalone test to see if it works?

  • Site messed up after adding Contact form.

    The site is online in its current state: http://www.wientjesvoegwerk.nl/index.html
    The site uses (X)HTML, JAVA, PHP and Spry tabbed panels with a CSS layout.
    The current state has:
    <?php include("mail.php"); ?>
    Before the Doctype, etc.
    <?php $xajax->printJavascript('xajax/'); ?>
    In the header.
    But adding:
    <?php echo '<div id="contact_result">'.$form.'</div>'; ?>
    to the div where i want to put the mailing form results in problems...
    If i add that last line my footer will go up to the header. and i dont know why...
    The new code from the form that messes up the site is marked in red.
    The HTML:
    <?php include("mail.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>Wientjes Voegwerk & Renovatie - Home</title>
        <link href="CSS/Style.css" rel="stylesheet" type="text/css" />
         <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
         <link href="CSS/Style.css" rel="stylesheet" type="text/css" />
         <meta http-equiv="Content-Language" content="NL" />
         <meta http-equiv="imagetoolbar" content="no" />
         <meta name="MSSmartTagsPreventParsing" content="true" />
        <meta name="description" content="Wientjes Voegwerk en Renovatie is een voeg- en renovatiebedrijf gespecialiseerd in gevelrenovatie. Dagelijkse werkzaamheden zijn het voegen van nieuwbouwwerk, en alle voorkomende vormen van gevelrenovatie. Ik geef uw woning, garage of schoorsteen de aandacht die het verdient en ben trots op het resultaat van mijn werk!"/>
        <meta name="keywords" content="Voegwerk, Renovatie, Reinigen, Impregneren, Muur, Voegen, Steen, Woning, Garage, Schoorsteen, Bedrijf, Gevel, Wientjes, Uitslijten, Kappen, Fundering, Vorstschade, Metselen, Metselwerk, Vocht" />
        <meta name="author" content="Rob Nijlaan" />
        <?php $xajax->printJavascript('xajax/'); ?>
    </head>
    <body>
    <div id="WContainer">
      <div id="WHeader" align="center">
             <img src="Pictures/VoegenRenLos.png" width="540" height="58" /><br />
        <img src="Pictures/WientLogo.png" width="600" height="136" alt="Wientjes Voegwerk &amp; Renovatie" /></div>
         <div id="TabbedPanels1" class="VTabbedPanels">
              <ul class="TabbedPanelsTabGroup">
             <div class="TabbedPanelsTab" tabindex="0">
              <style>#Home a{display:block;color:transparent;} #Home a:hover{background-position:left bottom;}a#Home {display:none}</style>
              <table id="Home" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Home">
            <a href="javascript:TabbedPanels1.showPanel(1);" title="Home" style="background-image:url(Buttons/Home.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
              </div>
             <div class="TabbedPanelsTab" tabindex="0">
              <style>#Info a{display:block;color:transparent;} #Info a:hover{background-position:left bottom;}a#Info {display:none}</style>
              <table id="Info" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Info">
              <a href="javascript:TabbedPanels1.showPanel(2);" title="Info" style="background-image:url(Buttons/Info.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
              </div>
             <div class="TabbedPanelsTab" tabindex="0">
              <style>#Gallerij a{display:block;color:transparent;} #Gallerij a:hover{background-position:left bottom;}a#Gallerij {display:none}</style>
              <table id="Gallerij" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Gallerij">
              <a href="javascript:TabbedPanels1.showPanel(3);" title="Gallerij" style="background-image:url(Buttons/Gallerij.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
            </div>
              <div class="TabbedPanelsTab" tabindex="0">
              <style>#Contact a{display:block;color:transparent;} #Contact a:hover{background-position:left bottom;}a#Contact {display:none}</style>
              <table id="Contact" width=0 cellpadding=0 cellspacing=0 border=0><tr>
              <td style="padding-right:0px" title ="Contact">
              <a href="javascript:TabbedPanels1.showPanel(4);" title="Contact" style="background-image:url(Buttons/Contact.png);width:172px;height:75px;display:block;"><br/></a></td>
              </tr></table>
            </div>
            <br />
            <br />
            <br />
            <br />
            <br />
            <center><footer>Wientjes Voegwerk en Renovatie<br /><br />
            tel; 06 - 221 464 28<br /><br />kvk;
            </footer></center>
            </ul>
                     <div class="TabbedPanelsContentGroup">
                        <div class="TabbedPanelsContent" id="Home">
                       <h1>Welkom Bij Wientjes Voegwerk en Renovatie!</h1>
          <p>Wientjes Voegwerk en Renovatie is een voeg- en renovatiebedrijf gespecialiseerd in gevelrenovatie.<br />Dagelijkse werkzaamheden zijn het voegen van nieuwbouwwerk, en alle voorkomende vormen van gevelrenovatie.<br />Ik geef uw woning, garage of schoorsteen de aandacht die het verdient en ben trots op het resultaat van mijn werk!<br /><br />Wientjes, J </p>
          <h2>Voegen/Renovatie/Reinigen & Impregneren. </h2>
    <table border="0" align="right"><center><tr><td>
    <a href="Foto/Foto's telefoon1 075.jpg"><img src="Foto/Foto's telefoon1 075.jpg" alt="Muur met Steiger" width="379" height="354" align="right" margin-right="55px"/>
    </a></td></tr><tr><td><center>klik op de foto voor een groter voorbeeld</center></td></tr></center></table>
      <p>Vaak wordt er bij het kopen van een woning weinig aandacht besteed aan het voegwerk. Er wordt alleen gekeken naar hoe een woning is gebouwd.<br />Een voeg bepaalt echter wel het aanzicht van een woning. Van een goed aangebrachte voeg heeft u uiteraard veel langer plezier. <br />Renovatie bestaat voornamelijk uit het uitslijpen of kappen van het oude voegwerk. Waar nodig het verwijderen van scheuren die zijn ontstaan door:</p>
      <ul>
        <li>
          <p>
            Verzakking van de fundering
          </p>
        </li>
        <li>
          <p>
            Slecht voegwerk
          </p>
        </li>
        <li>
          <p>
            Vorstschade
          </p>
        </li>
        <li>
          <p>
            Doorhangen of ontbreken van ...
          </p>
        </li>
      </ul>
      <p>Bij gevelvervuiling van uw woning kunnen er problemen ontstaan die het wooncomfort negatief kunnen beïnvloeden.<br />Wanneer de voeg is aangetast of het metselwerk is door vorstschade beschadigd, kunnen er vochtproblemen in huis ontstaan.<br />Mos en alg hechten zich goed aan beschadigde stenen en voegwerk. <br /><br />Door middel van impregnering wordt een woning waterafstotend gemaakt.<br />Dit betekent dat het voeg- en metstelwerk jarenlang wordt beschermd tegen weersinvloeden. <br />Ook is impregnering beter voor de isolatie van de woning.</p>
    <p align="left"><img src="Pictures/TelnrLos.png" width="525" height="49" align="top"/></p>
                             </div>
                       <div class="TabbedPanelsContent" id="Info">
                             test2
                       </div>
                       <div class="TabbedPanelsContent" id="Gallerij">
                             test3
                       </div>
                            <div class="TabbedPanelsContent" id="Contact">
                    <?php echo '<div id="contact_result">'.$form.'</div>'; ?>
                        </div>
                     </div>
           `     </div>
        </div>
         <div id="WFooter" align="center">
             <footer>Wientjes Voegwerk & Renovatie     ,    03- '02         »        Site by ;    <b>Rob Nijlaan</b>        »        Problemen of vragen over deze site?    -    <b><a href="mailto:[email protected]">[email protected]</a></b></footer>
           </div>
    </div>
    </body>
    </html>
    </
    The CSS:
    @charset "utf-8";
    /* CSS Document */
    html,body {
         height:100%; /* needed for container min-height */
         width:100%;
         background: #FFFFFF url(../Pictures/Background.png) no-repeat center;
         color:#000;
    h1{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif; color: #595999;
    font-weight: bold;
    font-style:italic;
    font-size: 250%;
    h2{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif; color: #595999;
    font-weight: bold;
    font-size: 200%;
    p{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif;
    font-size: 110%;
    footer{
    font-family: "Trebuchet MS", verdana, arial, helvetica, sans-serif;
    font-size: 70%;
    #WContainer{
         position:absolute;
         margin:0 auto;
         width:80%;
         background:none;
         height:auto;
         height:100%;
         min-height:100%;
         margin-left: 10%;
         margin-right: 10%;
    #WHeader{
         height: 195px;
         width:100%;
         margin-bottom: 10px;
         margin-left: 0px;
         margin-right: 10px;
    .VTabbedPanels .TabbedPanelsTabGroup {
         float: left;
         width: 172px;
         height: 75px;
         background-color: #FFF;
         position: relative;
         border-top: solid 0px #FFF;
         border-right: solid 0px #FFF;
         border-left: solid 0px #FFF;
         border-bottom: solid 0px #FFF;
    .VTabbedPanels .TabbedPanelsTab {
         float: none;
         margin: 0px;
         border-top: none;
         border-left: none;
         border-right: none;
    .VTabbedPanels .TabbedPanelsContentGroup {
         margin-left: 220px;
         width: auto;
         height: auto;
         min-height:50%;
         max-width:83%;
         min-width:500px;
         padding: 20px 20px 20px 20px;
         border-left: solid 1px #999;
         border-bottom: solid 2px #999;
         border-top: solid 1px #999;
         border-right: solid 2px #999;
    #WFooter{
         clear:both;
         height: 30px;
         margin-top:1px;
    Also i use "SpryTabbedPanels.js", for the html.
    The Contact form: (adjusted to hide critical info from forum users)
    <?php
    require_once('phpmailer/class.phpmailer.php');
    require_once('xajax/xajax_core/xajax.inc.php');
    $form = '<form id="ContactForm">
                <div class="container">
              <label class="contactlabel">Ùw Naam<br /><input name="name" type="text" class="input" /></label>
              <label class="contactlabel">Uw Email Adres:<br /><input name="email" type="text" class="input" /></label>
              <label class="contactlabel">Uw Telefoonnummer:<br /><input name="phone" type="text" class="input" /></label>
              Typ hier uw bericht:<br />
              <textarea name="msg" cols="1" rows="1"></textarea><br />
                 <input type="button" id="subbtn" class="btn" value="Submit" onclick="xajax_myFunction(xajax.getFormValues(\'ContactForm\'));" />
              <div id="form_msg"></div> //this div will contain error messages
            </div>
         </form>';
    function myFunction($get) { 
        global $form, $error;
        $error = '';
        $objResponse = new xajaxResponse();
        $show_form = true; 
        if (!empty($get['email']) && !empty($get['phone']) && !empty($get['msg']) && !empty($get['name'])) {
            if (preg_match("/^[\w-]+(\.[\w-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4})$/i", trim($get['email']))) {
                $email = preg_replace("/\r\n/", "", $get['email']);
                $from = preg_replace("/\r\n/", "", $get['name']);
               $name = $get['name'];
                $phone = $get['phone'];
             $msg = $get['msg'];
             $mail = new PHPMailer();
                $mail->IsSMTP();
                $mail->Host = "mail.YOURHOST.com";
                $mail->SMTPAuth = true;
                $mail->Username = "USERNAME";
                $mail->Password = "PASSWORD";
                $mail->From = $get['email'];
                $mail->FromName = $get['name'];
                $mail->AddAddress("[email protected]");
                $mail->AddReplyTo($email, $from);
                $mail->Subject = "Er is een bericht verzonden vanuit Wientjesvoegwerk.nl";
                $mail->IsHTML(true);
             $mail->Body = "Name: $name <br/> Email: $email <br/> Phone: $phone <br/> Message: $msg";
                if ($mail->Send()) {
                    $error = "Success! Dank u voor uw interesse! Er wordt zo spoedig mogelijk contact met u opgenomen.";
                    $show_form = false;
                } else {
                    $error = "Er is een probleem ontstaan tijdens het verzenden, probeert u het a.u.b. nog eens.";
                        $show_form = true;
            } else {
                $error = "Het ingevoerde email adress is onjuist. Probeert u het a.u.b. nog eens.";
                   $show_form = true;
        } else {
            $error = "Vul a.u.b. alle nodige velden in!";
              $show_form = true;
        if (!$show_form) {
              $objResponse->assign('contact_result', 'innerHTML', $error);
              } else {
              $objResponse->assign('form_msg', 'innerHTML', $error);
        return $objResponse;
    $xajax = new xajax();
    $xajax->registerFunction('myFunction');
    $xajax->processRequest();
    ?>
    Also "class.phpmailer.php" and "xajax.inc.php" are obviously needed as well as some other files from those packages.
    THE BIG PROBLEMS:
    1. Adding the form to a div (into content div of Spry tabbed panels) results in wrong apearance.
         Footer is put to top.
    2. Adding the form to a div results in broken functions.
         Buttons in the Spry tabs dont work anymore.
    3. Java is messed up.
         in top screen you read:  printJavascript('xajax/'); ?>
         in lower screen in content div:  test2 test3 (text from the 2nd and 3rd Content area of Spry, just so its filled with something) and  '.$form.'  '; ?>
    SOLUTIONS ASKED:
    1. Please help me with the contact form so it will work on my page and no error remains. Im not that good in Java...
    2. Please help me solving the problem with the footer. I dont have any clue anymore why this happens. And why no problems occur without the mail form.
    3. Can anyone tell me why the buttons also lose function? It looks like a similar problem as the footer.
    In short: HELP!

    Thank you for pointing me in the right direction. I must honestly say im a hobby programmer that has the capability to learn fast.
    A few weeks ago i only knew html, actionscript, etc. I never worked with xhtml, javascript, css, etc. untill now.
    But with some help i managed to resolve ALL problems so far, exept 2...
    My site has no errors anymore all files are validated 100%!
    The only 2 problems now are;
         1.     The use of <li> for Spry tabs. They make the buttons have a dot in front of them. I hope this can be changed into something that removes the
                 list dots/numbers.
    So from this:
    button
    to this:
    button
         2.     I like to use this email form from: http://www.webbyzone.com/2010/01/10/make-xajax-phpmailer-contact-forms-work/
    The code is embedded in my site but doesnt work at all. Please take a look at it...

  • Can anyone help with my PHP contact form please!

    Hi all,
    I've just implemented the email contact form as described in the PHP Solutions book by David Powers and it is working fine.
    What I'm having problems with is my form is at the bottom of a long page and you have to scroll or click a link to get to it, which means that when the submit button is pressed, whether the form is successfully submitted or a field hasn't been completed, the user ends up back at the top of the page having to scroll back down to the form before they can see the feedback (either thanking them for submitting or pointing out that they have tried to submit an incomplete form).
    Can anyone tell me how I can make the page redirect upon clicking submit so that the user returns to the part of the page where the form is so they can see the feedback instead of going to the top of the page where the form is out of view.
    Many thanks,
    Karl.

    I've attached the entire code from the page plus the css so you can see what's going on and in additiion I've put in the corefuncs.php include code.
    Hope that's enough, thanks for looking.
    Cheers,
    Karl.
    <?php
    include('includes/corefuncs.php');
    if (function_exists('nukeMagicQuotes')) {
    nukeMagicQuotes();
    // process the email
    if (array_key_exists('send', $_POST)) {
    $to = '[email protected]'; // use your own email address
    $subject = 'Feedback from my form page';
    // list expected fields
    $expected = array('name', 'email', 'comments');
    // set required fields
    $required = array('name', 'email', 'comments');
    // create empty array for any missing fields
    $missing = array();
    // assume that there is nothing suspect
    $suspect = false;
    // create a pattern to locate suspect phrases
    $pattern = '/Content-Type:|Bcc:|Cc:/i';
    // function to check for suspect phrases
    function isSuspect($val, $pattern, &$suspect) {
         // if the variable is an array, loop through each element
         // and pass it recursively back to the same function
         if (is_array($val)) {
              foreach ($val as $item) {
                   isSuspect($item, $pattern, $suspect);
         else {
         // if one of the suspect phrases is found, set Boolean to true
              if (preg_match($pattern, $val)) {
                   $suspect = true;
    // check the $_POST array and any subarrays for suspect content
    isSuspect($_POST, $pattern, $suspect);
    if ($suspect) {
    $mailSent = false;
    unset($missing);
    else {
    // process the $_POST variables
    foreach ($_POST as $key => $value) {
    // assign to temporary variable and strip whitespace if not an array
    $temp = is_array($value) ? $value : trim($value);
    // if empty and required, add to $missing array
    if (empty($temp) && in_array($key, $required)) {
    array_push($missing, $key);
    // otherwise, assign to a variable of the same name as $key
    elseif (in_array($key, $expected)) {
    ${$key} = $temp;
    // validate the email address
    if (!empty($email)) {
    // regex to ensure no illegal characters in email address
    $checkEmail = '/^[^@]+@[^\s\r\n\'";,@%]+$/';
    // reject the email address if it doesn't match
    if (!preg_match($checkEmail, $email)) {
    array_push($missing, 'email');
    // go ahead only if not suspect and all required fields OK
    if (!$suspect && empty($missing)) {
    // build the message
    $message = "Name: $name\n\n";
    $message .= "Email: $email\n\n";
    $message .= "Comments: $comments";
    // limit line length to 70 characters
    $message = wordwrap($message, 70);
    // create additional headers
    $additionalHeaders = 'From: domain.com Feedback Form<[email protected]>';
    if (!empty($email)) {
    $additionalHeaders .= "\r\nReply-To: $email";
    // send it
    $mailSent = mail($to, $subject, $message, $additionalHeaders, '[email protected]');
    if ($mailSent) {
    // redirect the page with a fully qualified URL
    header('Location: http://www.domain.com/index.php#form-div');
    exit;
    ?>
    <!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>Page | title</title>
    <script type="text/javascript" src="jquery.min.js">></script>
    <script type="text/javascript" src="jquery.cycle.all.2.72.js"></script>
    <script type="text/javascript">
    $(function() {
        $('#slideshow').cycle({
            speed:       1400,
            timeout:     8000
    </script>
    <link href="main.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="wrapper" class="container">
    <div id="header">
    <h1 class="logo">XXX Xxxx Xxxxx</h1>
    <h2 class="subhead">Xxx Xxxxxxx xxx Xxxxxx Xxxxxxx xx Xxxx xxx Xxxxx.</h2>
    <div id="nav">
    <h2>Need more information?</h2>
    <h3>Look no further...</h3>
    <ul>
      <li><a class="nav-about" href="#about-div">About Us...</a></li>
      <li><a class="nav-contact" href="#contact-div">Contact Us...</a></li>
    </ul>
    </div>
    <!-- end nav -->
    </div><!-- end header -->
    <div id="page-content">
    <div id="cycle">
    <div id="cycle-nav"></div>
    <div id="slideshow" class="pics">
                <img src="im/slides/escape.jpg" border="0" alt="" title="" width="547" height="339" />
                <img src="im/slides/old-lady.jpg" border="0" alt="" title="" width="547" height="339" />
                <img src="im/slides/gouge.jpg" border="0" alt="" title="" width="547" height="339" />
                <img src="im/slides/disarm.jpg" border="0" alt="" title="" width="547" height="339" /></div><!-- slideshow -->
    </div><!-- cycle -->
    <div id="right-column">
    <div id="ladies">
    <h1>Xxxxxx xxx'x xxx xxxxx xxxx xxxx.</h1>
    <p>Xxxx xxxxxxxxx xxxx XXX xxxxx xxxxxxxxxx xxx xxxx xxxx xxxx xxxx!</p>
    <p class="bottom">XXXX XX xx xxxx xxx xxxx...</p>
    </div>
    <div id="courses">
         <div id="course1">
          <h2 class="top"><strong>Xxxx Xxxx Xxxxxxx Xxxxxx Xxxxxxx</strong></h2>
        <p>XXX Xxxx Xxxx Xxxxxxx xxxxxx xxx x xxxx-xxxx xxxxxxxx xxx xx xxxx xxxx xxxxx xxx xxxxxx.</p>
        <p><strong>XXXXX:</strong> XXX.XX xxx xxxxxx.</p>
        <p><strong>XXXX XXXXXX:</strong><br />
        Xxxxxx Xxx Xxxx<br /><strong>[XXXXXX XXXXXXXXX]</strong></p>
        <ul><strong>XXXXXX XXXXXXX:</strong>
    <li>Xxxxxx Xxx Xxxxxxxxx</li>
    <li>Xxxxxx Xxx Xxxxxxxx</li>
    <li>Xxxxxx Xx Xxxxxxx -XXXX</li>
    </ul>
        <h2>Xxxx Xxxxx...</h2>
        <p class="book-early">Xx xxxxx xxx xx xx xxxxxxxx xxxxxxx xxx xxx xxxxxxx xxx xxxxx xxxxxxxxxx xx x xxxxxxx xxxxxxx xxxxxxxx xx xxx xxxx xxx xxxxxxxxx xxxxxx xxxx xx xxxxx xx xxxxxxx xx xxx xxx xxxxxxxx xx xxxxxxxxx xx xxxxxx.</p>
        <h2><strong>Xxxxxxxxx xx xxx Xxxxxx</strong></h2>
        <p class="location">      XX. Xxxxxx Xxxx, <br />
          Xxx Xxxxxxxxx Xxxxxx, Xxxxxxxx Xxxx, Xxxx (xxxxx xxx xxxx xx xxxx).<br />
          Xxxxxxxx xx xxxxxxxxxxx xxxx xxxxxxxx Xxxx.</p>
        <h2><strong>Xxxxxxxxx xx xxx Xxxxxx</strong></h2>
        <p class="structure"><strong>Xxxxxxx xxxxxxx:</strong><br />
          XX.XXxx – XX.XX xx<br />
          <strong>Xxxxx xxxxx:</strong><br />
          XX xxxx.<br />
          Xxxxxx xxxxxxx xxxx xxx xxxxxx Xxxxx.<br />
          <strong>Xxxxxxxxxx xxxxxxx:</strong><br />XX.XXxx – X.XXxx</p>
        <h2><strong>Xxxxxx Xxxx...</strong></h2>
        <p class="news">Xxxxx xxxx xxxxx xxx xxxx xxxxx xxx Xxxx Xxxx Xxxxxxx Xxxxxx.<br />
        </p>
      </div>
      <div class="to-top">
      <p><a href="#header">[Back to Top]</a></p>
      </div>
         <div id="course2">
          <h2 class="top"><strong>Xxxxx Xxxx Xxxxxxx Xxxxx Xxxxxxx</strong></h2>
          <p>Xxx XXX XXXXX Xxxx Xxxxxxx Xxxxx xxx x xxx-xxxx xxxxxxxx xxx xx xxxx xxxxxx.</p>
        <p><strong>XXXXX:</strong> XX.XX xxx xxxxxx</p>
        <p><strong>XXXX XXXXX:</strong><br /> 
        Xxxxxx XXxx Xxx<br /><strong>[XXXXXX XXXXXXX]</strong></p>
        <ul><strong>XXXXXX XXXXXXX:</strong>
    <li>Xxxxxx Xxx Xxxx</li>
    <li>Xxxxxx Xxx Xxxx</li>
    <li>Xxxxxx Xxx Xxxx</li>
    <li>Xxxxxx Xxx Xxxx</li>
    </ul>
        <h2>Xxxx Xxxxx...</h2>
        <p class="book-early">Xx xxxxx xxx xx xx xxxxxxx xxxxxxx xxx xxx xxxxxxx xxx xxxxx xxxxxxxxxx xx x xxxxxxxxx xxxxxxx xxxxxxxx xx xxx xxxx xxx xxxxxxxxx xxxxxx xxxx xx xxxxx xx xxxxxxx xx xxx xxx xxxxxxxxxx xx xxxxxxxxx x xxxxxx.</p>
        <h2><strong>Xxxxxxxxx xx xxx Xxxxx</strong></h2>
        <p class="location">Xxxxxxxxx Xxxx, Xxxxxx Xxxxxx, Xxxxx, (xxx xxxxxxx xxxxxxxxx xx -<br />
          Xxxxxxx xx xxxxxxxxxx xxxx - </p>
        <h2><strong>Xxxxs Xxxx...</strong></h2>
        <p class="news">Xxxxx xxxx xxxxx xxx xxxx xxxxx xxx Xxxxx Xxxx Xxxxxxx Xxxxx.<br />
        </p>
      </div><!-- Course 2 end -->
      <div class="to-top">
      <p><a href="#header">[Back to Top]</a></p>
      </div>
    </div><!-- Courses end -->
    </div><!-- end right column -->
    <div id="main-content" >
    <div id="main-content-1" class="clearfix">
    <h2>Xxxxxxx xx xxx Xxxx Xxxxxxx<br />
    xxxxxxx xxxx xxx XXX.</h2>
    <h3>Xxxxxx xxx Xxxxx xxxxxxx…</h3>
    <p>Xxx XXX xx xx xxxxxxxxxxx xxxxx xxxxxx xxxxxxx xx xxxx xxxxxxx xx Xxxx xxx Xxxxx - Xxxx Xxxxxxxxx, xxxxxx xxxxxxxxx xx xxxxx xxxxxx xxx xxxxxx xxxxxx,   xxx xxxxxxxx x xxxx xxxxxxx xx xxxxxx xxxxxxxxx xx xxxxxxxx xxxx xxxxxxx.</p>
    <p>Xxx XXX xxxxxx xxx xxxxxxx xxx xxxxxxxx Xxxx Xxxxxxx xx xxx Xxxx / Xxxxx xxxx xx Xxxx Xxxxxxxxx.</p>
    <p>Xxx xxxxx xxxxxx xx x xxx xxx Xxxx Xxxxxxx Xxxxxx xxxx x xxxxxxxx xx xxxxxxxxx xxxx xxxxx xxxxx xx xxxx xx Xxxx xxxx xxxxx xxx xxxxxx xx xxx Xxxxxxxx Xxxxxx.</p>
    <p>Xxx xxxxxx xxxxxx xx x xxxxxx Xxxx Xxxxxxx Xxxxx xxxxx xx x xxx xxxx xxxxxxx xxx xx xxxx xx xxx xxxxxx xx xxxxx xx Xxxxxxxx Xxxx xx xxxxx Xxxxx Xxxxxx. Xxxxxxxx xxx xx xxxxx xx xxxx xxxxx.</p>
    <h3 class="extra-padding">Xxx xx xx xxx xxx xxxx xxxx xxx xxxxx?</h3>
    <p>Xxxx xxxxxx xx xxxxxxxxxx xxxxxx xx xxxxxx xxx xxx xxxx xxxxxx xxxxxxx xxx xxxx xxxxxx xx xx xxx xxxxxxxxxx xxx xxxx xx xxxx xx xx xxxxxxx xxxxxx xxxx xx xxxxxxxx xx xxxxxxxx xxxx xx xxxxxx xxxxxxxxxx xxxxxxx xxx xxxxxx xx xxxxx xxxxxxxx.</p>
    <p>xxx xxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxxx, xx x xxxxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxxxxxxxxx xxxxxx xxxx xx xxxx.</p>
    <p>xxx xxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxxx, xx x xxxxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxxxxxxxxx xxxxxx xxxx xx xxxx.</p>
    <p>xxx xxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxxx, xx x xxxxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxxxxxxxxx xxxxxx xxxx xx xxxx.</p>
    <p><strong>xxx xxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxxx, xx x xxxxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxxxxxxxxx xxxxxx xxxx xx xxxx.</strong></p>
    <p>xx xxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxxx, xx x xxxxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxxxxxxxxx xxxxxx xxxx xx xxxx.</p>
    <p>xx xxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxxx, xx x xxxxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxxxxxxxxx xxxxxx xxxx xx xxxx.</p>
    <p><strong>Xxxx xxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxxx, xx x xxxxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxxxxxxxxx xxxxxx xxxx xx xxxx..</strong></p>
    <h3 class="extra-padding">Xxxxxxx xx…</h3>
    <h4>Xxx xxxxxxxxxx xx xxx Xxxx Xxxx Xxxxxxx Xxxxxx xxxxxxxx xxxx xxxxxx xxxx</h4>
    <h4>Xxx xxxxxxxxxx xx xxx Xxxx Xxxx Xxxxxxx Xxxxxx xxxxxxxx xxxx xxxxxx xxxx</h4>
    </div>
    <div id="main-content-2" class="clearfix">
      <h4> </h4>
    </div>
    </div><!-- end maincontent -->
    <div id="bottom-content">
    <div id="about-div">
    <h2>Xxxxx xx…</h2>
    <p>Xx, xx xxxxx ixx Xxxxxx Xxxxxxxxx xxxx xxxx xxxx xxxxxxx xxx xxxxxxxx xxxx xxxxxxx xxx xxxx xxxxxx xxxx xxxxx.</p>
    <p>Xx, xx xxxxx ixx Xxxxxx Xxxxxxxxx xxxx xxxx xxxx xxxxxxx xxx xxxxxxxx xxxx xxxxxxx xxx xxxx xxxxxx xxxx xxxxxXx, xx xxxxx ixx Xxxxxx Xxxxxxxxx xxxx xxxx xxxx xxxxxxx xxx xxxxxxxx xxxx xxxxxxx xxx xxxx xxxxxx xxxx xxxxx</p>
    <p>Xx, xx xxxxx ixx Xxxxxx Xxxxxxxxx xxxx xxxx xxxx xxxxxxx xxx xxxxxxxx xxxx xxxxxxx xxx xxxx xxxxxx xxxx xxxxx</p>
    <div class="about-bottom-to-top">
      <p><a href="#header">[Back to Top]</a></p>
      </div>
    </div>
    <hr />
    <div id="links-div">
    <h2>Xxxxxx xxxxx...</h2>
    <ul>
         <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
        <li><a href="">Xxx Xxxxx xxxx xxx xxx xxx xx(?)</a></li>
    </ul>
    </div>
    <div id="contact-div">
    <h2>Xxxxxx xxx...</h2>
    <p>Xxxxx x xxxx xxx xxx xxxxxxxxxx xxx xxxxxxx x xxxx xxx xxx xxxxxxxxxx xxx xxx xxxx x xxxx xxx xxx xxxxxxxxxx xxx xxxxxxx x xxxx xxx xxx xxxxxxxxxx xxx xxx<br />
    </p>
    <p class="phone">Xxxxx</p>
    </div>
    <div id="form-div">
         <p>Please make sure you complete all three fields below so that we can reply directly.</p>
         <?php
              if ($_POST && isset($missing) && !empty($missing))
              ?>
              <p class="warning">Please complete the missing item(s) indicated.</p>
              <?php
              elseif ($_POST && !$mailSent) {
              ?>
              <p class="warning">Sorry, there was a problem sending your message.
              Please try later.</p>
              <?php
              elseif ($_POST && $mailSent) {
              ?>
              <p class="thanks"><strong>Your message has been sent. Thank you for your feedback.
              </strong></p>
              <?php } ?>
      <form method="post" id="feedback" class="contactForm" action="">
                                              <label for="name">Name: <?php
                                                 if (isset($missing) && in_array('name', $missing)) { ?>
                                                 <span class="warning">Please enter your name</span><?php } ?>
                                              </label>
                                     <input name="name" id="name" type="text" class="formbox"
                                             <?php if (isset($missing)) {
                                                      echo 'value="'.htmlentities($_POST['name']).'"';
                                             } ?>
                                             />
                                              <label for="email">Email: <?php
                                                 if (isset($missing) && in_array('email', $missing)) { ?>
                                                 <span class="warning">Please enter a valid email address</span><?php } ?>
                                            </label>
                                        <input name="email" id="email" type="text" class="formbox"
                                            <?php if (isset($missing)) {
                                                      echo 'value="'.htmlentities($_POST['email']).'"';
                                            } ?>
                                            />
                                        <label for="comments">Comments: <?php
                                            if (isset($missing) && in_array('comments', $missing)) { ?>
                                            <span class="warning">Please enter your comments</span><?php } ?>
                                            </label>
                                        <textarea name="comments" id="comments" cols="30" rows="10"><?php
                                                 if (isset($missing)) {
                                                      echo htmlentities($_POST['comments']);
                                            } ?></textarea>
                                             <input name="send" id="send" class="formSubmit" type="submit" value="Send message" />
      </form>
       <div class="form-bottom-to-top">
      <p><a href="#header">[Back to Top]</a></p>
      </div>                         
    </div>
    </div>
    <div id="footer">
    <p>Xxxxxxxxxxxxx</p>
    </div>
    </div><!-- wrapper -->
    </div>
    <!-- end page-content -->
    </div><!-- end wrapper -->
    </body>
    </html>
    /* following is the include php code */
    <?php
    function nukeMagicQuotes() {
      if (get_magic_quotes_gpc()) {
        function stripslashes_deep($value) {
          $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
          return $value;
        $_POST = array_map('stripslashes_deep', $_POST);
        $_GET = array_map('stripslashes_deep', $_GET);
        $_COOKIE = array_map('stripslashes_deep', $_COOKIE);
    ?>
    /* Following is the css */
    @charset "UTF-8";
    /* CSS Document */
    html { margin: 0; background: #faf9f2 url(im/background_texture_tile.jpg) top center repeat; text-align: center; }
    body { margin: 0 auto; background: url(im/background_texture_tile.jpg) top center repeat; text-align: center; width: 910px;
    padding: 0; font: 62.5% Arial, Verdana, Helvetica, sans-serif; }
    h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, form, label, fieldset, legend, blockquote, table { margin: 0; padding: 0; }
    #wrapper {
         text-align: left;     
         position: relative;
    .container{     
         margin: 0 auto 0;
         width: 910px;
    #header {
         width: 870px;
         height: 150px;
         margin: 0 20px 20px 20px ;
         background: url(im/header-bg.gif) top left no-repeat;
    h1.logo {
         float: left;
         height: 130px;
         width: 315px;     
         margin: 0 0 0 50px;
         border: 0;
         outline: 0;
         text-indent:-9999px;
         background:url(im/logo.jpg) 0 10px no-repeat;
         display: inline;
    h2.subhead {
         font-weight: bold;
         font-size: 1.6em;
         line-height: 1.4em;
         color: #999;
         float: right;
         width: 135px;
         text-align: right;
         margin: 25px 320px 0 0;
         display: inline;
    #nav {
         position: absolute;
         top: 0px;
         right: 50px;
         width: 270px;
         height: 277px;
         background: url(im/nav-bg.png) top left no-repeat;
    #nav h2 {
         font-size: 1.6em;
         text-align: center;
         color: #4D98C5;
         margin-top: 35px;
    #nav h3 {
         font-size:2.2em ;
         text-align: center;
         color: #4D98C5;
         padding-bottom: 13px;
         margin: 0 40px 0;
         border-bottom: 4.5px dotted #999;
    #nav ul {list-style:none;}
    #nav li {
    list-style:none;
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 40px 0 40px ;
    border-bottom: 4.5px dotted #999;
    #nav li a {
    text-align: left;
    background-image:url(im/CSSSprite.jpg);
    background-repeat:no-repeat;
    color: #4D98C5;
    text-decoration: none;
    line-height: 65px;
    margin: 10px 0 10px 0;
    #nav li a.nav-about {
    background-position: 105px -15px;
    padding: 20px 95px 20px 0;
    #nav li a.nav-about:hover,
    #nav li a.nav-about:active,
    #nav li a.nav-about:focus {
    background-position: 105px -102px;
    color: #814098;
    #nav li a.nav-contact {
    background-position: 105px -180px;
    padding: 20px 80px 20px 0;
    #nav li a.nav-contact:hover,
    #nav li a.nav-contact:active,
    #nav li a.nav-contact:focus {
    background-position: 105px -267px;
    color: #814098;
    /* Cycle styles */
    #cycle {
         float: left;
         margin-left: 20px;
         margin-bottom: 25px;
         width: 547px;
         height: 339px;
         clear: both;
    .pics { height: 339px; width: 547px; padding:0; margin:0; overflow: hidden; border: 1px solid #814098; }
    /* End cycle styles */
    /*///// RIGHT CONTENT ////*/
    #right-column {
         float: right;
         width: 260px;
         margin: 0 53px 0 0;
         display: inline;
    #ladies {
         width: 252px;
         height: 437px;
         background: url(im/pink-ladies.png) top left no-repeat !important ;
         background: url(im/pink-ladies.gif) top left no-repeat ;
         margin: 120px 0 0 6px;
    #ladies h1 {
         margin: 0px 30px 150px 20px;
         padding-top: 60px;
         font: bold 2em Georgia, "Times New Roman", Times, serif;
         text-align: center;
         color: #6A437E;
    #ladies p {
         margin: 0px 30px 15px 20px;
         font: normal 1.8em Georgia, "Times New Roman", Times, serif;
         text-align: center;
         line-height: 1.4em;
         color: #EF4358;
    #ladies p.bottom {
         margin: 0px 30px 0px 20px;
         font: bold 2.2em Helvetica, Arial, sans-serif;
         text-align: center;
         color: #6A437E;
    #courses{
         margin-top: 15px;
         margin-bottom: 18px;
    #courses h2 {
         letter-spacing: .07em;
    /*Hull Course */
    #course1 {
         margin: 0 0 5px 6px ;
         width:240px;
         background:url(im/rightnav.gif) bottom left no-repeat;
    #course1 h2.top {
         background:url(im/rightnaw.gif) top left no-repeat;
         margin:0;
         padding:15px;
         color:#FFFFFF;
         font-size:1.6em;
         line-height: 1.4em;
         font-weight: bold;
         text-transform:uppercase;
    #course1 h2 {
         font-size:1.6em;
         line-height: 1.4em;
         color:#FFFFFF;
         background-color:#814198;
         padding:15px;
         text-transform:uppercase;
    #course1 p {
         font-size:1.4em;
         line-height:1.4em;
         padding: 15px 15px 0 15px;
         margin:0;
    #course1 p a {
         text-decoration:underline;
         font-weight:bold;
         color: #9f1f63     
    #course1 p a:hover {
         color: #ec008c;
    #course1 ul {
         margin: 20px 0 20px 15px;
         font-size:1.4em;
         line-height: 1.6em;
         list-style: none;
    #course1 p.book-early {
         padding-bottom: 20px;
    #course1 p.location {
         padding-bottom: 30px;
    #course1 p.structure {
         padding-bottom: 30px;
    #course1 p.news {
         padding-bottom: 30px;
    #right-column .to-top {
         color: #000;
         text-align: right;
         padding-right: 27px;
         margin-bottom: 40px;
    #right-column .to-top a, a:link {
         color: #000;
         font-size: 1.3em;     
         text-decoration: none;
    #right-column .to-top a:hover {
         text-decoration: underline;
    #course2 {
         margin: 0 0 5px 6px ;
         width:240px;
         background:url(im/rightnav.gif) bottom left no-repeat;
    #course2 h2.top {
         background:url(im/rightnaw.gif) top left no-repeat;
         margin:0;
         padding:15px;
         color:#FFFFFF;
         font-size:1.6em;
         line-height: 1.4em;
         font-weight: bold;
         text-transform:uppercase;
    #course2 h2 {
         font-size:1.6em;
         line-height: 1.4em;
         color:#FFFFFF;
         background-color:#814198;
         padding:15px;
         text-transform:uppercase;
    #course2 p {
         font-size:1.4em;
         line-height:1.4em;
         padding: 15px 15px 0 15px;
         margin:0;
    #course2 p a {
         text-decoration:underline;
         font-weight:bold;
         color: #9f1f63     
    #course2 p a:hover {
         color: #ec008c;
    #course2 ul {
         margin: 20px 0 20px 15px;
         font-size:1.4em;
         line-height: 1.6em;
         list-style: none;
    #course2 p.book-early {
         padding-bottom: 20px;
    #course2 p.location {
         padding-bottom: 30px;
    #course2 p.news {
         padding-bottom: 30px;
    /*///// RIGHT CONTENT ////*/
    #main-content {
         margin: 0 360px 0 40px;
         padding: 0;
    #main-content-1 {
         width: 510px;
    #main-content-2 {
         width: 510px;
    #main-content p {
         font-family: Arial, Verdana, Helvetica, sans-serif;
         font-size: 1.6em;
         line-height: 1.4em;
         padding-bottom: 1em;
         color: #666;
    #main-content h2{
         padding: 0 0 20px 0;
         margin: 0;
         font-family: Arial, Verdana, Helvetica, sans-serif;
         font-size: 3em;
         color: #666;
    #main-content h3 {
         font-size: 2.3em;
         color: #666;
         font-weight: normal;
         padding-bottom: 0.8em;
    #main-content h3.extra-padding {
         padding-top: 0.8em;
         padding-bottom: 0.8em;
    #main-content h4 {
         font-size: 2em;
         font-weight: normal;
    #bottom-content {     
         background-color: #814098;
         clear: both;
         margin: 0 20px;
         width: 870px;
         float: left;
    #bottom-content h2 {
         font-family: Arial, Verdana, Helvetica, sans-serif;
         font-size: 2.6em;
         letter-spacing: .05em;
         color: #FFF;
         font-style: normal;
         padding: 0 0 15px 0;
    #bottom-content p {
         color: #FFF;     
    #about-div {
         padding: 0 320px 30px 0;
         background: url(im/sheila.png) 560px 20px no-repeat !important;
         background: url(im/sheila.jpg) 560px 20px no-repeat ;
    #about-div h2 {
         padding: 20px 28px 15px 28px;
    #about-div p {
         padding: 0 28px 20px 28px;
         font-size: 1.5em;
         line-height: 1.4em;
    .about-bottom-to-top {
         position: relative;
         top: 65px;
         right: -320px;
         text-align: right;
         padding-right: 33px;
         font-size: .68em;     
    .about-bottom-to-top a, a:link {
         color: #FFF;
         text-decoration: none;
    .about-bottom-to-top a:hover {
         text-decoration: underline;
    hr {
           margin: 40px 28px 20px 28px;
           color: #C09FCB;
           border-top: 1px black solid;
    #links-div {
         margin: 0 15px 0px 28px;
         float: left;
         width: 254px;
    #links-div li {
         list-style: none;
         padding: 0 0;
    #links-div li a {
         font-size:1.5em;
         line-height: 1.5em;
         text-decoration: none;
         color: #FFF;
    #links-div li a:hover {
         text-decoration: underline;
    #contact-div {
         margin: 0 10px 0 0;
         width: 254px;
         float: left;
    #contact-div p {
         font-size: 1.5em;
         line-height: 1.4em;
    #contact-div p.phone {
         font-size: 2.2em;
         font-weight: bold;
         letter-spacing: .05em;
    /* CONTACT FORM */
    #form-div {
         margin: 0 28px 50px 0 ;
         float: right;
         width: 281px;
    #form-div .contactForm {
         padding:6px;
    #form-div .contactForm .formbox {
         font-family: Arial, Verdana, Helvetica, sans-serif;
         font-size:1.2em;
         color:#333;
         width:261px;
         padding:5px 3px;
         margin:0 0 5px 0 ;
         border:1px solid #666;
         border-top-color:#000;
         background:#fff url(im/contact-input.gif) top repeat-x;
    #form-div .contactForm #comments {
         font-family: Helvetica, Arial, sans-serif;
         font-size:1.23em;
         color:#333;
         line-height: 1.5em;
         width:258px;
         padding: 5px 0.4em 0 0.4em ;
         margin: 0 0 10px 0 ;
         display:block;
         clear:both;
         border:1px solid #666;
         border-top-color:#000;
         background:#fff url(im/contact-textarea.gif) top repeat-x;
    .formSubmit {
         display:block;
         clear:both;
         width:110px;     
         height:25px;
         padding:0;
         border:none;
         background-color: #251149;
         text-align:center;
         font-size:1.2em;
         color:#fff;
         cursor:pointer;
    .formSubmit:hover {
         background-color: #E76F34;
    .form-bottom-to-top {
         text-align: right;
         padding-right: 33px;
         font-size: 0.68em;     
         margin-top: 40px;
    .form-bottom-to-top a, a:link {
         color: #FFF;
         text-decoration: none;
    .form-bottom-to-top a:hover {
         text-decoration: underline;
    /* David Powers styles */
    .warning {
        font-weight: bold;
         font-size: 1em;
        color: #FCCCB9;
         display: block;
    .thanks {
        font-weight: bold;
        color: #f00;
         margin-left: 3px;
    #form-div p {
        margin: 0 0 10px 8px ;
         font-size: 1.5em;
         line-height: 1.4em;
    label {
        font-weight: bold;
         font-size: 1.6em;
        color: #FFF;
        display: block;
    /* END CONTACT FORM */
    #footer {
         height: 10em;
         background-color: #FFF;
         margin: 0 20px;
         clear: both;
    #footer p {
         font-size: 1.4em;
         color: #666;
         padding: 40px 0 30px 120px;     
         background: url(im/footer-logo.gif) 50px 20px no-repeat ;
    .clearfix:after{ content:"."; display:block; height:0; clear:both; visibility:hidden; }
    .clearfix {display: inline-block;}
    /* Hide from IE Mac \*/
    .clearfix {display:block;}
    /* End hide from IE Mac */
    * html .clearfix{ height: 1px; }

  • Change font size of contact form.

    Hi,
    I have been searching through google and various forums to make a contact form, and I finally have it working. (YAY!) HOWEVER...
    There's one problem: I don't know how to change the font size. Help?!
    Here's my action script code:
    submit_btn.addEventListener(MouseEvent.CLICK, sendMessage);
    function sendMessage(e:MouseEvent):void{
    var my_vars:URLVariables = new URLVariables();
    my_vars.senderName = name_txt.text;
    my_vars.senderEmail = email_txt.text;
    my_vars.senderMsg = message_txt.text;
    var my_url:URLRequest = new URLRequest("http://mydomain.com/mail.php");
    my_url.method = URLRequestMethod.POST;
    my_url.data = my_vars;
    var my_loader:URLLoader = new URLLoader();
    my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    my_loader.load(my_url);
    name_txt.text = "";
    email_txt.text = "";
    message_txt.text = "Message Sent";
    Do I need to add something to my action script to modify the text size? If so, what? Or do I modify the text size through other means? I've been looking at tutorials online, forums, and I just couldn't find something that helped me.
    Thank you!
    -MP

    Ahh. Thanks for being patient with a newbie.
    So I've got the code in and compiler errors came up:
    Scene 1, Layer 'content', Frame 70, Line 3
    1119: Access of possibly undefined property defaultTextFormat through a reference with static type fl.controls:TextInput.
    Scene 1, Layer 'content', Frame 70, Line 4
    1119: Access of possibly undefined property defaultTextFormat through a reference with static type fl.controls:TextInput.
    Scene 1, Layer 'content', Frame 70, Line 5
    1119: Access of possibly undefined property defaultTextFormat through a reference with static type fl.controls:TextArea.
    Below is what I have in action script, did I need to place the code you gave me somewhere else?:
    var tfor:TextFormat=new TextFormat();
    tfor.size=12;
    name_txt.defaultTextFormat=tfor;
    email_txt.defaultTextFormat=tfor;
    message_txt.defaultTextFormat=tfor;
    submit_btn.addEventListener(MouseEvent.CLICK, sendMessage);
    function sendMessage(e:MouseEvent):void{
    var my_vars:URLVariables = new URLVariables();
    my_vars.senderName = name_txt.text;
    my_vars.senderEmail = email_txt.text;
    my_vars.senderMsg = message_txt.text;
    var my_url:URLRequest = new URLRequest("http://mydomain.com/mail.php");
    my_url.method = URLRequestMethod.POST;
    my_url.data = my_vars;
    var my_loader:URLLoader = new URLLoader();
    my_loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    my_loader.load(my_url);
    name_txt.text = "";
    email_txt.text = "";
    message_txt.text = "Message Sent";

  • Problems opening Word docs with form function

    Does anyone know how to open a Word doc & keep the forms function? I have to fill out quarterly reports. When I open this type of Word doc, Pages eliminates the checkboxes and text boxes. A pain point, but Word doc is still usable.

    Hi,
    Since the issue only occurs to Word for Mac, I'm not familiar with the mechanism how it opens a file, we mainly supports Office for Windows in this forum. Please post the question in Office for Mac forum for further assistance:
    http://answers.microsoft.com/en-us/mac
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Contact form Not working with Hotmail Accounts

    Hi, I have a problem with all the sites i have built with Muse. If the customer filling in any of the contact form on the websites uses a hotmail email account ( [email protected] )
    I get the following error message 'The server encountered a problem'
    Ive read that this could be a problem with my third party hosting company but they assure me that this is being caused by an error on the form
    Can anyone help with this please

    Ok so i have sorted the issue myself with NO THANKS to adobe
    Heres what everyone needs to do!
    Go to the following file public html - scripts - form process.php
    You then need to edit the following: ( line 103 )
    function get_email_headers($to_email, $form_email) {
      $headers = 'From: ' . $to_email . PHP_EOL;
      $headers .= 'Reply-To: ' . $form_email . PHP_EOL;
      $headers .= 'X-Mailer: Adobe Muse CC 2014.2.0.284 with PHP' . PHP_EOL;
      $headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
      return $headers;
    This needs changing to the following:
    function get_email_headers($to_email, $form_email) {
    $headers = 'From: ' . $to_email . PHP_EOL;
    $headers .= 'Reply-To: ' . $form_email . PHP_EOL;
    $headers .= 'MIME-Version: 1.0' . PHP_EOL;
    $headers .= 'X-Mailer: Adobe Muse CC 2014.2.0.284 with PHP' . PHP_EOL;
    $headers .= 'Content-type: text/html; charset=utf-8' . PHP_EOL;
    return $headers;
    The form will now work with hotmail, Gmail etc etc
    Hope this helps anyone having the same problem

  • Why won't this contact form work?

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

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

  • Internal error in FORM/FUNCTION OUTSPLIT_SCLAE_UPDOWN in position 1 with RC

    Hi All,
    when I try to do MFBF with reporting points I'm getting error "internal error in FORM/FUNCTION OUTSPLIT_SCLAE_UPDOWN in position 1 with RC4" can anybody give me some idea to how to comeout of this error.
    Thanks and Regards
    Ramana

    we have contacted SAP and they have resolved the issue.
    Regards
    Ramana

  • Best way to create Contact form in WPC.

    Hello,
    What is the best way to create a contact form ( that sends email on clicking the submit button ) in WPC.
    Should I be using a page layout (jsp) to implement the mailing functionality.
    Thanks
    Tony.

    I am getting
    javax.mail.SendFailedException: Sending failed;  nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: SCHLAP103481, port: 25;  nested exception is: java.net.ConnectException: Connection timed out: connect
    SCHLAP103481 is my laptop name.
    Which host name Do I have to give on this line of code:
    props.put("mail.smtp.host", "SCHLAP103481");
    Thanks

  • Muse contact form on third party hosting service

    I uploaded a contact form and keep getting an error message that "the server either does not have php installed or the php is not configured correctly." My host service moved my site to a linux server running apache 2.2.23. I am using the default php settings, but can switch to php 4 or php 5.  This is a screen shot of the php settings.
    Language Options
    asp_tags
    Allow ASP-style <% %> tags.
    Off
    File Uploads
    file_uploads
    Whether to allow HTTP file uploads.
    On
    Paths and Directories
    include_path
    Windows: "\path1;\path2"
    .:/usr/lib/php:/usr/local/lib/php
    Resource Limits
    max_execution_time
    30
    Resource Limits
    max_input_time
    60
    Resource Limits
    memory_limit
    256M
    Data Handling
    register_globals
    You should do your best to write your scripts so that they do not require register_globals to be on; Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of.
    On
    Language Options
    safe_mode
    Off
    File Uploads
    upload_max_filesize
    Maximum allowed size for uploaded files.
    64M
    main
    session.save_path
    where N is an integer. Instead of storing all the session files in /path, what this will do is use subdirectories N-levels deep, and store the session data in those directories. This is useful if you or your OS have problems with lots of files in one directory, and is a more efficient layout for servers that handle lots of sessions. NOTE 1: PHP will not create this directory structure automatically. You can use the script in the ext/session dir for that purpose. NOTE 2: See the section on garbage collection below if you choose to use subdirectories for session storage
    /tmp
    Any help will be greatly appreciated.
    Joe Parker

    My host kept on insisting that the problem was with the adobe code for the
    contact form, but it didn't sound right so after gaining access  to the
    admin panel for my site I discovered a default email account had been, I
    assume, set up by the system. I started to test submitting both the muse
    forms and some pdf forms that I generated using Acrobat XI Pro. The emails
    were not delivered to the address coded into the forms but were being
    trapped in this default email account. I tried to access the account by
    clicking on the webmail button that was shown, but the browser could not
    locate the webmail  server. After some more digging I found an
    https://mydomain:1111 address that allowed me to get in. All of my test
    forms were being trapped and returned to sender with the message that I did
    not exist. Obviously since the emails were generated by the php email
    function they went nowhere.
    At about 2am I sent my host an email with screen shots and have basically
    demanded that he find a way to kill the default email account. I have not
    heard back yet.
    It was a lengthy forum exchange on the Muse forum in 6/13 between someone
    in the UK and various forum members and finally adobe's staff that helped
    to get me on the right trail. My host is using linux with apache server
    software. If this is happeneing to me, it is probably happening to others
    and they are being frustrated by a host who either is incapable or
    unwilling to dig in to find a solution.
    If you want I will let you know how this all turns out.
    Thanks for your help, and I am going to post the contents of this email as
    part of the forum discussion.
    Joe Parker

  • Help importing SWF / FLA contact form into FLA file.

    I've been trying to import, embed, or load a contact form into a fla flash website (i have the fla and files) however i cant seem to get it to work.
    The form is separate file, I have the fla source file for it as well.
    I'm using Actionscript 3. I would like to have the form dynamical load into my existing project/page - http://www.photorexit.com/site/contact/contact
    Here is the contact form page - http://www.photorexit.com/site/contact/contact_page.html
    any suggestions?
    -Jason

    The contact_page.fla page is a template contact file I purchased on the net.
    I spent most of the morning going through the files and I cant seem to pin point why the contact_page is trying to load contact.swf from my local computer.
    I assume it has something to do with the "contact_page" ContactPage.as file and the Monitor.as file.
    I have to admit, I'm in over my head...
    -Jason
    ContactPage.as
    package as3{
        import flash.display.Sprite;
        import flash.display.MovieClip;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.events.Event;
        import flash.events.IOErrorEvent;
        import flash.events.MouseEvent;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.net.navigateToURL;
        import flash.utils.Timer;
        import flash.geom.ColorTransform;
        import caurina.transitions.Tweener;
        import caurina.transitions.properties.ColorShortcuts;
        ColorShortcuts.init();
        public class ContactPage extends Sprite {
            public var itemsPath:String='';
            private var xmlCOLORS_DFT:String = 'colors.xml';
            private var colorStatus:Boolean=false;
            public var color_dfr:Object=new Object();
            private var xmMAIN_XML_PATH:String = 'cgal.xml';
            private var mainXMLStatus:Boolean=false;
            public var xmlDate:Array = [];
            private var mainTitle:String='';
            private var bg:BG;
            private var monitor:Monitor;
            public var footerMenu:FooterMenu;
            private var b_colorOut:uint;
            private var b_colorOver:uint;
            public var container:MovieClip;
            public var closeF:Function;
            public var monitorHeight:int=0;
            public var monitorWidth:int=0;
            public var email_for_contact_form:String;
            public function ContactPage() {
                addEventListener(Event.ENTER_FRAME, aplLoading);
                addEventListener(Event.REMOVED_FROM_STAGE, remove);
            private function remove(e:Event):void {
                trace(this);
                removeEventListener(Event.ENTER_FRAME, aplLoading);
                removeEventListener(Event.ENTER_FRAME, loading);
                stage.removeEventListener(Event.RESIZE, appResizeHandler);
            private function aplLoading(e:Event):void {
                var bytesTotal = stage.loaderInfo.bytesTotal;
                var bytesLoaded = stage.loaderInfo.bytesLoaded;
                var percentLoaded : Number = Math.floor(Math.round( bytesLoaded/bytesTotal ));
                if (percentLoaded==1) {
                    if (parent!=stage) {
                        closeF= Object(parent).goBG;
                        container = Object(parent).div;
                        xmlCOLORS_DFT =  Object(parent).xmlCOLORS_DFT;
                        xmMAIN_XML_PATH = Object(parent).xmMAIN_XML_PATH;
                        itemsPath=Object(parent).itemsPath;
                    init();
                    removeEventListener(Event.ENTER_FRAME, aplLoading);
            public function init() {
                stage.scaleMode = StageScaleMode.NO_SCALE;
                stage.align = StageAlign.TOP_LEFT;
                stage.addEventListener(Event.RESIZE, appResizeHandler);
                footerMenu = new FooterMenu();
                monitor = new Monitor();
                bg = new BG();
                bg.alpha=0;
                addChild(bg);
                appResizeHandler();
                var mainLoader:URLLoader = new URLLoader();
                mainLoader.addEventListener( Event.COMPLETE, onMainXMLLoad );
                mainLoader.addEventListener(IOErrorEvent.IO_ERROR, errorTrace);
                mainLoader.load( new URLRequest(xmMAIN_XML_PATH) );
                var colorLoader:URLLoader = new URLLoader();
                colorLoader.addEventListener( Event.COMPLETE, onColorXMLLoad );
                colorLoader.addEventListener(IOErrorEvent.IO_ERROR, errorTrace);
                colorLoader.load( new URLRequest(xmlCOLORS_DFT) );
            public function colorCgange(obj:Object, color:uint):void {
                var colorTransform:ColorTransform = new ColorTransform();
                colorTransform.color = color;
                obj.transform.colorTransform = colorTransform;
            private function onColorXMLLoad( event:Event ):void {
                try {
                    var mainData:XML = new XML( event.target.data );
                    for (var i:int; i<mainData.elements().length(); i++) {
                        var attribCol:Object = {};
                        for each (var attribute:XML in mainData.elements()[i].attributes()) {
                            attribCol[attribute.name().toString()] = attribute.valueOf().toString();
                        color_dfr[mainData.elements()[i].name().toString()] = attribCol;
                    colorStatus = true;
                    addEventListener(Event.ENTER_FRAME, loading);
                } catch (e:Error) {
                    errorTrace("Couldn't load the Color XML file.<br/>"+e.message);
                    trace( 'Color XML Loading Error: ' + e.message );
                    return;
            private function onMainXMLLoad( event:Event ):void {
                try {
                    var mainData:XML = new XML( event.target.data );
                    mainTitle = [email protected]();
                    if (Boolean([email protected]())) {
                        monitorWidth = parseInt([email protected]());
                    if (Boolean([email protected]())) {
                        monitorHeight = parseInt([email protected]());
                    if (Boolean(mainData.@email_for_contact_form.toString())) {
                        email_for_contact_form = mainData.@email_for_contact_form.toString();
                    } else {
                        errorTrace("There is no e-mail address.");
                        trace( "There is no e-mail address.");
                        return;
                    for (var i:int=0; i<mainData.elements().length(); i++) {
                        xmlDate[i] = {title:mainData.elements()[i][email protected](), cont:mainData.elements()[i]};
                    mainXMLStatus = true;
                    addEventListener(Event.ENTER_FRAME, loading);
                } catch (e:Error) {
                    errorTrace("Couldn't load the Main XML file.<br/>"+e.message);
                    trace( 'Main XML Loading Error: ' + e.message );
                    return;
            private function loading(e:Event):void {
                if (mainXMLStatus && colorStatus) {
                    removeEventListener(Event.ENTER_FRAME, loading);
                    if (Boolean(color_dfr.background.color.length)) {
                        Tweener.addTween(bg,{_color:color_dfr.background.color, alpha:1, time:1});
                    } else {
                        bg.alpha=0;
                    monitor.alpha = 0;
                    footerMenu.alpha= 0;
                    addChild(monitor);
                    colorCgange(monitor.txt, color_dfr.mainTitle.textColor);
                    monitor.txt.text = mainTitle;
                    monitor.init();
                    monitor.addChild(footerMenu);
                    b_colorOver = uint(color_dfr.buttons.mouseOver);
                    b_colorOut = uint(color_dfr.buttons.mouseOut);
                    Tweener.addTween(monitor,{alpha:1,time:1});
                    Tweener.addTween(footerMenu,{alpha:1,time:1, delay:.7});
            function buttonRoll(e:MouseEvent):void {
                var button = e.currentTarget;
                switch (e.type) {
                    case "mouseOut" :
                        colorCgange(button.img,b_colorOut);
                        break;
                    case "mouseOver" :
                        colorCgange(button.img,b_colorOver);
                        break;
            public function errorTrace(txt:String):void {
                var err_txt:TextField= new TextField();
                err_txt.width = 300;
                err_txt.autoSize = TextFieldAutoSize.LEFT;
                err_txt.wordWrap = true;
                err_txt.htmlText = '<p align = "center"><font color="#ff0000" size="24">' + txt+ '</font></p>';
                err_txt.x = (stage.stageWidth-err_txt.width)/2;
                err_txt.y = (stage.stageHeight-err_txt.height)/2;
                addChild(err_txt);
            private function appResizeHandler(e:Event=null):void {
                if (container) {
                    bg.width = container.width;
                    bg.height = container.height;
                } else if(stage) {
                    bg.width = stage.stageWidth;
                    bg.height = stage.stageHeight;
    Monitor.as
    package as3{
        import flash.display.MovieClip;
        import flash.display.StageAlign;
        import flash.display.Bitmap;
        import flash.display.BitmapData;
        import flash.display.Loader;
        import flash.display.LoaderInfo;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFormat;
        import flash.events.FocusEvent;
        import flash.events.ProgressEvent;
        import flash.events.IOErrorEvent;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import flash.net.URLLoader;
        import flash.net.URLRequest;
        import flash.net.URLVariables;
        import flash.net.URLLoaderDataFormat;
        import flash.net.URLRequestMethod;
        import flash.utils.Timer;
        import flash.events.TimerEvent;
        import flash.geom.ColorTransform;
        import caurina.transitions.Tweener;
        public class Monitor extends MovieClip {
            private var itemsPath:String;
            private var mainObj:Object;
            private var b_colorOver:uint;
            private var b_colorOut:uint;
            private var mainTitle:uint;
            private var itemTitle:uint;
            private var itemDescription:uint;
            private var xmlData:Array;
            private var container:MovieClip;
            private var mail:String;
            private var loader:URLLoader = new URLLoader();
            private var req:URLRequest = new URLRequest("contactPro.php");
            private var variables:URLVariables = new URLVariables();
            private var senderRpl:String="No";
            private var form_field_arr:Array=['txt_name', 'txt_phone','txt_email', 'txt_message'];
            private var form_def_cont_arr:Array=[];
            private var form_err_arr:Array=["Username Required","","Missing Field/Invalid E-mail", "Message Required"];
            public function Monitor() {
                b_close.visible=false;
                addEventListener(Event.ADDED_TO_STAGE, toStage);
            private function toStage(e:Event):void {
                mainObj = parent;
                container = mainObj.container;
                if (container) {
                    itemsPath = mainObj.itemsPath;
                    req = new URLRequest(itemsPath+"/contactPro.php");
                    b_close.alpha=0;
                    b_close.visible=true;
                    Tweener.addTween(b_close, {alpha:1, time:1});
                    mainObj.footerMenu.visible=false;
                xmlData = mainObj.xmlDate;
                mail = mainObj.email_for_contact_form;
                b_colorOver = uint(mainObj.color_dfr.buttons.mouseOver);
                b_colorOut = uint(mainObj.color_dfr.buttons.mouseOut);
                mainTitle = uint(mainObj.color_dfr.mainTitle.textColor);
                itemTitle= uint(mainObj.color_dfr.itemTitle.textColor);
                itemDescription= uint(mainObj.color_dfr.itemDescription.textColor);
                var contactFtextColor:uint = uint(mainObj.color_dfr.inoutTextField.textColor);
                var contactFbgColor:uint = uint(mainObj.color_dfr.inoutTextField.bgColor);
                var contactFbrColor:uint = uint(mainObj.color_dfr.inoutTextField.borderColor);
                ///mainObj.colorCgange(b_close.img, b_colorOut);
                mainObj.colorCgange(contactForm.mc_buttons.b_clear.img, b_colorOut);
                mainObj.colorCgange(contactForm.mc_buttons.b_submit.img, b_colorOut);
                b_close.buttonMode=true;
                b_close.addEventListener(MouseEvent.CLICK, fClose);
                b_close.addEventListener(MouseEvent.MOUSE_OVER,buttonRoll);
                b_close.addEventListener(MouseEvent.MOUSE_OUT,buttonRoll);
                contactForm.mc_buttons.b_clear.addEventListener(MouseEvent.MOUSE_OVER,buttonRoll);
                contactForm.mc_buttons.b_clear.addEventListener(MouseEvent.MOUSE_OUT,buttonRoll);
                contactForm.mc_buttons.b_submit.addEventListener(MouseEvent.MOUSE_OVER,buttonRoll);
                contactForm.mc_buttons.b_submit.addEventListener(MouseEvent.MOUSE_OUT,buttonRoll);
                item_1.autoSize = TextFieldAutoSize.LEFT;
                item_1.wordWrap=true;
                item_1.mouseWheelEnabled=false;
                item_2.autoSize = TextFieldAutoSize.LEFT;
                item_2.wordWrap=true;
                item_2.mouseWheelEnabled=false;
                item_3.autoSize = TextFieldAutoSize.LEFT;
                item_3.wordWrap=true;
                item_3.mouseWheelEnabled=false;
                textFieldFormat(item_1, itemDescription);
                textFieldFormat(item_2, itemDescription);
                textFieldFormat(item_3, itemDescription);
                textFieldFormat(title_1, itemTitle);
                textFieldFormat(title_2, itemTitle);
                textFieldFormat(contactForm.txError, itemTitle);
                contactForm.txt_name.borderColor = contactFbrColor;
                contactForm.txt_name.backgroundColor = contactFbgColor;
                contactForm.txt_phone.borderColor = contactFbrColor;
                contactForm.txt_phone.backgroundColor = contactFbgColor;
                contactForm.txt_email.borderColor = contactFbrColor;
                contactForm.txt_email.backgroundColor = contactFbgColor;
                contactForm.txt_message.borderColor = contactFbrColor;
                contactForm.txt_message.backgroundColor = contactFbgColor;
                textFieldFormat(contactForm.txt_name, contactFtextColor);
                textFieldFormat(contactForm.txt_phone, contactFtextColor);
                textFieldFormat(contactForm.txt_email, contactFtextColor);
                textFieldFormat(contactForm.txt_message, contactFtextColor);
                contactForm.txt_message.wordWrap=true;
                appResizeHandler();
                stage.addEventListener(Event.RESIZE, appResizeHandler);
            private function textFieldFormat(tField:TextField, color:uint):void {
                var format:TextFormat = new TextFormat();
                format.color = color;
                tField.defaultTextFormat = format;
            function buttonRoll(e:MouseEvent):void {
                var button = e.currentTarget;
                switch (e.type) {
                    case "mouseOut" :
                        if(button.name == "b_close"){
                            button.img.transform.colorTransform = new ColorTransform();
                        }else{
                            mainObj.colorCgange(button.img, b_colorOut);
                        break;
                    case "mouseOver" :
                        mainObj.colorCgange(button.img, b_colorOver);
                        break;
            private function fClose(e:MouseEvent):void {
                mainObj.closeF()
            public function init():void {
                var i:int=0;
                title_1.text = xmlData[0].title;
                title_2.text = xmlData[1].title;
                for (i=0; i<xmlData[0].cont.elements().length(); i++) {
                    this['item_'+(i+1)].htmlText = xmlData[0].cont.elements()[i];
                for (i=0; i<xmlData[1].cont.elements().length(); i++) {
                    form_def_cont_arr[i]=xmlData[1].cont.elements()[i];
                loader.dataFormat = URLLoaderDataFormat.VARIABLES;
                req.method = URLRequestMethod.POST;
                contactForm.mc_buttons.b_clear.buttonMode = true;
                contactForm.mc_buttons.b_submit.buttonMode = true;
                contactForm.mc_buttons.b_clear.addEventListener(MouseEvent.MOUSE_DOWN, text_field_clear);
                contactForm.mc_buttons.b_submit.addEventListener(MouseEvent.MOUSE_DOWN, sendForm);
                for (i=0; i<form_field_arr.length; i++) {
                    contactForm[form_field_arr[i]].tabIndex = i;
                    contactForm[form_field_arr[i]].text= form_def_cont_arr[i] ;
                    contactForm[form_field_arr[i]].addEventListener(FocusEvent.FOCUS_IN, onFocus);
                    contactForm[form_field_arr[i]].addEventListener(FocusEvent.FOCUS_OUT, outFocus);
                    contactForm[form_field_arr[i]].addEventListener(Event.CHANGE, txErrorCheck);
                appResizeHandler();
            private function txErrorCheck(event:Event):void {
                if (contactForm.txError.text.length>0) {
                    contactForm.txError.text = "";
            private function onFocus(event:FocusEvent):void {
                //trace('dd')
                for (var i:int=0; i<form_field_arr.length; i++) {
                    if (event.target.name==form_field_arr[i]) {
                        var text_field_index = i;
                if (contactForm[form_field_arr[text_field_index]].text==form_def_cont_arr[text_field_index]) {
                    contactForm[form_field_arr[text_field_index]].text='';
            private function outFocus(event:FocusEvent):void {
                for (var i:int=0; i<form_field_arr.length; i++) {
                    if (event.target.name==form_field_arr[i]) {
                        var text_field_index = i;
                if (contactForm[form_field_arr[text_field_index]].text=='') {
                    contactForm[form_field_arr[text_field_index]].text=form_def_cont_arr[text_field_index];
            private function text_field_clear(event:Event=null):void {
                for (var i:int=0; i<form_field_arr.length; i++) {
                    contactForm[form_field_arr[i]].text= form_def_cont_arr[i] ;
                    contactForm.txError.text='';
            private function sendForm(evt:MouseEvent):void {
                if (contactForm[form_field_arr[0]].text<=0 || contactForm[form_field_arr[0]].text==form_def_cont_arr[0]) {
                    contactForm.txError.text =form_err_arr[0];
                } else if (!isValidEmail(contactForm[form_field_arr[2]].text)) {
                    contactForm.txError.text = form_err_arr[2];
                } else if (contactForm[form_field_arr[3]].text<=0 || contactForm[form_field_arr[3]].text==form_def_cont_arr[3]) {
                    contactForm.txError.text =form_err_arr[3];
                } else {
                    variables.to_mail = mail;
                    variables.senderName = contactForm[form_field_arr[0]].text;
                    variables.senderPhone = contactForm[form_field_arr[1]].text;
                    variables.senderEmail = contactForm[form_field_arr[2]].text;
                    variables.senderMsg = contactForm[form_field_arr[3]].text;
                    req.data = variables;
                    loader.addEventListener(IOErrorEvent.IO_ERROR, phpError);
                    loader.addEventListener(Event.COMPLETE, receiveLoad);
                    loader.load(req);
                    contactForm.txError.text = 'Submitting form.';
            private function phpError(e:IOErrorEvent):void {
                trace(e.text);
                contactForm.txError.text = e.text;
            private function receiveLoad(evt:Event):void {
                if (evt.target.data.retval == 1) {
                    contactForm.txError.text ="Form submitted.";
                    Tweener.addTween(contactForm, {delay:2, onStart:text_field_clear});
                } else {
                    contactForm.txError.text="**  ERROR SENDING MAIL **";
            private function isValidEmail(email:String):Boolean {
                var emailExpression:RegExp = /^[a-z][\w.-]+@\w[\w.-]+\.[\w.-]*[a-z][a-z]$/i;
                return emailExpression.test(email);
            private function appResizeHandler(e:Event=null):void {
                if (stage) {
                    var oWidth:Number = stage.stageWidth;
                    var oHeight:Number = stage.stageHeight;
                    if (container) {
                        oWidth = container.width;
                        oHeight = container.height;
                    if (mainObj.monitorHeight>0) {
                        bg.height =  mainObj.monitorHeight;
                    } else {
                        bg.height = oHeight-20;
                    if (mainObj.monitorWidth>0) {
                        bg.width = mainObj.monitorWidth;
                    } else {
                        !container?bg.width = oWidth-20:bg.width = oWidth-140;
                    b_close.y=0;
                    b_close.x = bg.x+bg.width+5;
                    txt.width = bg.width - 50;
                    header_bg.width =bg.width-6;
                    this.y =Math.round((oHeight-bg.height)/2);
                    this.x =Math.round((oWidth-bg.width)/2);
                    mainObj.footerMenu.x= bg.width-13;
                    mainObj.footerMenu.y= bg.height-13;
                    title_1.width = bg.width-40;
                    item_1.width = bg.width-40;
                    item_2.width = bg.width/2-30;
                    item_3.width = item_2.width;
                    item_3.x = item_2.x+item_2.width+20;
                    title_2.width = bg.width-40;
                    contactForm.txt_name.width = item_2.width;
                    contactForm.txt_phone.width = item_2.width;
                    contactForm.txt_email.width = item_2.width;
                    contactForm.txError.width = item_2.width;
                    contactForm.txt_message.width = item_2.width;
                    contactForm.txt_message.x=contactForm.txt_name.x+contactForm.txt_name.width+20;
                    contactForm.mc_buttons.x = Math.round(contactForm.txt_message.x+contactForm.txt_message.width-contactForm.mc_buttons .width);
                    item_1.y = title_1.y+title_1.height+10;
                    item_2.y = item_1.y+item_1.height+10;
                    item_3.y = item_1.y+item_1.height+10;
                    if (item_2.y+item_2.height>item_3.y+item_3.height) {
                        title_2.y = item_2.y+item_2.height+10;
                    } else {
                        title_2.y = item_3.y+item_3.height+10;
                    contactForm.y = Math.round(title_2.y+title_2.height+10);

Maybe you are looking for

  • Perform statement in SAP scripts

    Hi experts, My requirement is that I don't want to display line items for particular customer with a particular item category, For this purpose I was asked to create a Z table with fields customer number(KUNNR) and Item category(PSTYV) and I have to

  • Remove Firmware password on MBP 2010

    A password entry space and Firmware (pad lock) icon appears on the screen when trying to perform a clean usb os x lion 7 install pressing keys- (command + R).  I don't remember ever setting up a firmware password.  Question is how do I remove it?

  • Need a plug-in for CS5 Bridge (on Windows 7)

    Hi. I have just replaced a dead hard drive and reinstalled CS5 from discs which went well until I tried to find the Bridge plug-in which reads camera/lens data and allows distortion corrections. Where can I find the right plug-in and how do I go abou

  • How to generate interface like the following?

    How to generate interface like the following? It is very practical. http://dl.getdropbox.com/u/212185/WebPics/AdobeForum_001.png Thanks! hanyang

  • Hearthstone under wine

    Hi Is there anyone, who has Hearthstone running under wine 1.7.18 or 1.7.19? I have to keep wine 1.7.17, last version under which it runs for me. Under *.18, *.19 I can launch game, no crashes, I just got "Your game timed out ..." .. So, does it work