I know this one is easy but I think my hang up is in not knowing what is suppose to go where...
I have a grid of products on a site, each feature a button that is a url to a form. The URL is something like page.html?opt=2
opt being the number of the product or option that they selected..
On the Form I want a dropdown to be already selected based on the product they chose.
I tried this html/PHP combo but no go.. The php was still in the rendered code.
<select name=“SelectedPackage” class="select-opt">
<option value="">Select an option...</option>
<option value="proHost" <?php if ($_GET["opt"] == 1) { echo " selected"; } ?>>Package 1</option>
<option value="proHost" <?php if ($_GET["opt"] == 2) { echo " selected"; } ?>>Package 2</option>
</select>
My guess is that I need to create a snippet and put all of this in there but I'm not 100% the best way.
Thanks for your assistance and guidance.