Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

php include htm file in a php echo statememt?

I would like to include a php include in  a block of code, and I am not sure how to do so.

echo '
        <div id = "bkg">
        <div class="content" style="width:800px;">
 <div class="main_register" style="width:590px;" >
I want to add the include file here. I have tried a few different ways but I can't get it to work
ed. <? include('header.htm'); ?>
        <form enctype="multipart/form-data" method="post">
                Maximum accepted filesize is '.(intval($maxsize/1024)).' KB.<br>
        You can upload only JPG and PNG pics<br><br>
        Photo Name:<br><input name="update_photo_title" type="text" size="20"><br>

...some form unputs...

1 Solution
Just break up your echo.

echo "start echoing stuff here before the include";
echo "continue echoeing the rest here";

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now