Gossamer Forum
Home : Products : Links 2.0 : Customization :

Two Questions re: adding new URL

Quote Reply
Two Questions re: adding new URL
I have $db_single_category = 1

Questions (1). When a visitor to my site adds a new URL, I want the selected category (chosen from which page he clicked on 'Add A Resource') to appear by itself. Not within a form field. Example: The category you have selected to add your entry to is Classic Cars. What variable do I use to make 'Classic Cars' appear? Also, is this the variable I would use in the <input type="hidden"> field since I do not want the visitor to be able to change his category selection from within the add screen?

Question (2): I am adding a field to my categories database called AllowSubmit which will be a Yes or No field. If yes, it will allow people to post in that category. If no, they will be unable to select that category for adding. How do I call that variable (name of variable?) in add.cgi to run that subroutine? Example:

if ($whatever_this_variable_should_be) eq 'No' { &NoPost; }

Thank you in advance for your help.

[This message has been edited by Lee (edited March 02, 1999).]