<div class="escolher_temas">
<form action="iframe.php" method="GET">
<select name="escolhe_tema">
<option value="http://z05.axitech.com.br">Tema 1</option>
<option value="http://z06.axitech.com.br">Tema 2</option>
<option value="http://z07.axitech.com.br">Tema 3</option>
<option value="http://z08.axitech.com.br">Tema 4</option>
<option value="http://z09.axitech.com.br">Tema 5</option>
<option value="http://z10.axitech.com.br">Tema 5</option>
<option value="http://z11.axitech.com.br">Tema 5</option>
<option value="http://z12.axitech.com.br">Tema 5</option>
<option value="http://z13.axitech.com.br">Tema 5</option>
<option value="http://z14.axitech.com.br">Tema 5</option>
<option value="http://z15.axitech.com.br">Tema 5</option>
<option value="http://z16.axitech.com.br">Tema 5</option>
<option value="http://z17.axitech.com.br">Tema 5</option>
<option value="http://z18.axitech.com.br">Tema 5</option>
<option value="http://z19.axitech.com.br">Tema 5</option>
<option value="http://z20.axitech.com.br">Tema 5</option>
</select>
</form>
</div>
<iframe style="height: 587px;" class="full-screen-preview__frame" src="<?php echo $temaselecionado; ?>" name="preview-frame" noresize="noresize" frameborder="0">
</iframe>
I would like to retrieve the value of the option in the click and play it in $temaselecionado
to load the chosen page. Notice that the variable is the source of the iframe. If you can do this without PHP , that's fine too.
Someone to help me?