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 Link to comment https://forums.phpfreaks.com/topic/160124-change-image-from-form-abit-stuck-please-help/ 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; Link to comment https://forums.phpfreaks.com/topic/160124-change-image-from-form-abit-stuck-please-help/#findComment-845100 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.