RE: Posting Links to a page

by "Michael Wilson" <mwilson(at)xionmedia.com>

 Date:  Sun, 14 Oct 2001 23:20:32 -0400
 To:  "'Darrell King'" <darrell(at)webctr.com>,
"'Martin T. Hugo'" <martyh(at)cinci.rr.com>,
<hwg-techniques(at)hwg.org>
 In-Reply-To:  king
  todo: View Thread, Original
Hi,

You can do this with any Server Side scripting language; PHP, ASP,
ColdFusion, Perl and etc. The best thing to do is to find out which of
these scripting languages your Hosting Provider supports and which
Databases they support.

I would highly suggest using a Database to store the links. This will
allow you to manage them in the future. You can display only the "Add
Link" portion to the user, while having a password protected Admin area
to handle the edit and delete functions. 

A simple Access Database would suffice. Depending on the Database you
use you may have to change some of the "data types" (DT)

Create a table with the following fields:

ID: Make this your primary key and auto numbered, this will give you a
unique identifier for each record. LongIntiger

Link: This is where you would store the Hyperlink; i.e.
http://www.961media.com. DT : Memo 

Description: You can use this to provide a description of the link in
question, but you don't have to display it on the site if you don't want
to. This of course is true of any field. DT: Memo

SortOrder: This will allow you to sort the links any way you like. I.e.
a SortOrder of "1" would display before a SortOrder of "2". DT: Number

ActiveStatus: This field will allow you to turn a link "off or on"
without deleting it from the Database. Yes/No

LinkDate: This will allow you to tell when the link was added. You can't
just use "Date" because it is a reserved word in SQL. DT: Date (short)

After this you would just need to create forms to Add and Edit to this
table and create action pages to do the SQL Insert, Update or Delete. 

Once you find out what you can work with, I am sure there are list
members that can assist you with the forms and such, no matter what your
requirements are. I can give you a hand with ColdFusion or ASP if you
use that.

HTH

Mike

> -----Original Message-----
> On Behalf Of Darrell King
> A simple PHP script, built right into the web page, would allow a user
to
> submit a URL

> ----- Original Message -----
> From: "Martin T. Hugo" <martyh(at)cinci.rr.com>
> I work in a school district and would like to set up a page where
staff
> members can post links that others may find interesting.
> 
> What is the best way to achieve this (I don't want a message board
type
> page, I just want users to be able to add to the links page)?

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA