Support » Fixing WordPress » .PHP File

  • I’ve a Contact .PHP file in the theme that I’m using, I’ve created the layout of the Contact Us via E-mail, but in this code, where do I put my e-mail address so the message will be sent to my e-mail inbox?

    <h1><?php echo __('E-mail Us', LANGUAGE_ZONE); ?></h1>
    <form method="post" action="<?php echo htmlspecialchars("http://".$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]); ?>" name="order_form" class="uniform ajax">
      <script>document.write('<'+'in'+'pu'+'t na'+'me="se'+'nd_'+'f" ty'+'pe="hi'+'dden'+'" id="se'+'nd_f" v'+'alu'+'e="'+'send_f" /'+'>');</script>
      <input type="hidden" name="send_contacts" value="1" />
      <div class="inp-r"><div class="i-h"><input name="name" type="text" placeholder="" class="validate[required] inp-c" /></div></div>
      <div class="inp-r"><div class="i-h"><input name="email" type="text" placeholder="" class="validate[required] inp-c" /></div></div>
      <p>Phone number</p>
      <div class="inp-r"><div class="i-h"><input name="phone" type="text" placeholder="" class="inp-c" /></div></div>
      <div class="inp-r"><div class="i-h"><input name="website" type="text" placeholder="" /></div></div>
      <div class="tex-r"><div class="t-h"><textarea name="message" placeholder="" class="validate[required] textar"></textarea></div></div>
      <a href="#" class="button" title="Add comment"><span><?php echo __('Send message', LANGUAGE_ZONE); ?><i class="submit"></i></span></a>
      <a href="#" class="do-clear"><?php echo __('', LANGUAGE_ZONE); ?></a>
    <?php if ($contact_text_only): ?>
    <?php endif; ?>
Viewing 1 replies (of 1 total)
  • My guess would be this line:
    <script>document.write('<'+'in'+'pu'+'t na'+'me="se'+'nd_'+'f" ty'+'pe="hi'+'dden'+'" id="se'+'nd_f" v'+'alu'+'e="'+'send_f" /'+'>');</script>

    I’d look around your theme’s files for any kind of documentation or README files or visit the theme’s support page if it has one for help in configuring it.

Viewing 1 replies (of 1 total)
  • The topic ‘.PHP File’ is closed to new replies.