Gossamer Forum
Home : Products : DBMan : Discussions :

Auto link to delete

Quote Reply
Auto link to delete
Hi:

I want to add to each record a link to delete it and modify it (without going to the search first, there is no login in this DB). I saw many posts that seem to do something like what I want but I can not make it work (it's not exactly the same).

I added to sub html_record

<p> <A HREF="$db_script_link_url?db=news&modify_form=1&ID=$rec{'ID'}">Modify</A>

But it doens't work...what I need is a way of adding to each record the ID value (I guess) so you would get ...Modify this ID.

Hope this is clear, I've been trying for 2 hours now and I am confused...

Thanks

Quote Reply
Re: Auto link to delete In reply to
Try:
<A HREF="$db_script_link_url&modify_form_record=1&modify=$rec{'ID'}">

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Auto link to delete In reply to
It makes a link like this: db=news&uid=default?db=news&modify_form_record=1&modify=<B>1</B><B></B>

(dont know why it changes the ID with that html, but it must be some other problem...as it happened before).

Thanks, I'll keep trying..

Quote Reply
Re: Auto link to delete In reply to
Update (and new problem I guess)

I added a hidden field, where I pass the ID and now it kind of works. Maybe it also did before...If I mannually take out the <b> tags I go to teh desired modify link. Now I have to figure why it includes this tags as part of the ID, but I guess that's another entirely different problem...Thanks

Quote Reply
Re: Auto link to delete In reply to
You should'nt need the hidden field...

Turn off search bolding ($db_bold = 0; in default.cfg) and try:
<A HREF="$db_script_link_url&modify_form_record=1&modify=$rec{'ID'}">

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Auto link to delete In reply to
THANKS! It works now.

Turning off the bold search was it... Simple but it would have taken me a million years to figure that.