Código:
<?php
switch($opcion){
case 1:
echo'Estas en el registro';
break;
case 2:
echo'as entrado en el ingresar';
break;
default:
?>
<form action="user.php?opcion=2" method="post" name="registro">
<table width="30%" border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td>Usuario:</td>
<td><input name="textfield" type="text" class="formtexto" /></td>
<td><a href="user.php?opcion=1">Registrar</a></td>
</tr>
<tr>
<td>Contraseña</td>
<td><input name="textfield2" type="password" class="formtexto" /></td>
<td><input name="Submit" type="submit" class="formbutton" value="Ingresar" /></td>
</tr>
</table>
</form>
<?php
}
?>