Need help with creating a contact form!

I searched the forum, and found the suggestion to go to Bravenet and create the form, and then copy the code into the HTML snippet.
I've done that - but I need to change the font - along with its color and possibly the size.
Here is the code:
<form method="post" enctype="multipart/form-data" action="http://pub5.bravenet.com/emailfwd/senddata.php">
<input type="hidden" name="usernum" value="381593922">
<input type="hidden" name="cpv" value="2">
<!-- DO NOT CHANGE OR REMOVE THE 3 TAGS ABOVE THIS COMMENT-->
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
Contact Form
</td>
</tr>
<tr>
<td>
<label for="FirstLastName" style="float:left;width:140px;">First and Last Name:</label><input type="text" name="FirstLastName" id="FirstLastName" value="" maxlength="" style="width:200px;">
<label for="Email" style="float:left;width:140px;">E-Mail Address:</label><input type="text" name="Email" id="Email" value="" maxlength="" style="width:200px;">
<label for="Message" style="float:left;width:140px;">Message:</label><textarea name="Message" id="Message" maxlength="" style="width:200px;height:200px;"></textarea>
</td>
<tr>
<td align="right">
<!-- YOU CAN MODIFY THE TEXT WITHIN VALUE="" TO MODIFY YOUR BUTTON TEXT-->
<input type="submit" value=" Submit "> <input type="reset" value=" Reset ">
</td>
</tr>
</table>
</form>
Can anyone give me a hand??
Thanks!
Kim

You might want to check out wufoo.com - very customizable

