Hi...
Ok, i got your problem. Since you would have put action in your form tag as register.php, so this is bound to go to the register.php page. Instead you can do one thing:
Set the results/error messages in the SESSIONS variable. Now call index.html page and on body onload event, call another page through ajax that reads the session messages and displays them.
Check out if this helps.
Reputation Points: 11
Solved Threads: 12
Junior Poster in Training
Offline 94 posts
since Dec 2008