File 1
codice HTML:
function do_print() {
var vform = document.forms['form'];
if (check_fields()) {
vform.target = '_blank';
vform.action = '{#url_path#}/tcpdf/stampa_pdf.php?nome='+$("#nome").val()';
vform.submit();
}
}
<form id="form" name="form" action="{#url_path#}/{$action}" method="POST">
<input id="nome" name="nome" type="text" class="inputText pv_padding" style="width:450px;" />
</form>
File 2
codice HTML:
<form id="form2" name="form2" action="{#url_path#}/{$action}" method="POST">
<input id="luogo" name="luogo" type="text" class="inputText pv_padding" style="width:450px;" />
</form>
Devo recuperare il campo "luogo" dal form del file 2 per poi inserirlo nel vform.action del file 1