|
Answer» I dont know how to make a comment box! I dont know how to make a database or any php.
Is it possible SOMEONE can help me make one that will make the text appear above it. Heres the forms: Code: [Select]Comments: <input type="text" name="comment" length="20" width="40" /> <br/> Display Name: <input type="text" name="name" width="40" /> <input type="button" name="Submit" value="Submit" />
It should be somewhat like:
POSTED by: Bailey: ----------------------- HI! NEXT COMMENT ------------------- (Text = "HI!") < NAME BOX > (Text = "Bailey") Have you got access to a database and PHP? You'll definitely need it.I have acess to a database. But php and All that wont work on my website.If you have access to a database you'll more than likely have access to PHP or ASP, and you will need one of them for the comment system to work.Maybe my code can help.,., just try this.,.
/* viewcomment.php */
/*some sql commands that will retrieve and dispaly the stored data in the database */ echo $ROW['name_field']; echo "-----------------------------------------------------"; echo $row['comment_field'];
?>
Comments:
Display Name:
/*comment.php*/
$comment = $_POST['comment']; $name = $_POST['name'];
/* some sql function that will store the data to the database */
header("LOCATION: viewcomment.php");//redirect to the viewcomment.,.
?>Quote from: Bannana97 on January 06, 2009, 09:16:08 AM But php and All that wont work on my website.
He SAYS PHP won't work on his site, but I don't think this is true.Okay I uploaded my site to an FTP server,
I can use it now.
|