• 0

whats is wrong with my code?


Question

mental_boi

http://geocities.com/shydisturbedboy/problem.txt

i'm so tired of searching the error in my code... can anyone help me? it keeps in submitting the form and javascript has no effect on the page... it should display the errors on the <div id="msgToUser"></div> but when i added the php script at the upper part of the page, it didn' work anymore... pls help!!

Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
binime

firstly it must be a .php file...

secondly, your calling the php through the wrong way...

try and incorperate the php and js a different way, for example, parsing the PHP variables into JS variabels.

or

&lt;&lt;?php
echo "&lt;script language=\"javascript\"&gt;
function validateForm() {
errors = Array();
	errorType = Array();
	errors = errors.concat(\"{$errstr}\");
	errorType = errorType.concat(\"{$errType}\");
	hasErrors = false;
}";

just find an alternative :)

Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.