Create error for duplicate comment titles
Posted: Sat Mar 28, 2009 7:11 pm
hello,
i allow users to start comment conversations with one another. when a new conversation is started, the user is required to enter a topic title.
example:
-- Topic: Hello, Nice to meet you! ... Joe, John, and Carol are all in this ongoing chat/conversation.
-- Billy decides to start a new conversation with Bobby and names the Topic: Hello, Nice to meet you!
-- Now Billy and Bobby show up in the dialogue with Joe, John, and Carol rather than just a chat between themselves.
I can't make my comment_title field unique because I use it to relate every comment that is posted in the ongoing conversations.
Does anyone know how I can simply set up a conditional IF statement to check just the insert NEW comment form so that $_POST['comment_title'] does not equal a comment_title in use?
thank you!
i allow users to start comment conversations with one another. when a new conversation is started, the user is required to enter a topic title.
example:
-- Topic: Hello, Nice to meet you! ... Joe, John, and Carol are all in this ongoing chat/conversation.
-- Billy decides to start a new conversation with Bobby and names the Topic: Hello, Nice to meet you!
-- Now Billy and Bobby show up in the dialogue with Joe, John, and Carol rather than just a chat between themselves.
I can't make my comment_title field unique because I use it to relate every comment that is posted in the ongoing conversations.
Does anyone know how I can simply set up a conditional IF statement to check just the insert NEW comment form so that $_POST['comment_title'] does not equal a comment_title in use?
thank you!