need Help With Contact form and newsletter

  • ndpm
  • Newbie
  • Newbie
  • ndpm
  • Posts: 5

Post 3+ Months Ago

Hi everybody,

I bought a mercury template #26894 and i just finish editing everything inside but i have the contact form and the newsletter subscription on stand by because i don't know how to enable both.
I don't know nothing about html am new with all these but before i bought the template the support guy told me it will be very easy.
If you can help me enable the contact form so i can receive the information to my email.
On html i see this code

HTML Code: [ Select ]
<h3>Contact Form </h3>
                 
                  <form id="ContactForm" action="" enctype="multipart/form-data">
                           <div><label><input type="text" onblur="if(this.value=='') this.value='Your Name:'" onfocus="if(this.value =='Your Name:' ) this.value=''" value="Your Name:"/></label>
                           <label><input type="text" onblur="if(this.value=='') this.value='Company:'" onfocus="if(this.value =='Company:' ) this.value=''" value="Company:"/></label>
                           <label><input type="text" onblur="if(this.value=='') this.value='E-mail:'" onfocus="if(this.value =='E-mail:' ) this.value=''" value="E-mail:"/></label>
                           <textarea onblur="if(this.value=='') this.value='Message:'" onfocus="if(this.value =='Message:' ) this.value=''" cols="25" rows="7">Message:</textarea>
                              <p class="btn fright">
                              <a onclick="document.getElementById('ContactForm').reset()" href="#">Reset</a>                           
                              <a onclick="document.getElementById('ContactForm').submit()" href="#">Submit</a>
                              </p></div>                 
                     </form>
  1. <h3>Contact Form </h3>
  2.                  
  3.                   <form id="ContactForm" action="" enctype="multipart/form-data">
  4.                            <div><label><input type="text" onblur="if(this.value=='') this.value='Your Name:'" onfocus="if(this.value =='Your Name:' ) this.value=''" value="Your Name:"/></label>
  5.                            <label><input type="text" onblur="if(this.value=='') this.value='Company:'" onfocus="if(this.value =='Company:' ) this.value=''" value="Company:"/></label>
  6.                            <label><input type="text" onblur="if(this.value=='') this.value='E-mail:'" onfocus="if(this.value =='E-mail:' ) this.value=''" value="E-mail:"/></label>
  7.                            <textarea onblur="if(this.value=='') this.value='Message:'" onfocus="if(this.value =='Message:' ) this.value=''" cols="25" rows="7">Message:</textarea>
  8.                               <p class="btn fright">
  9.                               <a onclick="document.getElementById('ContactForm').reset()" href="#">Reset</a>                           
  10.                               <a onclick="document.getElementById('ContactForm').submit()" href="#">Submit</a>
  11.                               </p></div>                 
  12.                      </form>



on the newsletter i see this

HTML Code: [ Select ]
   <div class="newsletter">
                     <h3>Newsletters</h3>
                  <form id="newsletter" action="" enctype="multipart/form-data">
                        <div>
                                    <input type="text" onblur="if(this.value=='') this.value='Enter your e-mail please'" onfocus="if(this.value =='Enter your e-mail please' ) this.value=''" value="Enter your e-mail please"/>
                                    <a href="#">go!</a>
                        </div>
                     </form>
  1.    <div class="newsletter">
  2.                      <h3>Newsletters</h3>
  3.                   <form id="newsletter" action="" enctype="multipart/form-data">
  4.                         <div>
  5.                                     <input type="text" onblur="if(this.value=='') this.value='Enter your e-mail please'" onfocus="if(this.value =='Enter your e-mail please' ) this.value=''" value="Enter your e-mail please"/>
  6.                                     <a href="#">go!</a>
  7.                         </div>
  8.                      </form>






Thanks for your help!
Moderator Remark: Added [code] tags
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

All you have to do is change the bit where it says action="" to action="mailto:youremail@yourisp.com" the problem is that you may get a lot of spam because robots look for emails in code and send spam to you. There are ways around this using JavaScript but thats getting complicated. I don't know how to do it because I get all my data sent to a database and not me I then view the database to get the info out thus removing the issue.
  • ndpm
  • Newbie
  • Newbie
  • ndpm
  • Posts: 5

Post 3+ Months Ago

I will try this later.
Thank you very much for your help.
  • ndpm
  • Newbie
  • Newbie
  • ndpm
  • Posts: 5

Post 3+ Months Ago

My friend help me and i find the way to fix this.
I set up a php page for each html.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 64 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.