title: Bash Shell Scripting - Dialog form variables
body: <p>So, I just took up Shell Scripting and I'm developing an address book.</p>
  
  <p>For the user to insert a contact I made this form:</p>
  
  <pre><code>form=$(dialog                                      \
      --title "INSERIR"                              \
      --form  ""                                     \
      0 0 0                                          \
      "Nome:"      1 1    "$nome"     1 10 20 0      \
      "Morada:"    2 1    "$morada"   2 10 20 0      \
      "Telefone:"  3 1    "$telefone"     3 10 20 0  \
      "E-Mail:"    4 1    "$mail"     4 10 20 0      \  
  2&gt;&amp;1 1&gt;&amp;3)
  </code></pre>
  
  <p>And I want to insert those values through a MySQL query. I saw somewhere that I had to use, for instance:</p>
  
  <pre><code>form[$1]
  </code></pre>
  
  <p>In order to access the variable $nome. However, it was a comment from 2008.
  What is the easiest way to access those variables?</p>
  
  <p>Thank you!</p>