Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8617949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:59:32+00:00 2026-06-12T05:59:32+00:00

Need help in understanding why the textarea (message below) field in the HTML5 form

  • 0

Need help in understanding why the textarea (“message” below) field in the HTML5 form is not being grabbed from the PHP code (used to create email).

HTML Code (French):

            <form method="post" action="contact.php">
                <fieldset>

                        <p class="tight" style="font-size: 10pt; text-align: center;" >Message pour des demandes de renseignements d&apos;ordre <br /> g&eacute;n&eacute;ral seulement. Veuillez utiliser demande formulaire situ&eacute; <br /> sur la page Service pour commencer.</p>

                        <label><span>Nom</span>
                        <input class="inputcontact" name="name" type="text" /></label>
                        <label><span>Courrier <br />&Eacute;lectronique</span>
                        <input class="inputcontact" name="email" type="text" /></label>
                        <label><span>T&eacute;l&eacute;phone</span>
                        <input class="inputcontact" name="telephone" type="text" /></label><br />
                        <label class="labelleft" for="message"> MESSAGE
                        <textarea name="message" rows="8" cols="45"> </textarea></label>

                </fieldset>
                <input class="submit" type="submit" value="ENVOYER" />
</form>

PHP Code (contact.php):

    <?php
/* Set e-mail recipient */
$myemail  = "xxxxxx@gmail.com";

/* Check all form inputs using check_input function */
$yourname = check_input($_POST['name']);
$email    = check_input($_POST['email']);
$telephone  = check_input($_POST['telephone']);
$messaage  = check_input($_POST["message"]);


/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
{
    show_error("E-mail address not valid");
}

/* Let's prepare the message for the e-mail */
$subject ="Comment received from website";
$content = "Hello!

The contact form from the website has been submitted by:

Name: $yourname
E-mail: $email
Telephone: $telephone
Message:$message

";

/* Send the message using mail() function */
mail($myemail, $subject, $content);

/* Redirect visitor to the thank you page */
header('Location: thanks.html');
exit();

/* Functions we used */
function check_input($data, $problem='')
{
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    if ($problem && strlen($data) == 0)
    {
        show_error($problem);
    }
    return $data;
}

function show_error($myError)
{
?>
    <html>
    <body>

    <b>Please correct the following error:</b><br />
    <?php echo $myError; ?>

    </body>
    </html>
<?php
exit();
}
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:59:34+00:00Added an answer on June 12, 2026 at 5:59 am
    $messaage  = check_input($_POST["message"]);
    
    Message:$message.
    

    is it ok or misspelling?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some help understanding what's happening here. This code is from a models/log.py
I need help understanding how to implement this part of PHP code in Ruby.
Kind of need help understanding what this code actually outputs. Does it out put
I need some help understanding this bit of code pre { white-space: pre; white-space:
I need some help understanding some of the points from Paul Graham’s What Made
I need help understanding this type signature which is from the Thrist package. import
Need help with understanding the following sentence from PEP 227 and the Python Language
I need help in understanding how to code a pretty printer for any given
I need help understanding whats going on in the function, especially the return statements.
I need help understanding how to manage the API for an iPhone application that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.