kalle pettersson

Greenhorn
+ Follow
since Jun 07, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kalle pettersson

will try to explain what I mean

The first page lists everything from a recordset. if it lists as: movies

id 1 movie 1
id 2 movie 2

There are 10 movies so it will be 10 rows
to update as movie i needed an Update button or remove the film 1 on every rows,
what the link makes it take id and go to uppdate.cfm and brings up the record
if I'm going uppatera movie 1 becomes the link uppdate.cfm? id = 1, #recTest.AlbID# get the id value
but to avoid having say 10 st buttons for updating and 10 buttons for deleting
I want to use a CheckBox and 2 buttons, one for update and one to delete.

so I try to pick out the value of the checkbox that contains the ID value in the table and get it in the link as update, so the dream would be able to click a checkbox and get the value of the link

uppdate.cfm (update page) ?id= (Database Q) value checkbox (recordset id)
#recTest.AlbID# is the id from the database, it is the primary key so it will be a unique ID. it is also the id that it finds the correct entry from the database.
but if I give it different id. how will it know which checkbox that I checked.

Do you have any examples of what you mean when I am currently stuck
am sure that I try to do it the hard way. therefore I hope to get back on track again and get through this function
yes you can say it ..

that are many rows with one entry on each line but to avoid 2x buttons on each line, so you should be able to select only one row with checkbox and then be able to update or delete the record with an image / button or link. Then the loop through the lines and see what the checkbox is checked, and then use the value from that row.

this is the full code i am using.

Eric Pascarello wrote:You can style the button to look like a link, CSS is good at that stuff!

or you can just have the link submit the form like the button does.

Eric



it does not help when there is a recordset. then there would be a button for each record. and how would it know which button I is right. Therefore it must link with checkbox. So it finds the correct recordset
if I have a checkbox and the value I want to make it a link



this is the code i am using (it is a recordset written in coldfusion)



I want the value from YesNo should be in the link if I have a checkbox and the value I want to make it a link

I have tried to make it work with javascript


but then he sees only the first recordset and not the others.
would need assistance to get to so it is possible to create an update / delete link for the form