Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    May 2011
    Posts
    6
    Member #
    27980
    Hi,
    I created a contact page. I did the HTML form and I did the PHP code for processing the submission of the messages. Now, the problme is that whenever a messgae get submitted I recieve it without the content!! I really tried to figure out away to fix this but now luck so far.
    can anyone kindly help.

    here is the HTML file I created:

    <form action="contactprocess.php" method="post" cellspacing="2" cellpadding="10">
    <table width="600" border="0" align="center" >
    <tr>
    <td height="48" align="right">Nom : </td>
    <td align="left"><span id="sprytextfield1">
    <input name="name" type="text" size="30" id="name" class="input_text"/>
    <span class="textfieldRequiredMsg"></span></span></td>
    </tr>
    <tr>
    <td align="right">Courriel : </td>
    <td align="left"><span id="sprytextfield2">
    <input name="email" type="text" size="30" maxlength="30" id="email" class="input_text"/>
    <span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
    </tr>
    <tr>
    <td align="right" >Commentaires :</td>
    <td align="left"><span id="sprytextarea1">
    <textarea name="comment" id="comment" cols="40" rows="5" class="input_text_comment"></textarea>
    <span class="textareaRequiredMsg">required.</span></span> </label>
    </td>
    </tr>
    <tr>
    <td ></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td height="61" align="right"><input name="reset" type="reset" value="corriger" id="reset" class="button"/></td>
    <td align="left"><input name="submit" type="submit" value="soumettre" id="submit" class="button"/>


    </td>
    </tr>

    </table>

    </form>

    and here is the PHP code:

    <?php
    /*subject and email varibales*/

    $emailsubject = 'via Bo-sacs website';
    $webmaster = 'artweb99@gmail.com';

    /*gathering data variables*/

    $nameField = $_POST['name'];
    $emailField = $_POST['email'];
    $commentField = $_POST['comment'];



    $body = <<<EOD
    <br><hr><br>
    Name : $name <br>
    Email : $email <br>
    Comment : $comment<br>

    EOD;


    $headers = "From: $email\r\n";
    $headers = "Content-type: text/html\r\n";
    $success = mail($webmaster,$emailsubject,$body,$headers);



    /*Results randered as HTML */


    $theResults = <<<EOD


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

    <body>
    <p>Votre message a été envoyer, nous vous répondrons dans les plus bref délais

    </p>
    </body>
    </html>
    EOD;
    echo "$theResults";

    ?>



    One more thing , I was wondering how can I use UTF character for the letter e in French.


    Thank you

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Which letter "e"?
    In French there are three, and they all are different, indicating different pronunciations.
    There are:
    1. accent acute - é
    2. accent grave - [COLOR=rgb(0, 0, 0)]è[/COLOR]
    3. [COLOR=rgb(0, 0, 0)]circumflex [/COLOR][COLOR=rgb(0, 0, 0)]ê[/COLOR]

    IN your HTML code it would be as follows:
    1. [COLOR=rgb(0, 0, 0)]for accent acute it would be [/COLOR][COLOR=rgb(0, 0, 0)]&Eacute;[/COLOR][COLOR=rgb(0, 0, 0)] (uppercase) or [/COLOR][COLOR=rgb(0, 0, 0)]&eacute;l[/COLOR][COLOR=rgb(0, 0, 0)]owercase[/COLOR]
    2. [COLOR=rgb(0, 0, 0)]for accent grave it would be &Egrave; (uppercase) or &egrave; (lowercase)[/COLOR]
    3. [COLOR=rgb(0, 0, 0)]for circumflex it would be [/COLOR][COLOR=rgb(0, 0, 0)]&Ecirc; (uppercase) or [/COLOR][COLOR=rgb(0, 0, 0)]&ecirc; [/COLOR][COLOR=rgb(0, 0, 0)](lowercase)[/COLOR]

    The ampersand at the beginning and the semi-colon at the end are required - without them it will not work.

    There is a good reference here - if you are going to do a fair bit of work in French, you should bookmark it.
    artweb99 likes this.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    Junior Member
    Join Date
    May 2011
    Posts
    6
    Member #
    27980
    Thank you so much AlphaMare. I used it and it works perfectly.I have on more character and the same problem which is the © for copy right ?!please

  5. #4
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Quote Originally Posted by artweb99, post: 208123
    Thank you so much AlphaMare. I used it and it works perfectly.I have on more character and the same problem which is the © for copy right ?!please
    For that you'll want [COLOR=rgb(0, 0, 0)]&copy;[/COLOR]
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:38 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com