title: Insert data in HTML from php
body: <p>I trying to put user data from <code>PHP</code> in <code>HTML</code> form, like name, email, address, etc. But i don't know what i have to do to work it.</p>
  <p>Already tried:</p>
  <pre><code>&lt;?php
  
    session_start();
    $test='some name';
    $_SESSION['name']='some name';
  
  ?&gt;
  
  &lt;a href=&quot;&lt;?php $_SESSION['name']; ?&gt;&quot;&gt;&lt;/a&gt;
  
  &lt;!-- AND --&gt;
  
  &lt;a href=&quot;&lt;?php $test; ?&gt;&quot;&gt;&lt;/a&gt;
  </code></pre>
  <p>and nothing happened.</p>
  <p><strong>SOLVED CODE</strong>:</p>
  <pre><code>&lt;?php
  
    session_start();
    $test='some name';
  
  ?&gt;
  
  &lt;a&gt;&lt;?= $test ?&gt;&lt;/a&gt;
  
  </code></pre>