html - How can i display form data in echo php? -


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.

  1. you're using " in $_post["bust"] opened echo " well, causing conflict.
  2. 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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -