Old 02-15-2008   #1 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 7

PHP comment system problem...

Okay, on my website right now, I have a commenting system set up. You can submit comments, view them etc. Whatever. The thing is, I also want to add a reply function. Right now, this is my code:

PHP Code:
while($row mysql_fetch_array($resultMYSQL_ASSOC)) {

$comment $row['comment'];
$wrapcomment wordwrap($comment45"<br>"true);

echo 
"{$row['username']} said:
<form method=\"post\" action=\"http://thatpyrokidben.nickthebic.com/testcomment.php?replying=true\">
<input type=\"hidden\" name=\"commentoberepliedto\" value=\"$wrapcomment\">
<a href=\"http://thatpyrokidben.nickthebic.com/testcomment.php\">reply</a></form>
      $wrapcomment<br><br><br>"
;

It displays something like this:

"user said:
reply
This is quite the long comment because it can
be."

That reply needs to be on the same line as the "user said:"
Any help would be appreciated. And if you see something else wrong with that, tell me, I'm pretty new to form and post.
thatpyrokid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-15-2008   #2 (permalink)
Eternal Being
 
Join Date: Feb 2006
Location: Finland
Posts: 239

Just put the "user said" inside the form tags too and you're set.
__________________
Telos is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2008   #3 (permalink)
Registered User
 
Join Date: Jan 2008
Posts: 7

Thank you very much. I had a feeling it would be something simple.
thatpyrokid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
A Complete Membership System - [Dont know if its a problem] shinydarkstone HTML / PHP / ASP / JS 4 11-06-2007 10:48 PM
A Complete Membership System - [PROBLEM] Javva HTML / PHP / ASP / JS 1 05-25-2007 11:45 AM
Problem with "A Complete Membership System" by Scrowler Steve887 HTML / PHP / ASP / JS 1 08-01-2006 11:04 PM
Member System Problem Stroobie HTML / PHP / ASP / JS 7 07-04-2005 05:43 PM
Comment Dumb Genius BioRUST Specific Threads 1 02-24-2005 12:55 AM


All times are GMT +1. The time now is 04:42 AM.
Content Relevant URLs by vBSEO 3.2.0 RC7

Design & Content © BioRUST 2007 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT