okay so ive got a form.. now i want the user to type the username in the form and click send email.. so they do but i want a php file in the background doing some checks because say the username is correct then i want a div to slide down at the top of the page saying Email Sent. if the username is incorrect then i want it to say Incorrect Username. just like that i no its jQuery but ive been thinking abot it all nite and cant think how i would go about it.
thanks
form submit
form submit
I would put a signature.. BUT, i don't have the time.
Re: form submit
You can use onblur, which is when the user focuses on something else, like the next input box
Also, there is a better way then using username_input.onload that is more standard compliant, but I have forgotten it and my local server where all my code is, is not plugged in yet.
var username_input = document.getElementById('username_input'); username_input.onload = function(){ // do AJAX check }And for how to do the AJAX check, look here
Also, there is a better way then using username_input.onload that is more standard compliant, but I have forgotten it and my local server where all my code is, is not plugged in yet.
Re: form submit
jacek wrote:You can use onblur, which is when the user focuses on something else, like the next input box
var username_input = document.getElementById('username_input'); username_input.onload = function(){ // do AJAX check }And for how to do the AJAX check, look here
Also, there is a better way then using username_input.onload that is more standard compliant, but I have forgotten it and my local server where all my code is, is not plugged in yet.
i dont get this at all.. why cant it just be where a php file loaded in the back does the check
I would put a signature.. BUT, i don't have the time.