Php syntax echo error

45 views Asked by At

I am trying to get my form to show with queried results being displayed so that the end user can edit them. How can I write my form input value so it echo's the result versus the code?

############### PAGE HEADER ###############
     echo '<div id="header">
     <h1> <span id="logo"><img src="/images/twh_logo2.jpg" /></span><span 
     id="title"></span> </h1>
     </div>' . "\r";

    ############### UN-VERIFIED PICK TICKETS###############
     echo '<div id="full">
    <h1> 
     <div class="title">Edit Label Details</div>
    <div id="search" class="text">
    <div>
        <form method="post">
            ID:<br>
            <input type="text" name="id" value= $result[\'id\'];"><br>
        </form>
    </div>
    </div>
</h1>
</div>' . "\r";
  ?>
1

There are 1 answers

2
rickdenhaan On

Interrupt your string:

echo '<div id="full">
    ....
    <input type="text" name="id" value="' . $result['id'] . '"><br>
    ....
</div>';