Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms

Status
Not open for further replies.

Palmke

Programmer
May 12, 2004
16
IT
I have made a function that saves something when certain actions are performed on objects in a form, in the same form there's another column which I may call it "user number" that it is not autoincrement but it's the key field and every row has a different number in it.
Now, by calling the function again and again it always writes on the same row, but I need to make it write on the line of the "user" that is actually being referred by that form!
I really don't have a clue how to do that.
May anybody help? :)

Best regards,
Palmke
 
Perhaps if you posted the code you have, we might be able to see where you're going wrong.

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.

AU.gif
Check out Tek-Tips Australia New Zealand forum1155
NZ.gif
 
here's the function :

function save_state(id){
state=a-b;
document.forms['myform']['field'+id].value=state;
}

myform structure is :
one field called 'user_num' has the number of the form being compiled that it's different for every row,
other fields are gonna be filled by save_state function.
 
Can you post your HTML code, or at least the code between the <form></form> tags?

There's always a better way. The fun is trying to find it!
 
It works..
anyway thanks for the replies ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top