Allora....vi illustro il problema: vorrei passare il valore di una variabile che ho all'interno di una funzione javascript ad una form html! Come faccio?
Di seguito trovate il codice che ho scritto ma che ovviamente non funziona!!!
In particolare questa riga di codice <input type="hidden" name = "marker" value=""showAddress(this.address.value); ""/> .... è giusta?? o altrimenti come faccio??


pagina.php

function showAddress(address) {
....
....
return marker;
}

<form action="prova.php" method="post" >
<input type="text" size="60" name="address"/>
<input type="hidden" name = "marker" value=""showAddress(this.address.value); ""/>
<input type="submit" value="Go!" />
</form>

prova.php
<?php
$marker = $_POST['marker'];
echo $marker;
?>