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 6880307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:57:26+00:00 2026-05-27T04:57:26+00:00

I am working on this school project and I am having trouble getting my

  • 0

I am working on this school project and I am having trouble getting my form to LOOK and FUNCTION properly.

This is my School Project

Issues/Question(s):
1) Can I even Use this PHP “inside” an HTML document?
(The Demo I am Trying to Follow)

This is my FORM ENTRY (IN AN HTML DOC) :

<div id="formWrap">
        <div id="form">
            <form action="contact.php" method="post" id="comments_form">
        <div class="row">
        <div class="label">Your Name</div>
        <div class="input">
            <input type="text" id="fullname" class="detail" name="fullname" value="<?php echo isset($_POST['fullname'])? $_POST['fullname'] : ''; ?>" />

            <?php if(in_array('fullname', $validation)): ?><span class="error"><?php echo $error_messages['fullname']; ?></span><?php endif; ?>

        </div> <!-- end input class -->
        <div class="context">e.g. John Smith or Jane Doe</div><!-- end context class -->
     </div><!-- end row class -->

     <div class="row">
        <div class="label">Your Email Address</div>
        <div class="input">
            <input type="text" id="email" class="detail" name="email" value="<?php echo isset($_POST['email'])? $_POST['email'] : ''; ?>" />

            <?php if(in_array('email', $validation)): ?><span class="error"><?php echo $error_messages['email']; ?></span><?php endif; ?>

        </div> <!-- end input class -->
        <div class="context">We will not share your email address with anyone.</div><!-- end context class -->
     </div><!-- end row class -->

     <div class="row">
        <div class="label">Tell Us All About It!</div>
        <div class="input">
            <textarea id="comment" name="comment" class="mess">
                <?php echo isset($_POST['comment'])? $_POST['comment'] : ''; ?>
            </textarea>

            <?php if(in_array('comment', $validation)): ?><span class="error"><?php echo $error_messages['comment']; ?></span><?php endif; ?>

        </div> <!-- end input class -->
     </div><!-- end row class -->

     <div class="submit">
        <input type="submit" id="submit" name="submit" value="Send Message" />
        </form>
        <?php else: ?>
            <p>Thank you for your Message!</p>
        <?php endif; ?>

     </div><!-- end submit class -->
     </div><!-- end form -->

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

     </div><!-- end form wrap -->
  • 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-05-27T04:57:26+00:00Added an answer on May 27, 2026 at 4:57 am

    PHP blocks (<?php ?>) must be processed by the PHP parser/interpreter. This means that the engine needs to know which files to read and which ones to ignore. If this file is named index.html the PHP interpreter will ignore it (by default, you can change this, but it’s not really an common or recommended thing to do).

    You can correctly put HTML inside of a PHP file (but outside of the <?php ?> blocks) but you cannot successfully put PHP inside of an HTML file.

    If your file is named index.html try renaming it index.php and see if your code works.

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

Sidebar

Related Questions

I'm working on my computing project for school, and I'm having trouble getting anything
I'm creating an RPN calculator for a school project and having trouble with the
I am working on a school project that uses ASP.NET. I found this TextEditor
My question is about a school project that I'm working on. It involves mapping
I'm working on a project for school, and faced this elementary problem (it's not
I apologize for this school-book question but I've been working on this SQL query
I'm working on a school project and I'm getting some weird errors from Xcode.
I'm working on a school assignment and I've been completely stumped with this step.
I'm currently working on a school project in Eclipse (We have just started using
I'm creating a registration form on my school project website. I have given a

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.