Forum Validation Help Please
I'm having some struggles with form validation. I dont have a problem sending the request and receiving the response, but I am having a problem making it either submit or dont submit based on the outcome.
I hope I am making sense. Thanks.
The very first line in your js kills the function
var user = document.getElementById('username2').value;
You have no username2 ID. But you have a username ID. Maybe a misprint?
BUT Biggest question is "Why come back from ajax_info.php to submit again to the server? Why not have ajax_info.php call fbauthorize.php? Or just include the code of fbauthorize.php into ajax_info.php and make the alert(xmlhttp.responseText) say Mission accomplished data stored.'"?
You're right about the username2. I admit I threw together the example based on everything I'd been doing and ultimately the username2 isnt the root of the problem I'm asking for help on. So yea, thanks for pointing that out, but we can ignore it for the moment.
The reason I cannot create the account on ajax_info.php is because that page isnt being directly access by the user, so the Adwords conversion tracking code that needs to go at time of creation would not register the conversion properly.
|All times are GMT +1. The time now is 09:58 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.