Write to a database

How do you get a hyperlink to switch webpages and write to a field in a database when pressed?
Who is Participating?
slokConnect With a Mentor Commented:
You will need cgi to handle this.

You can pass your field value along in your hyperlink to the cgi
<a href="http://www.example.com/example.html?fieldname=fieldvalue">link</a>

And in your cgi you will have some SQL statement like this :
insert into tablename (fieldname) values fieldvalue
update tablename set fieldname = fieldvalue where certain condition

Perhaps you can give more info about the cgi programs you are using.

Cold Fusion.

Get it. Use IT Love. IT.

GIve more details in what you are trying to do.
I agree, I develope with Cold Fusion as well.
Plain easy, tags like, high level programming stuffs.
Much easier than ASP as well.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.