The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

can anyone help me with my code? now the status is record is getting empty as soon as i fire the query. i dont want to delete record but want to update it. it seems friends value is not getting passed through my JS.

You were passing in id and friends as parameters through a link, now you're reading them from the value property of some elements. Do those elements exist, are they the type to have value properties, and is their value the correct ID and string you want for the query?

document.getElementById('friends').value returns the value of an input with an *ID* of "friends". There is no such input. Change the ID on your two form elements. The ID attribute is supposed to be a unique identifier, not a value holder.