Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    8
    Member #
    29326

    Contact form not working

    Hmmm... not sure if I am in quite the right spot here, but I don't normally have problems with hmtl and php forms. This one has an element of Java and perhaps this is where I've stuffed up. Would greatly appreciate any help I can get. You can view the page live at www.screwpilingqld.com.au/contacts.html

    The form looks OK, the php seems to be OK - but, no matter what address I attempt to direct the form to, it never seems to reach it's destination. Yet, the message on screen says the message has been sent.

    Can anyone help me spot what I'm missing, or have done wrong?

    Many thanks in advance
    Deb

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    First off, that's Javascript, not Java. Big difference between the two...Java is an absolute beast from what little I've done with it, and I don't mean that in a good way.

    As far as the reason that script isn't sending an email, quite frankly that looks overengineered for what it is that you ultimately want. Why not just have jQuery do the validation and submit the form using PHP? It'll be a whole lot easier to debug, and you won't have that monolithic forms.js mess to deal with.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Senior Member Webzarus's Avatar
    Join Date
    May 2011
    Location
    South Carolina Coast
    Posts
    3,322
    Member #
    27709
    Liked
    770 times
    Not seeing any form validation ( perhaps you're working on it ), but not seeing it unless its on the PHP side...

    does your host allow PHP sendmail() ? Not all of them do.. Some require you to use "their" script to send mail from their servers.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    It's in a Javascript include called js/forms.js. Took me a while to find it.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Junior Member
    Join Date
    Sep 2011
    Posts
    8
    Member #
    29326
    Thank you both for your replies - I'll try both!

  7. #6
    Junior Member
    Join Date
    Sep 2011
    Posts
    8
    Member #
    29326
    Thanks TheGAME - are you able to tell me what I am supposed to correct within that Javascript? I've opened the file but not sure where to look

    And I would assume that I also need to alter the line in the html file that currently reads -
    <form action="contact.php" method="post" form id="contact-form2">

    Sorry for the ignorance...

  8. #7
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Basically, I'd just disable any of the Javascript form validation. I think that's what's screwing you up. Take it right out...you don't need a script that bulky to verify four fields.

    If you must have Javascript form validation, add it in afterward manually.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  9. #8
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    Quote Originally Posted by TheGAME1264 View Post
    First off, that's Javascript, not Java. Big difference between the two...Java is an absolute beast from what little I've done with it, and I don't mean that in a good way.

    As far as the reason that script isn't sending an email, quite frankly that looks overengineered for what it is that you ultimately want. Why not just have jQuery do the validation and submit the form using PHP? It'll be a whole lot easier to debug, and you won't have that monolithic forms.js mess to deal with.
    Mind telling me why Java is so beastly? I've been thinking of getting another degree in programming after im done with web design and I want java to be my primary language because it can be applied to a whole lot more things then many other languages. I also LOVE their syntax .

  10. #9
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    SmartGWT GWT-Based Platform, Enterprise Edition | Isomorphic Software

    Play with that piece of steaming elephant turd sometime and all will become clear.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  11. #10
    Senior Member Andrew Yurlov's Avatar
    Join Date
    Apr 2011
    Location
    Portland, OR
    Posts
    1,306
    Member #
    27566
    Liked
    181 times
    Quote Originally Posted by TheGAME1264 View Post
    SmartGWT GWT-Based Platform, Enterprise Edition | Isomorphic Software

    Play with that piece of steaming elephant turd sometime and all will become clear.
    Well no one HAS to use that software... Just because it sucks doesnt mean java does. What i'm talking about is coding java from scratch with Eclipse.


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 12:34 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com