html - How can i display form data in echo php? -
this question has answer here:
how can display form data in echo php ?
my code is:
<?php echo "<td align='center' style='vertical-align:middle;'> bust: <?php echo $_post["bust"]; ?> <br> waist: <?php echo $_post["waist"]; ?> <br> </td>"; ?>
but doesn't work, please guide me correct steps.
there lot of problems code.
- you're using
"
in$_post["bust"]
openedecho
"
well, causing conflict. - you're using
<?php
instead echo... php. there's no need this.
it best isolate variable printing code. use string concatenation .
such:
echo "<td align='center' style='vertical-align:middle;'> bust: ".$_post["bust"]."<br> waist: ".$_post["waist"]."<br> </td>";
Comments
Post a Comment