How to make a background Center with the rest of the content?

Hello world

I was wondering if I could pick your brains! I am new to Dreamweaver, I was taking a course in this and I wanted to see how much I've learned by creating a fictitious Web site.

I wanted to create a Web site with a background image in it and it brought. Now, I can get everything in the body toward the Center but not the image, so when I check in the browser, the background to the left image stays, while the rest of the site is moving with the browser window as it should. I tried many things to fix this problem and the fear that I have created a mess with the code! Please could someone point me in the right direction?

I thought I'd post the code here, hope this is ok?

< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "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 >

< style type = "text/css" >

{body

background-image: url(assets/images/Business%20Men%20In%20Reception%20Col.2.jpg).

background-repeat: no-repeat;

background-color: #003;

margin-left: auto;

margin-right: auto;

position: relative;

width: 960px;

}

#header {}

margin-left: auto;

margin-right: auto;

position: relative;

width: 960px;

}

{#heading}

are-family: Georgia, "Times New Roman", Times, serif;

are-size: 36px;

make-style: italic;

are-variant: normal;

margin-left: auto;

margin-right: auto;

}

{#bodytext}

are-family: Georgia, "Times New Roman", Times, serif;

are-size: 18px;

line-height: 25px;

are-variant: normal;

width: 300px;

}

#container {}

width: 960px;

position: relative;

margin-left: auto;

margin-right: auto;

}

{.rightimg}

float: right;

margin left: auto;

padding-right: 40px;

}

#heading #navbar ul li {}

padding: 30px;

}

< / style >

< script type = "text/javascript" >

function MM_swapImgRestore() //v3.0 {}

var i, x = offline. MM_sr; for (i = 0; a & & I <.) Length & & (x = a [i]) & & x.oSrc; i ++) x.src = x.oSrc;

}

function MM_preloadImages() {//v3.0

var d = document; If (d.images) {if(!d.MM_p) d.MM_p = new Array();

var i, j is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

}

function MM_findObj (n, d) {//v4.01

var p, i, x;  if(!d) d = document; If ((p = n.IndexOf ("?")) > 0 & & parent.frames.length) {}

d = parent.frames [n.Substring(p+1)] .document; n = n.Substring (0, p) ;}

If (!) () x = d [n]) & & copyrights) x = d.all [n]; for (i = 0;! x & & i < d.forms.length; i ++) x = d.forms [i] [n];

for (i = 0;! x & & d.layers & & I < d.layers.length; i ++) x = MM_findObj (n, d.layers [i] .document);

If (! x & & d.getElementById) x = d.getElementById (n); Return x;

}

function MM_swapImage() {//v3.0

var i, j = 0, x, a = MM_swapImage.arguments; document. MM_sr = new Array; for (i = 0; i <(a.length-2); I += 3).

If ((x = MM_findObj (a [i]))! = null) {document. MM_sr [j ++] = x; if(!x.oSrc) x.oSrc = x.src; x.SRC = a [i + 2] ;}

}

< /script >

< / head >

< body onload = "MM_preloadImages (' assets/images/home 2.jpg','assets/images/contact2.jpg','assets/images/Terms 2.jpg')" >

< div id = "header" >

< div id = "body" >

"< p > < img src="assets/images/header-1.jpg "width ="920"height ="133"alt ="header"/ > < / p >

"" "" "< p > < a href =" # "MM_swapImgRestore" onmouseover = "MM_swapImage (" self "", ' assets/images/home 2.jpg', 1) "> < img src="assets/images/home.jpg "alt ="Link to the homepage"name ="Home"width ="303"height ="32"border ="0"id ="Home"/ > < /a > < a href =" # "MM_swapImgRestore" onmouseover = "MM_swapImage (" contact us "," ' assets/images/contact2.jpg',1) "> < img src="assets/images/contact.jpg "alt ="Link to the contact page"name = width 'Contact us' = '299' height =" 32 " "" border = "0" id = "Contact us" / > < /a > < a href = "#" MM_swapImgRestore "onmouseover =" MM_swapImage ('Conditions', ", '2.jpg', 1 assets/images/words)" > < img src="assets/images/Terms.jpg" alt = "Link on the business terms" name = "Terms" width = "311" height = "32" border = "0" id = "Terms" / > < /a > < /p >

