hi guys,
i am 100% php newb, so please be patience with me
this code was used to get contact info and submit it via email …
i added “number” field, and the field shows up under the webpage, but for some reason it does not show up when user actually type in the digits and submits the form
any advise?
thanks in advance!!!
[php]<?php
/*
Template Name: Contact
*/
?>
<?php the_title(); ?>
-
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
-
<?php if(isset($emailSent) && $emailSent == true) { ?>
<?php _e('Thanks, your request was sent successfully.','colorway'); ?>
<?php _e('Sorry, an error occured.','colorway'); ?>
<?php } ?>
- <?php _e('Name:','colorway'); ?> <?php if($nameError != '') { ?> <?php echo $nameError;?> <?php } ?>
- <?php _e('Email:','colorway'); ?> <?php if($emailError != '') { ?> <?php echo $emailError;?> <?php } ?>
- <?php _e('Phone Number:','colorway'); ?> <?php if($numberError != '') { ?> <?php echo $numberError;?> <?php } ?>
<?php if($commentError != '') { ?> <?php echo $commentError;?> <?php } ?><li> <label for="commentsText"><?php _e('Please provide day, time, type of service desired:','colorway'); ?></label> <textarea name="comments" id="commentsText" rows="20" cols="30" class="required requiredField"><?php if(isset($_POST['comments'])) { if(function_exists('stripslashes')) { echo stripslashes($_POST['comments']); } else { echo $_POST['comments']; } } ?>
</div>
<div class="social_logo"> <a title="Tweet this!" href="http://twitter.com/home/?status=<?php the_title(); ?> : <?php the_permalink(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/twitter-share.png" alt="twitter" title="twitter"/></a> <a title="Share on StumbleUpon!" href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/stumbleupon.png" alt="upon" title="upon"/></a> <a title="Share on Facebook" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&amp;t=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/facebook-share.png" alt="facebook" title="facebook"/></a> <a title="Digg This!" href="http://digg.com/submit?phase=2&amp;url=<?php the_permalink(); ?>&amp;title=<?php the_title(); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/digg-share.png" alt="digg" title="digg"/></a> </div>
<div class="clear"></div>
</div>
OpzMaster: Surrounded the code in PHP format for better debugging!