<!-- Contact Form -->
<form method="post" action="<?php echo get_permalink($post->ID); ?>" class="main_form">
<p><label for="your_name"><?php _e('Your Name/Company Name', APP_TD); ?> <span title="required">*</span></label> <input type="text" class="text" name="your_name" id="your_name" value="<?php if (isset($posted['your_name'])) echo $posted['your_name']; ?>" /></p>
<p><label for="email"><?php _e('Your email', APP_TD); ?> <span title="required">*</span></label> <input type="text" class="text" name="email" id="email" value="<?php if (isset($posted['email'])) echo $posted['email']; ?>" /></p>
<p><label for="message"><?php _e('Message', APP_TD); ?> <span title="required">*</span></label> <textarea name="message" id="message" cols="60" rows="8"><?php if (isset($posted['message'])) echo $posted['message']; ?></textarea></p>
<p class="button"><input type="submit" name="submit-form" class="submit" id="submit-form" value="<?php _e('Submit', APP_TD); ?>" /><input type="text" name="honeypot" value="" style="position: absolute; left: -999em;" title="" /></p>
</form>
<!-- Contact Form -->
<form method="post" action="<?php echo get_permalink($post->ID); ?>" class="main_form">
<p><label for="your_name"><?php _e('Your Name/Company Name', APP_TD); ?> <span title="required">*</span></label> <input type="text" class="text" name="your_name" id="your_name" value="<?php if (isset($posted['your_name'])) echo $posted['your_name']; ?>" /></p>
<p><label for="email"><?php _e('Your email', APP_TD); ?> <span title="required">*</span></label> <input type="text" class="text" name="email" id="email" value="<?php if (isset($posted['email'])) echo $posted['email']; ?>" /></p>
<?php /* === msg_type options inserted 20130121 by XXX === */ ?>
<p><label for="msg_type"><?php _e('Type of Message', APP_TD); ?><span title="required">*</span></label>
<select name="msg_type">
<option value="1_tech_issue"><?php _e('Technical Issue', APP_TD); ?></option>
<option value="2_bug_report"><?php _e('Bug Report', APP_TD); ?></option>
<option value="3_content"><?php _e('Problematic content', APP_TD); ?></option>
<option selected value="4_other"><?php _e('Other', APP_TD); ?></option>
</select></p>
<p><label for="message"><?php _e('Message', APP_TD); ?> <span title="required">*</span></label> <textarea name="message" id="message" cols="60" rows="8"><?php if (isset($posted['message'])) echo $posted['message']; ?></textarea></p>
<p class="button"><input type="submit" name="submit-form" class="submit" id="submit-form" value="<?php _e('Submit', APP_TD); ?>" /><input type="text" name="honeypot" value="" style="position: absolute; left: -999em;" title="" /></p>
</form>
// Get post data
$posted = array();
$posted['your_name'] = $_POST['your_name'];
$posted['email'] = $_POST['email'];
$posted['message'] = $_POST['message'];
$posted['spam-trap'] = $_POST['honeypot'];
$loc_keys = array(
'your_name' => __( 'Name', APP_TD ),
'email' => __( 'Email', APP_TD ),
'message' => __( 'Message', APP_TD ),
'spam-trap' => __( 'Spam-Trap', APP_TD ),
);
// Get post data
$posted = array();
$posted['your_name'] = $_POST['your_name'];
$posted['email'] = $_POST['email'];
$posted['msg_type'] = $_POST['msg_type']; //inserted msg_type 20130121 by XXX
$posted['message'] = $_POST['message'];
$posted['spam-trap'] = $_POST['honeypot'];
$loc_keys = array(
'your_name' => __( 'Name', APP_TD ),
'email' => __( 'Email', APP_TD ),
'msg_type' => __('Message Type', APP_TD), //inserted msg_type 20130121 by XXX
'message' => __( 'Message', APP_TD ),
'spam-trap' => __( 'Spam-Trap', APP_TD ),
);
$required = array('your_name', 'email', 'message'); //inserted msg_type 20130121 by XXX
$required = array('your_name', 'email', 'message', 'msg_type'); //inserted msg_type 20130121 by XXX
There are currently 1 users browsing this thread. (0 members and 1 guests)