< / div >

< / div >

< div id = "topic" >

< p > welcome < img src = "assets/images/Man In suit crop.jpg" alt = "Man in a suit" width = "281" height = "220" class = "rightimg" / > < / p >

< / div >

< div id = "bodytext" >

< p > here at Alexander Head & amp; Co Ltd that our goal is to provide business service levels, they used to enjoy before the time of consolidator. With the insurance market changes so quickly and more provincial brokers being supported by large organizations, levels of service personnel are disappear. We offer you this service and always offer him < br / >

competitive premiums that you deserve. Read about < /p >

< / div >

< p > < img src = "Images/assets/young businessmen crop.jpg" alt = "young business people" width = "282" height = "216" class = "rightimg" / > < / p >

< / body >

< / html >

Kind regards
Dave

Add to your body rule

background-position: center;

Gary

Tags: Dreamweaver

Similar Questions

  • How to make a square patterned with the same race grounds match-up?

    I have a square that is filled with a pattern, he needs a stroke to so that it can be scalloped.  How to make the model of race and fill out the template match-up?pig.png

    You could have transformed one of the models. I try and first just apply a color background and outline of bost. Then apply the model again and not become one of them.

    Another option would be to expand the line and fill and combine the shapes, so that you don't have to deal with the construction of a complex.

  • How to put a background gradient with the scrolling of the mouse?

    I would like to place a background image to fade when I go down with the mouse wheel, can someone help me?

    You cannot use the option "background Fill" in Muse to make appear an image fade, you can only move.

    But you can move the image to a specific page and make bland using the Panel "effects scroll."

    See image attached:

  • How to make a video scroll with the mouse position

    Hello again.  I asked a question on Parallax scrolling and I think it was the wrong question.  I'm looking to control a Web site with similar controls as this example:

    http://www.sectionseven.com/index2.html

    I want to use but also with the axes x and y.  Any ideas where to find a tutorial to find out where to do?  It should be pretty simple, but I have a problem.  Code or any help is greatly appreciated.  Thank you!

    Use conditional statements to control how the object can move.  Only allow your code to movement to work if the object is not yet at its limit.  Basically something like...

    function scrollmc1(event:Event):void

    {

    If (mc.x<>

    MC.x += (mouseX - mc.x) * 0.04;

    MC.y +=(mouseY-mc.y) * 0.04;

    }

    }

    To the extent where only allowing movement occurs when the mouse is over the edge, a similar approach can be taken, something like...

    function scrollmc1(event:Event):void

    {

    If (mc.x < upperlimit ="" &&="" (mousex=""> rightboundary: mouseY > bottomboundary) {}

    MC.x += (mouseX - mc.x) * 0.04;

    MC.y +=(mouseY-mc.y) * 0.04;

    }

    }

  • Background image with the contents of the scale?

    Hello

    I have a HBox and I want to insert a picture in it. I want the image to FILL the whole box. The photo is quite large so I want that it is in the box.

    Start with the problem.

    1. If I use HBox backgroundImage, it does not give me "content scale" property, and no matter how I tweek the size of the image, I see only the upper part of the image.

    2. If I use the tag of the image inside the HBox, if the image is large horizontally, so I can see the upper and lower part of the HBox, if the image is large vertically then I see the part right and left of the HBox. To maintain the proportions, it fills up not all HBox.

    I don't want to change the dimensions of the HBox.

    Any idea?

    It's my code.

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application

    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute "verticalAlign =" " way "horizontalAlign =" " Center "

    >

    < mx:HBox " width = ' 200 "height =" 230 "backgroundColor =" #000000 " " > "

    < mx:Image " scaleContent =" true "source =" " images/S1.jpg "height =" " 100%

    "

    width ="

    100% "verticalAlign =" " way "horizontalAlign =" " Center "

    / >

    < / mx:HBox >

    < / mx:Application >

    So, you want the image spread out of proportion to fill the box?

    maintainAspectRatio = "false".

    In your test code, image now fills the entire HBOX.

  • Make blu - ray discs with the content of the standard dvd in Encore CS5

    Given that blu - ray 25 gb discs have become affordable, I would like to take advantage of the increased capacity of the content of the standard DVD on them.

    In a Word, I would put about 8 hours of flow 8000 720 X 480 video on a disc blu - ray 25 GB with no transcoding.  If I said that my project is a DVD I can tell it to "do not transcode" my property, but as soon as I change the option on Blu - ray, I have a wide range of Hi Def only options or automatic transcoding.  This is much more than 25 GB of the file size.  I can do this in TMP GENÇ TMPGEnc works, I can specify each track or not to transcode, and what bitrate etc. and then burn a blu - ray disc-compatible with the standard def content-but my menu options are more limited than in the still and the work process is slower.   I'd rather that in again if possible.  Is there a way to do that in Encore CS5?

    Stan Jones wrote:

    The problem for me is the reason why you do not get "do not transcode" for a DVD file apparently valid, just because you make a Bluray disc.  I wonder if you change the image size in the properties of transcoding bluray.  I just show him the "do not transcode" for a non-transcoded avi file and also a previously transcoded m2v.

    all my videos that I coded for this and the last project had a black frame around them. for some reason any capture has not quite completely filled the entire box. not a BIG deal, but in the video effect > motion > scale I changed them all to 103 to 105, and I think that this IS why with my workflow wanted to transcode. so I just jumped the man in the middle and in first, like mpeg to preserve all the stops of chapter and chapter names.

  • How to make a straight line with the Quick Selection tool?

    Hi, I'm experimenting with Photoshop CS6 and wanted to autofocus on poles and the alley only, everything is blurry (the sky, cars, trees and higher levels). The image shows a better idea of what I mean. I am currently using the Selection tool quick to fill between the poles, then using fuzzy area, but is at - it a faster and more efficient way to do this? In addition, the quick selection tool is not perfect and shows jagged - like of the spots along the edges of the poles. I thought maybe it's posible to right field line as a box between poles and blurred in this way?WP_20130806_12_45_41_Pro[1].jpg

    You would like to use the Polygonal Lasso tool to create your form of selection. Once you use blur filters, this will create a cutting edge on the mask. Select the mask in the layers panel and then apply a Gaussian blur to the mask to smooth the edge. (or use refine edge)

  • How to make a photos timed with the cinema of life cam?

    Tittle pretty much everything said. I want to put a timer on the movies of my life Cam.

    Hi Funbuns,

    What is the model number of the cinema life cam?

    I suggest you to read the manual of the cinema life cam in order to set the time for photos.
    http://www.Microsoft.com/hardware/en-us/p/LifeCam-cinema#support

  • How to print boards of art with the content titles?

    I would like to have their visible when printing so I can easily explain each

    Sean.Arca,

    I don't think that this is possible. I double checked the help section of Arboards, and it doesn't seem like you can do it.
    Using Photoshop | Work plans

  • How to make a line intersect with a path at random angles?

    How to make a line intersect with the anchor point of a half circle when you want the line to continue beyond the anchor point of the half circle at an angle to randomly?

    Now that I saw your picture, I understand the problem. You must make the careful construction work.

    Take a look at this:

    Start by drawing your circle. Drag the ruler guides (here dotted lines) so that they snap into its Center C.

    Drag another landmark of rule to your point of origin O.

    With the Pen or line tool Segment a line of O to T A. setting by the eye as precisely as possible with the end of it A directly selected.

    A copy of the line OA rotate 90 °. Using smart guides, drag the new line until it crosses the center of the Circle C.

    Direct, select the end of your original line and move it to T until the smart guides say "cross".

    Now, with the selected OA line use the scale tool. O-click and drag to 45 degrees by holding the Shift key. Your line will extend over its own length.

    In order to take account of the OA line across the circle just use the Reflect tool. Select the line, an Option, click the horizontal guide and copy reflect across the horizontal axis through the dialog box.

  • Satellite Pro L40 - how to make a dual boot with two recovery disks

    A small question;
    How to dual boot with two recovery disks ive got with my laptop (Satellite Pro L40)

    discs 1 & 2 are windows vista buisness
    discs 3 & 4 are windows xp profesional
    Disc 5 is updated the bios

    The guy where I bougt garage computer (a metal regular store named expert) says that it is posible with discs tose.
    I have
    I already have a partition, but when I boot from disks, is not has the option to select a partition

    Thanks already

    > Satellite Pro L40 - how to make a dual boot with two recovery disks?
    Short answer: you can't do that. Maybe if you have two hard disks (I tried didn't) but as much as I know your SP L40 has only one.
    Ask this smart guy, how to do this. Maybe it's a useful tip.

  • How to use windows search to search the contents of a bunch of files with random names / extensions?

    How to use windows search to search the contents of a bunch of files with random names / extensions? Plain txt files say 1,000 with random name of file extensions?

    You can always search within those, but you need to add extensions to the file system so that it knows to look inside these files.  You said that you have a lot, so it's perhaps tedious.  Here's How to search within several types of files.

    One thing you could try is rather to make a copy of this file, rename all the files to the same extension (even an extension false for example something.bill) and perform your search on this band.  Just an idea.

  • How to make a simple video with my computer ' s web cam?

    I recently (10 minutes ago) asked a simple question on how to make a video.  For five of the most wonderful years of my life, I have designed critical systems of path for launch Pads 39A & B, the vehicle Assembly building and the robot that went out the candle to the pad.  On paper, a critical path system explained how the engineer, design and build a structure.  In this case, it was activities separate from about 3400 and when, how and how long these activities were to each other.  At the time where the Commander.  I worked and which had been granted to these contracts, had developed the method of the path critical following the guidance system of the Polaris Missile, which was incredibly hard to get a handle.  At the time where manned Apollo lunar Mission has been in place, I was one of only ten people in the world, who knew the process.  We needed honest, some answers to our questions or it would take years to accomplish what Stephen Hawking characterized as "the unique accomplishment largest in human history" you gave me answers to my questions by these 'engineers' for Microsoft on the use of a webcam and had implemented them, would not be there was a second launch of Apollo because the first three astronauts would be dead.  How to make a simple video with my computer ' s web cam?     Al wood

    http://www.WikiHow.com/use-webcam-on-Windows-Movie-Maker

    Movie Maker: http://windows.microsoft.com/en-us/windows-live/movie-maker

    Not tested.  Instructions could be for the old version of Movie Maker, but they probably give you the basics.

    (It's a way of many - that the answer does not depend on your OS, but on the software you use to interface with your webcam.  Camtasia?  Skype?  etc and so on...)

    In addition, to find this information is quite simple.  Once I decided on what software to go with in my response to you (I chose Windows Movie Maker 12 because it's easy to get, free, Microsoft, similar to products that were previously found with Windows) I did a simple search on Google:

    use Windows Movie Maker 12 with webcam

    https://www.Google.com/#q=Use+Windows+Movie+Maker+12+with+webcam

    or more demonstratively:

    http://lmgtfy.com/?q=Use+Windows+Movie+Maker+12+with+webcam

    The first hit seems to be a video market even helps you to download and install the Windows Movie Maker 12 application...

  • How can I send an auto-reply with the contents of the form to the sender?

    Hai!

    I am new to building websites, but I came a long way

    I made a form and I want to send an AutoReply with the content of the form (if it is not too hard) to the person who completed.

    What I did is in PHP (coding I copied in part by a person of the internet .)

    You can see the of to: http://vinddit.nl/vindditnu%20php%20version.php

    So far my PHP coding

    <? PHP

    Variables Set email

    $email_to = ' [email protected] ';

    $email_subject = "request - VINDDIT NU!"

    Set required fields

    $required_fields = array('Voornaam','email','Achternaam','Plaats');

    Set error messages

    $error_messages = array)

    "Chairwoman" = > "John yesterday uw Chairwoman in NL.

    'email' = > ' John yesterday een geldig e-mail adres in NL.

    "Achternaam" = > "John yesterday uw achternaam in NL.

    'Place' = > ' John yesterday uw spend in NL.

    );

    Status of form

    $form_complete = FALSE;

    Configure the validation table

    $validation = array();

    check form submission

    {if (!) Empty($_POST))}

    Clean up the POST table

    foreach ($_POST as $key = > $value) $_POST [$key] = remove_email_injection (trim ($value));

    Loop in the required fields and make sure that they fit our needs

    foreach ($required_fields as $field) {}

    the area has been submitted?

    If (! array_key_exists ($field, $_POST)) return ($validation, $field);

    check the information in the field?

    If ($_POST [$field] == ") return ($validation, $field);

    validate the e-mail address provided

    If ($field == 'email') if (! validate_email_address($_POST[$field])) return ($validation, $field);

    }

    result of the basic validation

    If (Count ($validation) == 0) {}

    Prepare our content string

    $email_content = "new website comment: '. '\n\n';"

    the simple e-mail content

    foreach ($_POST as $key = > $value) {}

    If ($key! = 'submit') $email_content. = $key. ': ' . $value. "\n";

    }

    If the success of the validation ok then send e-mail

    mail ($email_to, $email_subject, $email_content);

    Switch to update form

    $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_replace (array ("\r", "\n", "0%", "% 0 d", "Content-Type:", "bcc:","to:","cc:"), ", $field));

    }

    ? >

    <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml "XML: lang ="fr"lang ="fr"> ".

    < head >

    form < title > < /title > request

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

    < link href = "style.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 = "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 is d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i <.) Length; i ++)

    If (a [i].indexOf("#")! = 0) {d.MM_p [j] = new Image; d.MM_p [j ++] .src = a [i] ;}}

    }

    < /script >

    < style type = "text/css" >

    < / style >

    < / head >

    < body onload = "MM_preloadImages('icons/x.png')" >

    < p > < / p >

    < p >

    <? PHP if($form_complete === FALSE)?: >

    < /p >

    < form action = "vindditnu php feed.php" method = "post" enctype = "application/x-www-formulaires-urlencoded" name = "Form" id = "commentsform" >

    < h1 > < img src = "icons/vinddit3.gif" width = "220" height = "80" alt = "logo" / > < / h1 > "

    < h1 > Wat u zoekt? : < / h1 >

    < table width = "690" border = "0" >

    < b >

    < td > in welke category zoekt u? * < table >

    < td colspan = "3" > < select name = "Ophalen_verzenden" id = "Ophalen_verzenden" >

    < option selected = "selected" > Meubels < / option >

    Witgoed < option > < / option >

    < option > Accessories Woon < / option >

    Kleding < option > < / option >

    Shoes < option > < / option >

    < option > Mode accessories < / option >

    Speelgoed < option > < / option >

    Boeken, / tɛjd.sχɾɪft /, papierwaren < option > < / option >

    < option > Overig < / option >

    < / select > < table >

    < /tr >

    < b >

    < td > Kleur: * < table >

    < td colspan = "3" > < select name = "using" id = "using" >

    Blauw < option > < / option >

    Rood < option > < / option >

    WIt < option > < / option >

    Zwart < option > < / option >

    Beige < option > < / option >

    Bruin < option > < / option >

    < option > Geel < / option >

    Oranje < option > < / option >

    Rood < option > < / option >

    < option > metal (great. REFLECTOR, Goud, Brons, Koper < / option >

    < option > Meerkleurig < / option >

    < option selected = "selected" > Overig / nadège < / option >

    < / select > < table >

    < /tr >

    < b >

    Merk < td >: < table >

    < td colspan = "3" > < input name = "Me" type = "text" id = "Merk5" value = "<?" PHP echo isset($_POST['Merk'])? $_POST ['Merk']: "?; ">" / >

    <? PHP if (in_array ('Brand', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ['Merk'];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    < td > design: < table >

    < td colspan = "3" > < input type = "text" name = "type" id = 'type' value = "<?" PHP echo isset($_POST['type'])? $_POST ['type']: "?; ">" / >

    <? PHP if (in_array ('type', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ['type'];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    Art < td >: < table >

    < td colspan = "3" > < input name = "Art" type = "text" id = "Case" value = "<?" PHP echo isset($_POST['Materiaal'])? $_POST ["art"]: "?; ">" / >

    <? PHP if (in_array ('Art', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ["art"];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    Maat < td >: < table >

    < td colspan = "3" > < input type = "text" name = "Maat" id = "Maat" value = "<?" PHP echo isset($_POST['Maat'])? $_POST ['Maat']: "?; ">" / >

    <? PHP if (in_array ('Maat', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ['Maat'];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    < td > condition *: < table >

    < td colspan = "3" > < select name = "condition" id = "condition" >

    Zo goed als nieuw < option > < / option >

    < option > Nieuw < / option >

    < option > Bebruikt < / option >

    < option selected = "selected" > Geen information < / option >

    < / select > < table >

    < /tr >

    < b >

    < td > collect/question: * < table >

    < td colspan = "3" > < select name = "collect" id = "collect" >

    Collect < option > < / option >

    < option > question < / option >

    < option > n < / option >

    < option > Geen information < / option >

    < / select > < table >

    < /tr >

    < b >

    < td > Prijs Min: < table >

    < td > < input name = "prijsmin" type = "text" id = "prijsmin" size = "10" value = "<?" PHP echo isset($_POST['prijsmin'])? $_POST ['prijsmin']: "?; ">" / >

    <? PHP if (in_array ('prijsmin', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ["prijsmin"];? > < / span >

    <? PHP endif;? > < table >

    Max de Prijs < td >: < table >

    < td > < input name = "Price" type = 'text' id = "Prijs" size = "10" value = "<?" PHP echo isset($_POST['Prijs'])? $_POST ['price']: "?; ">" / >

    <? PHP if (in_array ('Prijs', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ['price'];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < /table >

    < h1 > unstable: < / h1 >

    < table width = "690" border = "0" >

    < b >

    < td = "25" height > unstable: < table >

    < td rowspan = "2" > < textarea name = "Unstable" cols = "67" lines = '10' id = 'Unstable' > <? PHP echo isset($_POST['Opmerkingen'])? $_POST ['unstable']: "?; > < / textarea >

    <? PHP if (in_array ('Unstable', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages 'unstable'?; > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    < td = "78" height > < table >

    < /tr >

    < /table >

    < h1 > Uw Gegevens: < / h1 >

    < table width = "690" border = "0" >

    < b >

    < td > Chairwoman / Voorletters *: < table >

    < td > < input type = "text" name = "Chairwoman" id = "Chairwoman" class = "invul" value = "<?" PHP echo isset($_POST['Voornaam'])? $_POST ['Chairwoman"]:"?; ">" / >

    <? PHP if (in_array ('Chairwoman', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ["Chairwoman"];? > < / span >

    <? PHP endif;? > < table >

    < td > Achternaam: * < table >

    < td > < input type = "text" name = "Achternaam" id = "Achternaam" class = "invul" value = "<?" PHP echo isset($_POST['Achternaam'])? $_POST ["Achternaam"]: "?; ">" / >

    <? PHP if (in_array ("'Achternaam", $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ["Achternaam"];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    Straatnaam < td >: < table >

    < td > < input type = "text" name = "Straat" id = "Straat" class = "invul" = value "<?" PHP echo isset($_POST['Straat'])? $_POST ['Straat']: "?; ">" / >

    <? PHP if (in_array ('Straat', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ["Straat"];? > < / span >

    <? PHP endif;? > < table >

    Huisnummer < td >: < table >

    < td > < input name = "Huisnummer" type = "text" id = "Huisnummer" class = "invul" size = "10" = value "<?" PHP echo isset($_POST['Huisnummer'])? $_POST ['Huisnummer"]:"?; ">" / >

    <? PHP if (in_array ('Huisnummer', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ["Huisnummer'];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    Code postal < td >: < table >

    < td > < input type = "text" name = "PostalCode" id = 'postal Code' class = "invul" value = "<?" PHP echo isset($_POST['Postcode'])? $_POST ['postal code']: "?; ">" / >

    <? PHP if (in_array ('Postcode', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ['postal code'];? > < / span >

    <? PHP endif;? > < table >

    < td > place: * < table >

    < td > < input type = "text" name = "Place" id = "Place" class = "invul" value = "<?" PHP echo isset($_POST['Plaats'])? $_POST ['place']: "?; ">" / >

    <? PHP if (in_array ('Place', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ['place'];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < b >

    < td > email Adres: * < table >

    < td colspan = "3" > < input type = "text" name = "email" id = "email" class = "invul" = 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;? > < table >

    < /tr >

    < b >

    Number < td >: < table >

    < td colspan = "3" > < input name = "Categories" type = "text" id = "Categories" class = "invul" value = "<?" PHP echo isset($_POST['Telefoon'])? $_POST ['categories']: "?; ">" / >

    <? PHP if (in_array ('Téléphone', $validation)):? >

    < span class = "error" > <? PHP echo $error_messages ['categories'];? > < / span >

    <? PHP endif;? > < table >

    < /tr >

    < /table >

    < p >

    < label for = "Straat" > < / label >

    < label for = "Huisnummer" > < br / >

    < / label >

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

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

    < /p >

    < / make >

    <? PHP else:? >

    < div class = "fresh" >

    < p > Bedankt voor uw request! < /p >

    < p > Wij zullen uw request zo mogelijk processing soon. Meestal if said 2-3 werkdagen. < /p >

    < p > < img src = "icons/vinddit3.gif" width = "220" height = "80" alt = "logo" / > < / p > "

    < / div >

    < p >

    < script type = "text/javascript" >

    setTimeout ("ourRedirect ()", 5000)

    function ourRedirect() {}

    }

    < /script >

    <? PHP endif;? >

    < / body >

    < / html >

    and. JS

    window.addEvent ('domready', function() {}

    Get the form

    var form = $('comments_form');

    If the form is...

    If {(form)

    get the error fields

    var name = $('fullname');

    e-mail var = $('email');

    Var comment = $("commentaire");

    Set the default state

    var isValid = true;

    function of input for the error messages error

    addError var = function (field, msg) {}

    field.addClass ('error'); Add the error class to the field

    var error = field.getParent () .getElement ('span') | new element ('span', {'class': 'error'}); Add error message if not already placed

    Error.Set ("text", msg); error text msg

    Error.Inject (field, 'after'); Insert the error message after field

    };

    detach the function of error used to remove the error messages and remove the error class

    removeError var = function (field) {}

    field.removeClass ('error'); Remove the error of form fields class

    var error = field.getParent () .getElement ('span'); find the existing error messages

    destroy if error message

    If {(error)

    Error.Destroy ();

    }

    };

    Insert the form submit event

    form.addEvent ("submit", function (e) {}

    Length of the name of test

    If (name.get('value').length = 0) {}

    isValid = false;

    addError (name, nameError);

    } else {}

    isValid = true;

    removeError (name);

    }

    check the length of e-mail

    If (email.get('value').length = 0) {}

    isValid = false;

    addError (e-mail, emailError);

    check the validity of the email

    } else if (! email.get('value').test (/ ^ ([a-zA-Z0-9 + Zinsou-] +) (\.))) [a-zA-Z0-9\+_\-]+)*@([a-zA-Z0-9\-]+\.) + [a-zA-Z] {2, 6} ($/)) {}]

    isValid = false;

    addError (e-mail, emailError);

    } else {}

    isValid = true;

    removeError (email);

    }

    check the length of the comment

    If (comment.get('value').length = 0) {}

    isValid = false;

    addError (comment, commentError);

    } else {}

    isValid = true;

    removeError (how);

    }

    If the invalid form then stop occurrence of the event

    If (! isValid) {}

    e.Stop ();

    }

    });

    }

    });

    If the success of the validation ok then send e-mail

    mail ($email_to, $email_subject, $email_content);

    Only, you should be able to add automatic response php code before "mail" works in your existing php code (marked in red below). Then add another function of mail after the function of main e-mail as shown below.

    build the auto answer

    $reply = $_POST ['email'];

    $replysubject = "auto-Reply: name of the Web site;

    $replyfrom = "from: [email protected]\r\n";

    $replymessage = 'your request has been sent successfully. A member of the staff is reviewing your request and is soon in contact. Thankyou.\r\n\r\n ';

    $replymessage. = 'yours Sincerely, \r\n ";

    $replymessage. = 'Position in society - society Name\r\n ';.

    $replymessage. = "this email is automated, so please NO reply.\r\n;

    If the success of the validation ok then send e-mail

    mail ($email_to, $email_subject, $email_content);

    mail ($reply, $replysubject, $replymessage, $replyfrom);

  • How to make a live website with BC after publication?

    How to make a live website with BC after publication?

    Hello

    You need push direct site, in the site admin dashboard, you will get the option "launch the Site.

    Please order this video:

    lyst-and-Muse-creating-and-publishing-sites/ http://TV.adobe.com/watch/Introducing-Business-Catalyst/Getting-Started-with-Business-CATA

    Thank you

    Sanjit

Maybe you are looking for