Jump to content

Change image from form. Abit Stuck. Please Help


paulman888888

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.