<html>
<head>
<title>txt with js eff</title>
</head>
<body>
<script type = "text/javascript">
function transfer(which) {
document.getElementById("temp_name").value = which;
}
</script>
<form action="" method="post" name="frm1">
<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>
Dear Folks:
I need to do this by using php:
I need to pass the value to "In put 2" from "In put 1" when the user focuses his cursor to next field. I can do it very easily with js but I need to this with PHP.
If have any solution for that please let me know.