CReating a template to load content in an iframe on the same page - I have not even got as far as using ajax to avoid reloading the whole page as the form submit is not working. The submit button returns an empty URL with no query string:( Any thoughts
<?php
/*
Template Name: Options Page
*/
get_header();
?>
<?php
$options= $_GET['options']? $_GET['options'] : "option1";
$options = ucfirst($options);
?>
<section class="post-meta fix post-nothumb media"><section class="bd post-header fix" ><section class="bd post-title-section fix"><hgroup class="post-title fix">
<h1 class="entry-title pagetitle"><?php echo $options; ?></h1>
</hgroup></section></section></section>
<form id="oselector" method="GET" action="<?php the_permalink(); ?>">
<select name="options">
<option <?php if ($_GET['options'] == 0) { ?>selected="true" <?php }; ?> value="0">Select Option</option>
<option <?php if ($_GET['options'] == "option1") { ?>selected="true" <?php }; ?> value="option1">Option 1</option>
<option <?php if ($_GET['options'] == "option2") { ?>selected="true" <?php }; ?> value="option2">Option 2</option>
</select>
<input type="submit" value="Submit">
</form>
</div></div></div></div></div></div>
<iframe id="theme" src="http://www.example.com/<?php echo $options; ?>/" seamless style="border-radius: 7px; border: 1px solid rgb(218,218,219);margin: 0 auto;width: 95%; height: 100%; overflow-x: auto; min-height:800px" >
<p>Your browser does not support iframes.</p>
</iframe>
<?php
get_footer();