How do we add additional fields to the contact form??
excuse me for the late response, you’d open your template_contact.php and create a new input value.
First you’d need to create something like
$website = $_POST['website'];
but instead of website some other input name.
then add one of these
Website: $website <br /><br />
you’d add your new value .. so if you picked $apples in the previous step you’d put
Apples: $apples <br /><br />
to make it show up on your contact page you’d need to echo the actual input with the same name you picked before
<p><input name="website" class="text_input" type="text" id="website" size="20" value="<?php echo $website?>"/><label for="website">Website</label></p>
but again .. website would be apples.
Hope it helps
The topic ‘Contact Us Fields’ is closed to new replies.