1 Reply Latest reply on Jun 13, 2013 4:27 AM by jpbond13

    how to change the text in sth DIV use PHP

    pham van khang

      <div id="Stage_mysite_1_1_UserName" style="position: absolute; margin: 0px; left: -42px; top: -130px; width: 95px; height: 13px; right: auto; bottom: auto; border: 0px none rgb(0, 0, 0); background-color: rgba(192, 192, 192, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);" class="Stage_mysite_1_1_UserName_id"> USER NAME </div>

       

      in PHP file

      i want change "USER NAME" to print($username) but i dont know

      thanks!

        • 1. Re: how to change the text in sth DIV use PHP
          jpbond13 Level 1

          try this :

          <div id="Stage_mysite_1_1_<?php echo $username; ?>" style="position: absolute; margin: 0px; left: -42px; top: -130px; width: 95px; height: 13px; right: auto; bottom: auto; border: 0px none rgb(0, 0, 0); background-color: rgba(192, 192, 192, 0); -webkit-tap-highlight-color: rgba(0, 0, 0, 0);" class="Stage_mysite_1_1_<?php echo $username; ?>_id"> <?php echo $username; ?> </div>