<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
</head>
<body>
<form method="post">
<div name="header">
<h1>Ejecutar Comando</h1>
</div>
<div name="contenido">
<select name="tbLocalidad">
<option value="tCristal" >Torre Cristal</option>
<option value="tSerrano" >Torre Serrano</option>
</select>
Mac address:<input type="text" name="tfMac" value="WOLO WOLO"/><br>
<button name="bAgregar" onclick="ejecutarComando(document.getElementById(t fMac).value)">Agregar</button>
<button name="bEliminar" onclick="document.write("Dodo")">Eliminar</button>
</div>
</form>
</body>
<?php
function ejecutarComando($directorio){
$comando = "mkdir ".$directorio;
exec($comando);
//Para ver el comando ejecutado
echo $comando;
}
?>
</html>
Gracias de ante mano.
![de acuerdo](http://static.forosdelweb.com/fdwtheme/images/smilies/dedosarriba.png)