I am trying to build a php contact form with a dropdown list of values, say "A", "B" and "C", that fits the code structure below.
As well, I would like to call this form from a link on another page, and have the value of the dropdown list automatically populated with the passed-in parameter. For example, if the link is "...?val=B", I'd like the dropdown list to automatically set to "B".
I have code below that works for an email field. What does the code look like for a dropdown list?
It's been a long while since I've coded PHP, so any help is appreciated.
<div class="input-field">
<div>
<?php _e('Email','circles'); echo ' <span>('; _e('required','circles'); echo ')</span>'; ?>
</div>
<div class='input-style dlight-grey sc-input'>
<input type="email" name="form_email" size="20" value="<?php echo $form_email; ?>" />
</div>
</div>