Same named variables but in different if statements?
<p>Is this bad practice?</p>

<pre><code>if($_POST['formvalue'] == '1') {
$sql = "INSERT INTO accounts (username) VALUES ('$username')";
mysql_query($sql);}

elseif($_POST['formvalue'] != '1') {
$sql = "INSERT INTO accounts (email) VALUES ('$email')";
mysql_query($sql);}
</code></pre>

<p>Notice how I have used the same name variable? Does it matter and is it bad practice when dealing with elseif statements?</p>
