new to php question - changing form field types
Posted: Thu Oct 13, 2011 4:59 pm
I'm implementing a WP Theme and need to customize one of the form fields. I've got a little background with forms but NOT when they're embedded in PHP code.
I need to change a form field from a "drop-down list selection box" to a "text-area" field. ie; Instead of someone making a SELECTION they will enter text into a text area field.
Below is the php code:
Hopefully -- this is a simple change..??... if someone could point me to what I need to change...
Many thanks...
I need to change a form field from a "drop-down list selection box" to a "text-area" field. ie; Instead of someone making a SELECTION they will enter text into a text area field.
Below is the php code:
Code: Select all
<tr>
<?php if (!empty($color3)){
echo '<td><input type="hidden" name="on3" value="'.mkt_THEME_SINGLE_LABEL_COLOR3.'"/>'.mkt_THEME_SINGLE_LABEL_COLOR3.':</td>
<td><select id="os3" name="os3" class="field">';
for($i=0; $i<count($colorlist3); $i++){
echo "<option value='$colorlist3[$i]'>$colorlist3[$i]</option>";
}
echo '</select></td>';
} ?>
</tr>Many thanks...