SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: javascript contact forms

  1. #1
    SitePoint Member
    Join Date
    Jul 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript contact forms

    I really need your guys help as i have built a website and have added two contact Now the contact duplicated the forms . and i''ve reupdate all files especially sendmail.js and contact.js . that I cannot get to send to an email when you click send. And I have run out off ideas on what to do.

    So if anyone has got a solution of fixing it or better way of inputting a contact form pleeessssee giv me a shout

    it is currently at:

    www.sreeji.net

    Please help!

  2. #2
    Non-Member
    Join Date
    Jul 2012
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Sreeji1980 View Post
    So if anyone has got a solution of fixing it or better way of inputting a contact form pleeessssee giv me a shout
    If this is for a real world website then you shouldn't be using javascript to send emails because it won't work in all browsers. What id your plan B for users with js disabled or not even available.

    If you want it to work 100% of the time for all users, you should be doing this server and not client side.

  3. #3
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,926
    Mentioned
    216 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by tunnil View Post
    If this is for a real world website then you shouldn't be using javascript to send emails because it won't work in all browsers ... you should be doing this server and not client side.
    +1 to that. JavaScript is not the right tool for processing contact forms. (JS can provide nice enhancements, but that's all.) There are lots of PHP scripts out there that are readymade for this.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •