Can anyone help me with this. I am creating a contact form in php. My client wants to have an option where, if the customer selects 'less than 3 yrs' it brings up another box below than they can input their previous address.
HTML Code:
<label>* Time At Address: <?php form_error('Time_At_Address');?></label>
<select name="Time_At_Address_YRS" class="dropdown2">
<option selected="selected" value="">Please select...</option>
<option value="less than 3yrs">less than 3yrs</option>
<option value="4yrs">4yrs</option>
<option value="5yrs">5yrs</option>
<option value="6yrs">6yrs</option>
<option value="7yrs">7yrs</option>
<option value="8yrs">8yrs</option>
<option value="9yrs">9yrs</option>
<option value="10yrs">10yrs</option>
<option value="11yrs">11yrs</option>
</select>
This is the box that I want to appear if the customer selects 'less than 3yrs'
HTML Code:
<label>* Previous Address: <?php form_error('Previous_Address');?></label>
<input name="Previous_Address" type="text" class="input" />
<label>* Previous Post Code: <?php form_error('Previous_Post_Code');?></label>
<input name="Previous_Post_Code" type="text" class="input" />
Learn Video Marketing