Chiavicchi andrea ha consigliato:
codice:
function inizio() { var testo = document.getElementById("risultato").value; var cod = '<?php ' + testo; document.getElementById("risultato").value = cod; } function variabile(nome,valore) { nome = document.getElementById("nomevar").value; valore = document.getElementById("valorevar").value; testo = document.getElementById("risultato").value; document.getElementById("risultato").value = testo + '$' + nome + '="' + valore + '";'; }
ma non funziona neanche così...