how to put php code in php code

i tried this code but i get an error i tried above code but i get error when i compile this code.i stuck in this code please give me some tip to get rid from this i want to insert value of input field through the php code bit i cannot write php code in php

 <?php echo '<input class="text" type="text" id="txtLogin" name="txtLogin" value="echo $records[0]->Project_id">'?>;

i tried above code but i get error when i compile this code.i stuck in this code please give me some tip to get rid from this i want to insert value of input field through the php code bit i cannot write php code in php