php - Getting a syntax error on a comment? Or am I missing something obvious? -


i writing report form weird syntax error.

here code:

<h2>report <u><?php echo $title; ?></u> machine program error</h2> <p><span class="error">* required field.</span></p> <form action="send_form_email.php?email=yes">     job number: <input type="text" name="jobid" value="<?php print ($jobid) ?>">    <!--<span class="error">* <?phpecho $nameerr;?></span>-->    <br><br>    part number: <input type="text" name="partid" value="<?php print ($part_id) ?>">    <!--<span class="error">* <?phpecho $emailerr;?></span>-->    <br><br>    machine: <input type="text" name="mach" value="<?php print ($machcode) ?>">    <!--<span class="error">* <?phpecho $macherr;?></span>-->    <br><br>    note: <textarea name="comment" rows="5" cols="40" placeholder="more detail... (is there way recreate error?)"><?php echo $comment;?></textarea>    <br><br>    <input type="submit" name="submit" value="submit">  </form> 

lines comments; <!--<span class="error">* <?phpecho $nameerr;?></span>-->, <!--<span class="error">* <?phpecho $emailerr;?></span>-->, , <!--<span class="error">* <?phpecho $macherr;?></span>--> pulling syntax errors.

am missing obvious or there , error dreamweaver cs5? if 1 of 2 true, how fix it?

thanks in advance.

html comments have no effect on php. have syntax error

try this:

<h2>report <u><?php echo $title; ?></u> machine program error</h2> <p><span class="error">* required field.</span></p> <form action="send_form_email.php?email=yes">     job number: <input type="text" name="jobid" value="<?php print ($jobid) ?>">    <!--<span class="error">* <?php //echo $nameerr;?></span>-->    <br><br>    part number: <input type="text" name="partid" value="<?php print ($part_id) ?>">    <!--<span class="error">* <?php //echo $emailerr;?></span>-->    <br><br>    machine: <input type="text" name="mach" value="<?php print ($machcode) ?>">    <!--<span class="error">* <?php //echo $macherr;?></span>-->    <br><br>    note: <textarea name="comment" rows="5" cols="40" placeholder="more detail... (is there way recreate error?)"><?php echo $comment;?></textarea>    <br><br>    <input type="submit" name="submit" value="submit">  </form> 

Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -