Hi,

I have a form where I have an input tex box:

<input onChange="" type="text" name="urltitle" value="<?php if($POST[urltitle]){ echo $POST[urltitle]; }?>"

The urltitle is associated with a picture in a MySql database. When the user changes the urltitle I want to save the old urltitle that was associated with the image. Otherwise, I'll have the new urltitle, but will lose track of the image that now should be associated with the new urltitle. I'm new to JavaScript, but I think I should call a function to update the database?

Any help is appreciated.

Thanks.

Mike

    You might want to look into a javascript forum like in my sig. I think you need to define a function inside onChange. But i'm not quite sure what you're asking, need more code.

      Write a Reply...