PHP - Adding text values of multiple text box values to databases
<p>Basically I want to add the following information to a single database field, (The txt-via-hn textboxes are house numbers, the txt-via are address details)</p>

<pre><code>$vias =         $_POST['txt-via-hn2'].' '.$_POST['txt-via2'] 
        .' -&gt; '.$_POST['txt-via-hn3'].' '.$_POST['txt-via3']
        .' -&gt; '.$_POST['txt-via-hn4'].' '.$_POST['txt-via4']
        .' -&gt; '.$_POST['txt-via-hn5'].' '.$_POST['txt-via5']
        .' -&gt; '.$_POST['txt-via-hn6'].' '.$_POST['txt-via6']
        .' -&gt; '.$_POST['txt-via-hn7'].' '.$_POST['txt-via7']
        .' -&gt; '.$_POST['txt-via-hn8'].' '.$_POST['txt-via8']
        .' -&gt; '.$_POST['txt-via-hn9'].' '.$_POST['txt-via9']
        .' -&gt; '.$_POST['txt-via-hn10'].' '.$_POST['txt-via10'];
</code></pre>

<p>At the moment, for example, if I were to enter two vias the following would be added to the database field:</p>

<p><code>HOUSENUMBER ADDRESS -&gt; HOUSENUMBER ADDRESS -&gt;   -&gt;   -&gt;   -&gt;   -&gt;   -&gt;   -&gt;</code></p>

<p>What I want to happen is if the text box value is empty, to not include the empty spaces at the end. So if I was to enter just two vias, only the following would be added:</p>

<p><code>HOUSENUMBER ADDRESS -&gt; HOUSENUMBER ADDRESS</code></p>

<p>Is this possible?</p>
