<label> In put 1 </label><input type="text" name="username" id = "username" onkeyup = "transfer(this.value)"><br><br />
<label> In put 2 </label><input type="text" name="temp_name" id = "temp_name">
</form>
</body>
</html>
try this code and you can see what is happening to "Input 2" while typing on "In put 1" I need to handle it by php...!
can you help me....?
If can Im so appreciate...
nothing happens with PHP until you do a submit.
JS is what you want for "real time" effects.
Once the page is rendered, PHP has already done what it is going to do.
Perhaps you want to echo the results back after submit?
I'm not clear as to what you are trying to accomplish.
Do you mean autofilling or autofiling (files)?? I assume you mean the former. You're transferring the contents of the first input box to the next 'as you type', correct? Code seems fine and dandy to me. Why on earth do you need pHp? You can't use pHp to do anything that js can't in this situation. If you're thinking of using Ajax - nope - js again. You're stuck with JS. Rule of thumb - if you want the PAGE to react to the user's actions - it's JS (or Ajax).
As mentioned, php is done, through, finito, caput, once it's sent to the client - the client just accepts html - it is not aware that it was produced by php. Well, pretty much anyway.
I received your pm and as ardav explained, php does not really have any involvement in this situation. Also I tested your script and it works like it should. So what is your script not doing as it does exactly what you describe you want it to do?
Im so appreciate and happy about your kindly replies... OK I need to pass "In put 1" value to "In put 2".. if u have any suggestions or code to do this plz make a note....
Thank you...
Umanda
Last edited by umandajayo; Feb 4th, 2010 at 11:06 pm.
Do you mean autofilling or autofiling (files)?? I assume you mean the former. You're transferring the contents of the first input box to the next 'as you type', correct? Code seems fine and dandy to me. Why on earth do you need pHp? You can't use pHp to do anything that js can't in this situation. If you're thinking of using Ajax - nope - js again. You're stuck with JS. Rule of thumb - if you want the PAGE to react to the user's actions - it's JS (or Ajax).
As mentioned, php is done, through, finito, caput, once it's sent to the client - the client just accepts html - it is not aware that it was produced by php. Well, pretty much anyway.
You are correct..! I need transferring the contents of the first input box to the next when I Focus my curser to next input box(input box 2).. I need to do it by using pHp..if u have any sugection o code plz let me to know
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.