I'm designing a web log app as a means of geting to grips with CF (only locally at the moment).
Basically I post articles up and people are invited to reply with comments (for which they have to register & login etc). I set up my database with 3 tables - articles, comments and users. The articles table has a one to many relationship with the comments table via an articleID foreign key. I'm having 2 problems with the adding comments bit:
1. How do I set up the add a comment page so that it forces people to register or login first? I want (obviously) people to read without logging in. I've set up a basic application.cfm, but I guess this isn't the place to do this otherwise people will need to login before viewing any pages.
2. how do I set up the add a comment form to ensure the posted comment gets viewed with the original article, bearing in mind how I set the dbase up.
Any info gratefully recieved
Cheers
Mark
Basically I post articles up and people are invited to reply with comments (for which they have to register & login etc). I set up my database with 3 tables - articles, comments and users. The articles table has a one to many relationship with the comments table via an articleID foreign key. I'm having 2 problems with the adding comments bit:
1. How do I set up the add a comment page so that it forces people to register or login first? I want (obviously) people to read without logging in. I've set up a basic application.cfm, but I guess this isn't the place to do this otherwise people will need to login before viewing any pages.
2. how do I set up the add a comment form to ensure the posted comment gets viewed with the original article, bearing in mind how I set the dbase up.
Any info gratefully recieved
Cheers
Mark