title: PHP - Set value in HTML-Form
body: <p>I'm a PHP-Newbie and want to create a simple Website to manage my CD Collection. </p>
  
  <p><strong>I connect to a MySQL-Database and create for each table a PHP-Array.</strong> </p>
  
  <p>No i want to be able to edit my CDs within HTML-Forms and submit it back to the MySQL-Database.</p>
  
  <p><strong>For that i create a for-loop and put each array-varaible into an HTML-Form, so i can edit the text und via submit UPDATE my Database.</strong></p>
  
  <p><em>I know there is an answer for my question: <a href="https://stackoverflow.com/questions/3317730/putting-a-php-variable-in-a-html-form-value">stackoverflow Answer</a></em></p>
  
  <p>But this solution didn't work for me.</p>
  
  <p>One line:</p>
  
  <pre><code>echo "&lt;input name="Titel" type="text" size="30" value="&lt;?php echo $alben[$i]['Titel']; ?&gt;"&gt;";   
  </code></pre>
  
  <p>This line doesn't work, an i don't understand why.</p>
  
  <p>Can someone please help?</p>
  
  <p>EDIT:
  If i just say: </p>
  
  <pre><code>echo $alben[$i]['Titel'];   
  </code></pre>
  
  <p>This work. But with the HTML-Form i'm getting this error message: </p>
  
  <pre><code> syntax error, unexpected T_STRING, expecting ',' or ';'
  </code></pre>