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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoid update the key field

Status
Not open for further replies.

jadec

MIS
Jan 22, 2004
87
US
Hi Guys,
I'm writing a page to allow user to update a single record. the page is made of some input fields within a form. There are 2 key fields. After pgm load the record to the page, user can press the update button to update the record. But I don't want user override the key field. If I disable the key fields, I cann't get the key value by request.form.keyfield.value. What should I do to protect the key fields and still can request the key value? I don't know if I explain my problem clearly.

Thanks!
 
personally I have no idea what you mean.

if you don't want a field updating don't put the value in the update code.

failing that you will need to explain more maybe some code would assist.





Chris.

Indifference will be the downfall of mankind, but who cares?
A website that proves the cobblers kids adage.
Nightclub counting systems

So long, and thanks for all the fish.
 
what you do is diable the fields, then in the same fell swoop you put a hidden element with the same name , and then you can request the element.

[thumbsup2]DreX
aKa - Robert
 
Hi DreXor, Thank you for the suggestion. It's just what do i want.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top