php include htm file in a php echo statememt?

Posted on 2007-07-19
Last Modified: 2010-07-27
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...

Question by:derekstattin
    1 Comment
    LVL 17

    Accepted Solution

    Just break up your echo.

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

    Featured Post

    Easy Project Management (No User Manual Required)

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now