Similar Messages

  • Need help in creating multiple signature forms?

    need help in creating multiple signature forms that can be digitally signed in adobe reader

    Automator gets a bit unweildy when trying to vary things outside of what the actions provide.  Since you are already using an AppeScript in your workflow, might as well do the whole thing:
    set baseFolder to (path to desktop) -- the location to create the folder
    display dialog "Please provide a new folder name:" default answer "test"
    set folderName to text returned of the result
    repeat -- keep repeating until a number is returned
      display dialog "How many subfolders?" default answer "5"
      set theNumber to text returned of the result
        try -- test the result
          set theNumber to theNumber as integer
          exit repeat -- success
        end try
    end repeat
    tell application "Finder"
      try -- make new folder
        set newFolder to (make new folder at baseFolder with properties {name:folderName})
      on error number -48 -- skip errors if the folder is already there
        set newFolder to ((baseFolder as text) & folderName) as alias
      end try
      repeat with X from 1 to theNumber
        try -- make new subfolder
          make new folder at newFolder with properties {name:folderName & X}
        on error number -48 -- skip errors if the folder is already there
        end try
      end repeat
    end tell

  • I need help with Creating Key Pairs

    Hello,
    I need help with Creating Key Pairs, I generate key pais with aba provider, but the keys generated are not base 64.
    the class is :
    import java.io.*;
    import java.math.BigInteger;
    import java.security.*;
    import java.security.spec.*;
    import java.security.interfaces.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import au.net.aba.crypto.provider.ABAProvider;
    class CreateKeyPairs {
    private static KeyPair keyPair;
    private static KeyPairGenerator pairGenerator;
    private static PrivateKey privateKey;
    private static PublicKey publicKey;
    public static void main(String[] args) throws Exception {
    if (args.length != 2) {
    System.out.println("Usage: java CreateKeyParis public_key_file_name privete_key_file_name");
    return;
    createKeys();
    saveKey(args[0],publicKey);
    saveKey(args[1],privateKey);
    private static void createKeys() throws Exception {
    Security.addProvider(new ABAProvider());
    pairGenerator = KeyPairGenerator.getInstance("RSA","ABA");
    pairGenerator.initialize(1024, new SecureRandom());
    keyPair = pairGenerator.generateKeyPair();
    privateKey = keyPair.getPrivate();
    publicKey = keyPair.getPublic();
    private synchronized static void saveKey(String filename,PrivateKey key) throws Exception {
    ObjectOutputStream out= new ObjectOutputStream(new FileOutputStream(filename));
    out.writeObject(key);
    out.close();
    private synchronized static void saveKey(String filename,PublicKey key) throws Exception {
    ObjectOutputStream out= new ObjectOutputStream( new FileOutputStream(filename));
    out.writeObject(key);
    out.close();
    the public key is:
    �� sr com.sun.rsajca.JSA_RSAPublicKeyrC��� xr com.sun.rsajca.JS_PublicKey~5< ~��% L thePublicKeyt Lcom/sun/rsasign/p;xpsr com.sun.rsasign.anm����9�[ [ at [B[ bq ~ xr com.sun.rsasign.p��(!g�� L at Ljava/lang/String;[ bt [Ljava/lang/String;xr com.sun.rsasign.c�"dyU�|  xpt Javaur [Ljava.lang.String;��V��{G  xp   q ~ ur [B���T�  xp   ��ccR}o���[!#I����lo������
    ����^"`8�|���Z>������&
    d ����"B��
    ^5���a����jw9�����D���D�)�*3/h��7�|��I�d�$�4f�8_�|���yuq ~
    How i can generated the key pairs in base 64 or binary????
    Thanxs for help me
    Luis Navarro Nu�ez
    Santiago.
    Chile.
    South America.

    I don't use ABA but BouncyCastle
    this could help you :
    try
    java.security.Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    java.security.KeyPairGenerator kg = java.security.KeyPairGenerator.getInstance("RSA","BC");
    java.security.KeyPair kp = kg.generateKeyPair();
    java.security.Key pub = kp.getPublic();
    java.security.Key pri = kp.getPrivate();
    System.out.println("pub: " + pub);
    System.out.println("pri: " + pri);
    byte[] pub_e = pub.getEncoded();
    byte[] pri_e = pri.getEncoded();
    java.io.PrintWriter o;
    java.io.DataInputStream i;
    java.io.File f;
    o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pub64"));
    o.println(new sun.misc.BASE64Encoder().encode(pub_e));
    o.close();
    o = new java.io.PrintWriter(new java.io.FileOutputStream("d:/pri64"));
    o.println(new sun.misc.BASE64Encoder().encode(pri_e));
    o.close();
    java.io.BufferedReader br = new java.io.BufferedReader(new java.io.FileReader("d:/pub64"));
    StringBuffer keyBase64 = new StringBuffer();
    String line = br.readLine ();
    while(line != null)
    keyBase64.append (line);
    line = br.readLine ();
    byte [] pubBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
    br = new java.io.BufferedReader(new java.io.FileReader("d:/pri64"));
    keyBase64 = new StringBuffer();
    line = br.readLine ();
    while(line != null)
    keyBase64.append (line);
    line = br.readLine ();
    byte [] priBytes = new sun.misc.BASE64Decoder().decodeBuffer(keyBase64.toString ());
    java.security.KeyFactory kf = java.security.KeyFactory.getInstance("RSA","BC");
    java.security.Key pubKey = kf.generatePublic(new java.security.spec.X509EncodedKeySpec(pubBytes));
    System.out.println("pub: " + pubKey);
    java.security.Key priKey = kf.generatePrivate(new java.security.spec.PKCS8EncodedKeySpec(priBytes));
    System.out.println("pri: " + priKey);
    catch(Exception e)
    e.printStackTrace ();
    }

  • I need help with creating PDF with Preview...

    Hello
    I need help with creating PDF documetns with Preview. Just a few days ago, I was able to create PDF files composed of scanned images (notes) and everything worked perfectly fine. However, today I was having trouble with it. I scanned my notebook and saved 8 images/pages in jpeg format. I did the usual routine with Preview (select all files>print>PDF>save as PDF>then save). Well this worked a few days ago, but when I tried it today, I was able to save it, but the after opening the PDF file that I have saved, only the first page was there. The other pages weren't included. I really don't see anything wrong with what I'm doing. I really need help. Any help would be greatly appreciated.

    I can't find it.  I went into advanced and then document processing but no batch sequence is there and everything is grayed out.
    EDIT: I realized that you cant do batch sequences in standard.  Any other ideas?

  • I need help with a 1 Page Form with scrollable text field (5000 limit characters) and printing

    Hello, I have no training in using Adobe Acrobat Pro or Livecycle Designer so I need major help with a 1 page form that I am attempting to create. Basically the form will be used to nominate employees for a Job Well Done Award.
    The form contains the following:
    1.) The name(s) of the employees being nominated and the date of the accomplishment.
    2.) In the middle of the page I have a section for a write up, limited to 5000 characters, this is were I am needing the most help. A couple of things, about this section: The font is set at 11 and I don't want it to change. The text field has multiple-line, scroll long text enabled. The text field is a certain size and can only hold so much text, then it starts to scroll, which I am ok with, I like that feature. The issue I am having is during printing. I would like to keep the text field scrollable but when I print I would like to be able to print everything in that field. Executing this is the problem, I have no clue how to do it. I was hoping for some setting within Acrobat Pro or LiveCycle to be available, but the more I read and research this, it appears that it may require java, xml, basically some coding. I don't know for sure.
    3.) Below the text field I have another field for the person nominating to type their name and right next to that another field for a digital signature.
    4.) And finally below those two fields I have a Submit button that is setup to start email application so the form can be emailed to the proper inbox.
    Thank you in advance.

    With an Acrobat form the only thing you can do is export the text to
    another location (like a blank field on another page) or to another file
    format. With an LCD form you can expand the text box itself, but you'll
    need to ask about that over at the LCD Scripting forum.

  • Need help with creating a brush

    Hi guys,
    I wanted to ask for help with creating a brush (even a link to a tutorial will be goon enough ).
    I got this sample:
    I've created a brush from it, and i'm trying to get this kind of result:
    but it's only duplicates it and gives me this result:
    Can someone help me please understand what i need to define in order to make the brush behave like a continues brush instead of duplicate it?
    Thank you very much
    shlomit

    what you need to do is make a brush that looks like the tip of a brush. photoshop has several already but you can make your own that will be better.
    get a paintbrush and paint a spot kind of like what you did but dont paint a stroke. make it look kindof grungy. then make your brush from that, making sure to desaturate it and everything.
    EDIT:
    oh, and if you bring the fill down to like 10-20% your stroke will look better

  • I need help with creating some formulas

    I'm not sure if anyone around here can help me, but I'm trying to create a Numbers document and need some help with creating a formula/function.
    I have a column of amounts and I would like to create a formula which deducts a percentage (11.9%) and puts the result in another column.
    If anyone can help me, it would be greatly appreciated.

    Here is an example that shows one way to do this:
    The original data is in column A.  In column B we will store formulas to adjust the amounts:
    1) select the cell where you want to formula (in this case cell B2)
    2) Type the "=" (equal sign):
    3) click cell A2:
    4) now type the rest of the formula which is: "*(100-11.9)/100"  that is asterisk, then open parenthesis, 100 minus eleven point nine close parenthesis forward slash  one hundred
    The Asterisk is the multiply operator  (times) and the forward slash is the division operator (divide)
    now hit return.  select cell B2 and hover the cursor over the bottom edge of the cell:
    drag the little yellow dot down to "fill" the formula down as needed.

  • Need help with creating custom form

    hi all,
    i'm working on creating a new form. it has 2 blocks for 2 tables. headers and lines tables. the headers table mostly have columns that are id's from other tables. i.e. customer_id, location_id etc.. in my screen, obviously i would not show the id's. i'll display the descriptions / names of the id's instead like customer_name for customer_id... but in order to do this i created a table that joins more than 2 tables. so in the block query data source name, i enter the name of this view.. then i add a ON-INSERT, ON-UPDATE, ON-DELETE triggers at block level and i call the corresponding package which does the insert, update and delete. i'm able to insert but update and delete causes a problem. "ORA-01445: cannot select ROWID from, or sample, a join.. ".. i'm thinking the reason is that when the form does an update or delete, it locks the record which causes the error.. also the reason i need the view is because i need to be able to query the customer_name in the screen instead of the customer_id... what i can't figure out is how i can make this work... or a work-around may be...
    can anyone help.
    thanks

    Matt Rasmussen wrote:
    You're right that the form is locking the record so you just need to control how it locks the record with an on-lock trigger. From the Oracle Applications Developer's Guide:
    page 3-9:
    When basing a block on a view, you must code ON–INSERT, ON–UPDATE, ON–DELETE, and ON–LOCK triggers to insert, update, delete, and lock the root table instead of the view.
    Most of the on-lock triggers I have written follow this template:
    <pre>     SELECT     field1, field2, field3
         INTO     :block.field3, :block.field2, :block.field3
         FROM     view
         WHERE     rowid = :block.row_id
         FOR UPDATE OF field1, field2, field3;</pre>
    I think once you've added this trigger, your form will work the way you want it.hi,
    i tried your suggestion but still get the same error.. anyways, here are the details of what i have so far.
    here's my table.
    CREATE TABLE XXPN_VR_VOL_HEADERS_ALL
      VOL_HEADER_ID     NUMBER,
      CUSTOMER_ID       NUMBER,
      LEASE_ID          NUMBER,
      LOCATION_ID       NUMBER,
      VAR_RENT_ID       NUMBER,
      PERIOD_SET_NAME   VARCHAR2(15 BYTE),
      PERIOD_NAME       VARCHAR2(15 BYTE),
      IMPORT_FLAG       VARCHAR2(1 BYTE),
      IMPORT_DATE       DATE,
      CALC_TYPE         VARCHAR2(30 BYTE),
      PASSTHROUGH_FLAG  VARCHAR2(1 BYTE),
      COMMENTS          VARCHAR2(2000 BYTE),
      CREATED_BY        NUMBER,
      CREATION_DATE     DATE,
      LAST_UPDATED_BY   NUMBER,
      LAST_UPDATE_DATE  DATE
    );here's my view.
    create or replace view xxpn_vr_vol_headers_v ( row_id
                                                  ,vol_header_id
                                                  ,customer_id
                                                  ,customer_name
                                                  ,lease_id
                                                  ,lease_name
                                                  ,lease_number
                                                  ,location_id
                                                  ,location_code
                                                  ,var_rent_id
                                                  ,var_rent_number
                                                  ,period_set_name
                                                  ,period_name
                                                  ,import_flag
                                                  ,import_date
                                                  ,calc_type
                                                  ,passthrough_flag
                                                  ,created_by
                                                  ,creation_date
                                                  ,comments
                                                  ,last_updated_by
                                                  ,last_update_date )
    as
      select xvvha.rowid
            ,xvvha.vol_header_id
            ,xvvha.customer_id
            ,hp.party_name
            ,xvvha.lease_id
            ,pl.name
            ,pl.lease_num
            ,xvvha.location_id
            ,loc.location_code
            ,xvvha.var_rent_id
            ,pvr.rent_num
            ,xvvha.period_set_name
            ,xvvha.period_name
            ,xvvha.import_flag
            ,xvvha.import_date
            ,xvvha.calc_type
            ,xvvha.passthrough_flag
            ,xvvha.created_by
            ,xvvha.creation_date
            ,xvvha.comments
            ,xvvha.last_updated_by
            ,xvvha.last_update_date
        from xxpn_vr_vol_headers_all xvvha
            ,hz_parties hp
            ,pn_leases_all pl
            ,pn_locations_all loc
            ,pn_var_rents_v pvr
       where -1 = -1
         and xvvha.customer_id = hp.party_id (+)
         and xvvha.lease_id = pl.lease_id (+)
         and xvvha.location_id = loc.location_id (+)
         and xvvha.var_rent_id = pvr.var_rent_id (+);here's my ON-UPDATE trigger block level
    begin
      xxpn_vr_vol_data_pkg.update_vr_vol_hdr_data ( p_vol_header_id     => :XXPNVRVOLHDRS.vol_header_id
                                                   ,p_customer_id       => :XXPNVRVOLHDRS.customer_id
                                                   ,p_lease_id          => :XXPNVRVOLHDRS.lease_id
                                                   ,p_location_id       => :XXPNVRVOLHDRS.location_id
                                                   ,p_var_rent_id       => :XXPNVRVOLHDRS.var_rent_id
                                                   ,p_period_set_name   => :XXPNVRVOLHDRS.period_set_name
                                                   ,p_period_name       => :XXPNVRVOLHDRS.period_name
                                                   ,p_import_flag       => :XXPNVRVOLHDRS.import_flag
                                                   ,p_passthrough_flag  => :XXPNVRVOLHDRS.passthrough_flag
                                                   ,p_comments          => :XXPNVRVOLHDRS.comments
                                                   ,x_last_updated_by   => :XXPNVRVOLHDRS.last_updated_by
                                                   ,x_last_update_date  => :XXPNVRVOLHDRS.last_update_date );
    end;here's my code in ON-LOCK trigger block level
    begin
      select lease_id
            ,lease_name
            ,lease_number
            ,location_id
            ,location_code
            ,customer_id
            ,customer_name
            ,var_rent_id
            ,var_rent_number
            ,period_name
            ,comments
            ,period_set_name
            ,import_flag
            ,passthrough_flag
            ,created_by
            ,creation_date
            ,last_updated_by
            ,last_update_date
        into :XXPNVRVOLHDRS.lease_id
            ,:XXPNVRVOLHDRS.lease_name
            ,:XXPNVRVOLHDRS.lease_number
            ,:XXPNVRVOLHDRS.location_id
            ,:XXPNVRVOLHDRS.location_code
            ,:XXPNVRVOLHDRS.customer_id
            ,:XXPNVRVOLHDRS.customer_name
            ,:XXPNVRVOLHDRS.var_rent_id
            ,:XXPNVRVOLHDRS.var_rent_number
            ,:XXPNVRVOLHDRS.period_name
            ,:XXPNVRVOLHDRS.comments
            ,:XXPNVRVOLHDRS.period_set_name
            ,:XXPNVRVOLHDRS.import_flag
            ,:XXPNVRVOLHDRS.passthrough_flag
            ,:XXPNVRVOLHDRS.created_by
            ,:XXPNVRVOLHDRS.creation_date
            ,:XXPNVRVOLHDRS.last_updated_by
            ,:XXPNVRVOLHDRS.last_update_date
        from xxpn_vr_vol_headers_v
       where rowid = :XXPNVRVOLHDRS.ROW_ID
         for update of lease_id
                      ,lease_name
                      ,lease_number
                      ,location_id
                      ,location_code
                      ,customer_id
                      ,customer_name
                      ,var_rent_id
                      ,var_rent_number
                      ,period_name
                      ,comments
                      ,period_set_name
                      ,import_flag
                      ,passthrough_flag
                      ,created_by
                      ,creation_date
                      ,last_updated_by
                      ,last_update_date;
    end;properties for the block
    Query Data Source Type: Table
    Query Data Source Name: XXPN_VR_VOL_HEADERS_V
    DML Target Type: Table
    DML Target Name: XXPN_VR_VOL_HEADERS_V
    i'd appreciate any help.
    thanks

  • Help with a simple contact form.

    Hi there..
    I am having trouble making a contact form with a servlet. I have a Fedora Core Linux Box running ddns..
    My internet account is sympatico.. which a username and password is required to send out with smtp..
    I need help creating a servlet and I have java mail also..
    This is what I have so far...
    I have more info below
    <form class="formContactus1" name="formContactus1" method="post" action="/SendMail" onsubmit="validerForm();">
                                                      <table id="tblContactus">
                                                           <tbody><tr>
                                                                <td class="tdLeft">
                                                                     <label><fmt:message key="Form_firstname" /></label>
                                                                </td>
                                                                <td class="tdRight">
                                                                     <input class="contactTextName" id="last_name" name="last_name" maxlength="100" type="text">
                                                                </td>
                                                           </tr>
                                                           <tr>
                                                           <td class="tdLeft">
                                                                <label><fmt:message key="Form_lastname" /></label>
                                                           </td>
                                                           <td class="tdRight">
                                                                <input class="contactTextName" id="first_name" name="first_name" maxlength="75" type="text">
                                                           </td>
                                                      </tr>
                                                      <tr>
                                                           <td class="tdLeft">
                                                                <label><fmt:message key="Form_email" /></label>
                                                           </td>
                                                           <td class="tdRight">
                                                                <input class="contactTextName" id="email" name="email" maxlength="75" type="text">
                                                           </td>
                                                      </tr>
                                                           <tr>
                                                                <td class="tdLeft" valign="top">
                                                                     <label><fmt:message key="Form_message" /></label>
                                                                </td>
                                                                <td>
                                                                     <textarea class="contactTextMessage" id="message" cols="" rows="" name="message"></textarea>
                                                                </td>
                                                           </tr>
                                                      </tbody></table>
                                                      <!-- This is the anti-spam validation images... -->
                                                      <table id="tblCaptcha">
                                                           <tbody><tr>
                                                                <td class="right" id="tdImgCaptcha"><img style="height: 35px;" src="/captcha/img"></td>
                                                                <td class="right" id="tdInputCaptcha"><input name="captchaAnswer" type="text"></td>
                                                           </tr>
                                                           <tr>
                                                                <td class="right" colspan="2" valign="bottom">
                                                                     <input id="contactSubmit" name="send" value="<fmt:message key="Form_submit" />" type="submit">
                                                                </td>
                                                           </tr>
                                                      </tbody></table>
                                                 </form>

    You forgot to tell the details about the trouble. Please elaborate. What happens? What happens not?
    Please also read this how to ask questions the smart way: [http://www.catb.org/~esr/faqs/smart-questions.html].

  • 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; }

  • Help with html / php contact form

    Hi guys I was hoping to get some help with a contact form on my website, to be honest I havent a clue about php but kind of okay with html thats why the php code is just a copy and paste from some website, just trying to marry it up with the html but getting errors.
    Hopfully one of you can see the problem.
    Error on Submitting:
    Notice: Undefined variable: name in \\nas44ent\Domains\g\gethinhayman.co.uk\user\htdocs\send_form_email.php on line 69
    Notice: Undefined variable: message in \\nas44ent\Domains\g\gethinhayman.co.uk\user\htdocs\send_form_email.php on line 75
    We are very sorry, but there were error(s) found with the form you submitted. These errors appear below.
    The Name you entered does not appear to be valid.
    The Comments you entered do not appear to be valid.
    HTML Code:
    <section id="contact" class="four">
                                                                <div class="container">
                                                                          <header>
                                                                                    <h2>Contact</h2>
                                                                          </header>
                                                                          <form method="post" action="send_form_email.php">
                                                                                    <div class="row half">
                                                                                              <div class="6u"><input type="text" class="text" name="name" placeholder="Name" /></div>
                                                                                              <div class="6u"><input type="text" class="text" name="email" placeholder="Email" /></div>
                                                                                    </div>
                                                                                    <div class="row half">
                                                                                              <div class="12u">
                                                                                                        <textarea name="message" placeholder="Message"></textarea>
                                                                                              </div>
                                                                                    </div>
                                                                                    <div class="row">
                                                                                              <div class="12u">
                                                                                                        <a href="http://www.mywebsite.co.uk/email_form.php" class="button submit">Send Message</a>
                                                                                              </div>
                                                                                    </div>
                                                                          </form>
                                                                </div>
                                                      </section>
    php Code:
    <?php
    if(isset($_POST['email'])) {
        $email_to = "my email address";
        $email_subject = "Mail from Site";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['message'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');      
        $first_name = $_POST['name']; // required
        $email_from = $_POST['email']; // required
        $comments = $_POST['message']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$name)) {
        $error_message .= 'The Name you entered does not appear to be valid.<br />';
      if(strlen($message) < 1) {
        $error_message .= 'The Comments you entered do not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "Name: ".clean_string($name)."\n";;
        $email_message .= "Email: ".clean_string($email)."\n";
        $email_message .= "Message: ".clean_string($message)."\n";
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers); 
    ?>
    <?php
    ?>

    PHP CODE:  SaveAs send_form_email.php
    <?php
    if(isset($_POST['email'])) {
        // EDIT THE 2 LINES BELOW AS REQUIRED
        $email_to = "[email protected]";
        $email_subject = "Your email subject line";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['message'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');     
        $name = $_POST['name']; // required
        $email_from = $_POST['email']; // required
        $comments = $_POST['message']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$name)) {
        $error_message .= 'The Name you entered does not appear to be valid.<br />';
      if(strlen($message) < 2) {
        $error_message .= 'The message you entered does not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "Name: ".clean_string($name)."\n";
        $email_message .= "Email: ".clean_string($email_from)."\n";
        $email_message .= "Message: ".clean_string($message)."\n";
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers);
    ?>
    <!-- include your own success html here -->
    Thank you for contacting us. We will be in touch with you very soon.
    <?php
    ?>
    HTML Code -- save as html page.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Contact Form</title>
    </head>
    <body>
    <section id="contact" class="four">
    <div class="container">
    <header>
    <h2>Contact</h2>
    </header>
    <form method="post" action="send_form_email.php">
    <div class="row half"> <div class="6u">
    <input type="text" class="text" name="name" placeholder="Name" />
    </div>
    <div class="6u">
    <input type="text" class="text" name="email" placeholder="Email" />
    </div>
    </div>
    <div class="row half"> <div class="12u">
    <textarea name="message" placeholder="Message"></textarea>
    </div>
    </div>
    <div class="row">
    <div class="12u">
    <input type="submit" name="submit" value="Send">
    </div>
    </div>
    </form>
    </div>
    </section>
    </body>
    </html>
    Upload both to your Apache server to test.
    EDIT:  changed typo on Submit button -- valuse to value.
    Nancy O.

  • Need help with creating template. Changes are not going through to index.html page

    Hi all,
    I have an issue with my template that I am creating and also a question about creating template Regions (Repeating and Editable).
    Somehow my changes to my index.dwt are not changing my index.html page.
    Also my other question is: For my top navigation bar and left navigation bar links, do I need to select and define each individual button or link as Repeating/Editable Region? or can I just select the whole navigation bar (the one on the top) etc...
    Below are my steps for creating my template...I am kinda fairly new to using DW and this is my first attempt to making a template following the DW tutorial CD that came with DW CS3.
    I appreciate any help with this...regards, Dano
    -Open my index.html file
    -File/save as template
    -Save
    -update links - yes
    -Select Repeating and Editable Regions (I selected the whole top navigation bar and selected Repeating Region and Editable Region, same with the left side navigation links)
    -File close all
    -Open the index.dwt
    -Save as and selected the index.html and chose to overide it..
    When I make changes to my index.dwt it is not changing the index.html
    I feel that I am missing some important steps here.....
    Website address
    www.defenseproshop.com

    Figured out

  • Need Help With Spam Proof Email Form

    I am making a new web site using iWeb, .Mac, personal domain and forwarding from my commercial host. I want to make an email contact form that spammers cannot hijack and use to deluge use with spam. I have another web site that was created with Dreamweaver that contains a javascript form that I think that I can modify and use as an html snippet in iWeb.
    Will this work in iWeb (sending a form response to non-.mac email address? The form I am using relies on two small text documents that are stored in the templates folder of my site. The following code refers to the one line of text in the confige document.
    <input type=hidden name="config" value="templates/confige.txt">
    <input type=hidden name="success_url" value="http://myothersite.com">
    <input type=hidden name="email" value="[email protected]">
    Text of confige: mail_template=templates/emailTemplate.txt
    The confige document refers to the following text which are the field names and order.
    Name: <first>
    Store Name: <store>
    Location: <city>
    E-mail: <custemail>
    Platform: <platform>
    Comments:<storeDescription>
    How do I deal with the text documents that are stored in a separate folder in my Dreamweaver site, and can I eliminate these documents and use just the html form in iWeb?

    You might want to check out wufoo.com - very customizable

  • Need help with creating a formula for percentages

    I am creating a fillable form for subcontractors to submit change requests. One of the sections on the form is for materials. Most subs will charge a markup which is a small percentage of the actual cost. Obviously, both amounts are variables. I want the subs to be able to enter the material cost in field 1, the markup percentage in field two, and then have field three calculate the dollar amount for them. Is this possible? Btw, I'm clueless on this, it's my first attempt at an adobe form. Thanks!!!

    A more standard way is to use something like the following as the third field's custom Calculate script:
    // Custom calculate script
    (function () {
        // Get the field values, as numbers
        var v1 = +getField("price").value;
        var v2 = +getField("markup_percentage").value;
        // Calculate the value of this field
        event.value = v1 * (1 + v2 / 100);
    This is assuming that a percentage of 20% is entered by the user as 20, as opposed to 0.2 or something else. Change the field values to match the actual fields in your form.
    If the markup field is blank or zero, the total will simply be the same as the price value.

  • Need help with creating text anchors with tagged text.

    Can anyone tell me how to determine the correct value for a "Hyperlink Dest Index" value?
    I have a script which creates a tagged text file that specifies about about 280 pages of tables (thank heavens for autoflow) , and would like to add live links between different parts. I can create a text anchor and a hyperlink to it in InDesign. The tagged text definition for the link source is simple and in-line and exports and imports nicely as tagged text. However, I see that all the link destinations, aka  text anchors, are all exported at the very end of the tagged text files as global definitions, and thier location iin the document is specified by the property HyperlinkDestIndex. However, I can't figure out how to set this value progammatically. I've spent over an hour exporting links, and it sure isn't anything as obvious as character index in the story.
    Any advice appreciated,
      Read Roberts

    Read, I'm not sure the following is going to help you. It works for external hyperlinks, but you want internal links, right? Anyway, it might give you some clues.
    A funny thing: I was reviewing some script where I got links to work, and I spotted a tiny coding error. Links seemed to be defined by two separate identifiers: a "link name", which is what appears in Edit Hyperlink dialog, and a "Dest Key", which seems to be a simple increasing number. However, due to aformentioned coding error, the dest keys between the actual link and its definition were off by '1', so there was no way that ought to have matched. But it still worked! So "Dest Key" is a red herring ...
    As far as I understand, it works like this (for hyperlinks): in your text, you have
    HplName -- this is actually the 'title' that appears in the Hyperlink palette
    HplDest -- this is the 'internal name'
    DestKey. Hm. Perhaps you could omit this, per above obsvn.
    CharStyleRef, the name of the auto-applied style
    Hid -- seems to be always '0'
    HplOff: the "offset" from this entire command to the start of the hyperlink, in InDesign characters.
    HplLen: the "length" from the hyperlinked text, in InDesign characters.
    and in the list of 'proper' definitions, those that appear at the very end of your file:
    HplDestDfn -- the internal name again
    DestKey -- see above
    HplDestUrl -- finally! A real URL! (But you must escape lots of characters, such as the forward slash and colon.)
    Hid -- again, always seems to be '0'.
    Some of these items are perhaps optional, but experimenting with what may be left out only lead to frustration The Tagged Text guide is far from complete, as I'm sure you already knew.
    As noted, some (or all) of the named items need a backslash escape for a few characters, but I can't find a definitive way to determine in advance what is 'good' and what is 'not good'.
    The following script creates a Tagged Text file with a couple of working hyperlinks in it -- I don't know if this is of any help for your internal links.
    var hyperlinkDest = [];
    var text = "This is some text with a link [http://www.jongware.com/idjshelp.html] and another one [http://forums.adobe.com/thread/1014617?tstart=0] in it.";
    var tagtext = text.replace (/\[(.+?)\]/g, function (full, match)
                        return makelink (match, 'title:'+match, match, match);
    // When done processing plain text, add the destinations at the end:
    tagtext += hyperlinkDest.join('');
    tagFile = File(Folder.myDocuments+'/__tmp.txt');
    if (tagFile.open('w') == false)
              alert ("Unable to create temporary file!");
              exit();
    if (File.fs == "Windows")
              tagFile.write ("<ASCII-WIN>\n");
    else
              tagFile.write ("<ASCII-MAC>\n");
    tagFile.write ("<dcs:HYPERLINK=<cu:1>>\n");
              tagFile.write (tagtext);
    tagFile.close();
    // 'text' is the actual text that will be clickable
    // 'title' is what will appear in the Hyperlinks palette
    // 'name' is the internal name in the Edit Hyperlink dialog
    // 'url' is the actual URL that will be linked to
    function makelink (text, title, name, url)
              var destkey = hyperlinkDest.length;
              // In URL you must escape forward slashes and colons
              // .. and some other characters as well, by the way. There seems to be no list
              url = url.replace(/\//g, '\\/').replace(/:/g, '\\:');
              hyperlinkDest.push ('<HplDestDfn:=<HplDestName:'+name+'><DestKey:'+String(destkey)+'><HplDestUrl:'+url+'><Hid:0>>');
              return '<Hpl:=<HplName:'+title+'><HplDest:'+name+'><DestKey:'+String(destkey)+'><CharStyleRef:HYPERLINK><Hid:0><Brdrv:0><HplOff:0><HplLen:'+String(text.length)+'>>'+text;

Maybe you are looking for