I am in need of help.

I have a website, which has a form to fill out (simple form, that calls a PHP function and some other JQuery libraries). It is made in an ordinary HTML file, and works well on my servers.

Now I have a new site made in WordPress. The site works great and everything, but the form does not. I do not have so much experience with WordPress to tell what is wrong. It does show, but it does not function properly. Can somebody please check it out? The biggest problem is the button, where you choose how to »pay«. It does actually redirect you, but it should happen twice, but it does not…

This is the site: http://www.zivimo.zdravo-zivljenje.org/naravno/

I just copied the code into the past of the site and of course I uploaded the required files to the server, so that it has all the files and functions that it needs.

This is my code: http://pastie.org/10798862

  • Please paste your code here.
    – Jevuska
    Apr 15, 2016 at 14:19
  • Is the PHP folder / file that your form is looking for in the root directory? I'm willing to bet once you put it in WordPress it can't locate the file properly - ensure you can access the file.
    – Howdy_McGee
    Apr 15, 2016 at 14:30
  • I put it inside of the root of the directory. Is there any way of checking if it does not find it? But i am quite certain, it does find it. The problem is somewhere else!
    – Chili
    Apr 15, 2016 at 14:34
  • Figure out a way to test if you can access the file. Either by include() or require() or something of the sort to ensure your form can access the file. Maybe enable debugging though I'm not sure it monitor expectedly in this scenario.
    – Howdy_McGee
    Apr 15, 2016 at 18:10
  • Did that. No errors of such
    – Chili
    Apr 15, 2016 at 19:49

1 Answer 1


So I finally found the solution to the problem. It was in the validate.js function. I corrected the error by calling the outside functions of validate.js and jquerry:

script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.4.4.min.js"

script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.7/jquery.validate.min.js"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.