Link to home
Start Free TrialLog in
Avatar of Kasonde Neddy
Kasonde Neddy

asked on

Trouble with online calculator after converting site to wordpress

Hi experts,

Converted a site to wordpress, and had an online calculator that heavily used Javascript/Jquery, once converted to Wordpress, some values are missing from the calculator.  Don't know why???  Lost..and baffled.  please try to use the calculator at the following link:

http://www.madisonassets.co.zm/education-calculator/

Select country and enter some details and click calculate...notice the missing values? Can you help me resolve this to see and know why the values are missing? but outside wordpress it is working fine.
Avatar of Member_2_732957
Member_2_732957
Flag of France image

Hi kasondeneddy,

Could you please provide us with a link to a working version outside Wordpress?
Avatar of Kasonde Neddy
Kasonde Neddy

ASKER

Hi media-tips,

I have just activated a link with the working version, below:

http://www.easywebzambia.com/mamco/education_calculator.php
Checking your scripts I found out that they're not identical.

In the working script you have:
<form id="ecalc" method="get" action="education_calculator.php">
	:
<div class="caption">
	:
<form id="ecalc" method="get" action="/mamco/education_calculator.php">

Open in new window


In the non-working script you have:  
<form id="ecalc" method="get" action="http://www.madisonassets.co.zm/education-calculator/">
	:
<div class="caption">
	:
<form id="ecalc" method="get" action="#">

Open in new window


and also the folowing error when you populate the departments list:  
<select id="departments" name="departments">

Warning:  mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/content/n/e/d/neddynedson/html/easyweb/mamco/education_calculator.php on line 366

Warning:  mysql_query() [function.mysql-query]: A link to the server could not be established in /home/content/n/e/d/neddynedson/html/easyweb/mamco/education_calculator.php on line 366

Warning:  mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/n/e/d/neddynedson/html/easyweb/mamco/education_calculator.php on line 367
No departments selected!
</select>

Open in new window


So, I suggest that you first fix the points below, and then we'll investigate further.
I had changed it because of wordpress URLS..

<form id="ecalc" method="get" action="education_calculator.php">


I do not have education_calculator,php inside my wordpress page and therefore had to change it, I ll look into the other mysql error.

I had a felling that is were the problem is, the "action", in wordpress my is generates using permalink strucutre which i am sure affects things.

ASKER CERTIFIED SOLUTION
Avatar of Member_2_732957
Member_2_732957
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, sorry for closing late, had a bit of a backlog on other work!  Solutions worked fine with a bit of tweaaking!