Hi guys,

I am using a following code.

I am using if condition but it is not working fine.

if(Request.responseText == "test")
{
  window.location.href="home.php";
}
else
{
document.getElementById("signup_result").innerHTML=Request.responseText;
}

I tried to alert the Request.responseText value it is "test" but condition is always false and control goes to else block.

can anybody help me what will be the problem.

please reply quick.

Take care.

A) USE CODE TAGS! This isn't your first post, that's not an excuse anymore.

B) Get firebug getfirebug.com and put console.log(Request.responseText); right before the if block

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.