que tal , no se si te servira de algo ...
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<script type="text/javascript">
function crear() {
document.getElementById('caja').innerHTML = ''+
'<input type="text"></input>';
}
</script>
<body>
<input name="crear input type='text' " type="button" value="crear input type='text" onclick="crear();"/>
<div id="caja"></div>
</body>
</html>
y lo puedes personalizar un poco ...
Código PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
</head>
<script type="text/javascript">
function crear(tipo,id,donde,valor) {
if(tipo == 1 ){
document.getElementById(donde).innerHTML = ''+
'<input type="text" id="'+id+'" value ="'+valor+'"></input>';
}
if(tipo == 2 ){
document.getElementById(donde).innerHTML = ''+
'<input type="checkbox" id="'+id+'" value ="'+valor+'"></input>';
}
}
</script>
<body>
<input name="crear input type='text' " type="button" value="crear input type='text" onclick="crear(1,'id_text','caja','nuevo input text');"/>
<input name="crear input type='checkbox' " type="button" value="crear input type='checkbox" onclick="crear(2,'id_checkbox','caja','nuevo input checkbox');"/>
<div id="caja"></div>
</body>
</html>
no se si sea tu caso , cualquier cosa comenta .