1
<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 recover the value of the option in the click and play it in the $temaselecionado
to load the selected tab. Note that the variable is source iframe. If you can do this without PHP, also serves.
Someone to help me?
When you say "click" which item should be clicked? or do you mean selected, type
onchange
select?– Sergio
It is the select item that when being selected, clicked, I don’t know will load the value inside the iframe in src !!! I hope I answered the question I didn’t quite understand.
– Marcos Vinicius