paulman888888 Posted May 29, 2009 Share Posted May 29, 2009 hi; this works but i want to add a little to it but i am not good in javascript but am in PHP. Heres the code <input id="textinput" type="text" name="username" maxlength="30" value="'.$username.'" onkeyup="document.myImage.src=this.value"; /><img src="default.gif" name="myImage"> I want it to go to include.php?inc=image&value=THIS.VALUE but i can't because the whole think doesn't work. Please Help me add to this code so that when onkeyup the image changes to include.php?inc=image&value= then the value of the form. Thankyou Paul Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted May 29, 2009 Share Posted May 29, 2009 document.forms.formname.myImage.src = 'include.php?inc=image&value=' + this.value; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.