Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Comment in Add-form.

Quote Reply
Comment in Add-form.
Hi to all:
I would like to add a comments field in for the add page where people can provide additional comments to me. These comments would not be part of the DB and would be used to recommend new categories, report bad links, etc.

Any recommendations?

Thanks;

John
Quote Reply
Re: Comment in Add-form. In reply to
Hi John,

Create a textarea box and name it Comments. Then in add.cgi where an email is mailed to you, just add:

Comments: $in{'Comments'}

and you should be set.

Cheers,

Alex
Quote Reply
Re: Comment in Add-form. In reply to
Hi,

I would like this, but with keywords, so instead of searching the description, title, users would provide keywords themselves.


Cheers

A Beaton
Quote Reply
Re: Comment in Add-form. In reply to
The way Alex suggested the Comments field is mailed to you, but since there is no matching database field it's just "lost" after that.

To add a Keywords field, you need to go to the Admin and Table Edit, add a new field, make it as long as you want, and add the other parameters in.

Then, modify your Add form to handle the new field as mentioned above.

Make sure to ALSO MODIFY THE VALIDATE TABLE!! This is not done automatically yet (I don't believe). If you forget, the keywords will be lost when the user enters them, but will show up as a blank field on the Admin field.



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/