unemployment Posted April 20, 2011 Share Posted April 20, 2011 How can I append the value to an input using javascript. I need the value to match an ID that I have in my database so that when I press the accept of deny button it will update mysql. I have this... input2.value = 'deny'; I think I need this to be something like... input2.value = 'deny[$id]'; What's the best way to do this? Link to comment https://forums.phpfreaks.com/topic/234211-append-value/ Share on other sites More sharing options...
Adam Posted April 21, 2011 Share Posted April 21, 2011 You're not providing enough information. Show us the code where you retrieve the data via PHP, and where it's integrated into the JavaScript. Showing a few random statements mixed with PHP doesn't really help... Link to comment https://forums.phpfreaks.com/topic/234211-append-value/#findComment-1204370 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.