Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Adding comments into page from a form

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Adding comments into page from a form

Postby MastahUK » Thu Feb 20, 2003 2:18 pm

I need to have a simple form with an input box for the person's name, email and the comment that will be posted. Here is a section I have found from this site that shows the actual script for the form (with slight changes):

<form action="do_comments.asp?level_id=1492" method="post">
<tr>
<td class="main" valign="top">Your name (optional):</td>
<td class="main" valign="top"><input type="text" size="32" maxlength="24" name="str_posters_name" value=""></td>
</tr>
<tr>
<td class="main" valign="top">Comments? (required):</td>
<td class="main" valign="top"><textarea cols="32" rows="6" name="txt_comment" wrap="virtual"></textarea></td>
</tr>
<tr>
<td></td>
<td class="main" valign="top" align="center"><input type="submit" value="Post comment" id=submit1 name=submit1><br /><br /></td>
</tr>
</form>

This is referring to this site:http://www.planetquake.com/lvl/comments.asp?id=1492

There are certain things that I need explaining, such as the first line of the form:

<form action="do_comments.asp?level_id=1492" method="post">

Also, I need to know how to actually get this to be posted as comments as you can see at the bottom of the link. I think it needs something to do with a database, but I have no idea where to even start with something like this.

Any help would be greatly appreciated.
MastahUK
New php-forum User
New php-forum User
 
Posts: 6
Joined: Thu Feb 20, 2003 2:10 pm
Location: UK

Postby Oleg Butuzov » Thu Feb 20, 2003 11:58 pm

Sorry bad English...
explain me, please...

1) Is that ASP qustion?
2) Is that HTML qustion?
3) Is that PHP qustion?
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby MastahUK » Fri Feb 21, 2003 1:55 pm

Very good point, I did not notice this was done in asp. I will need to do it in php if it is possible because my hosting does not support asp anyway. To see what I am trying to accomplish, here is a site that has the same kind of comments section, although this is done in asp:

http://www.planetquake.com/lvl/comments.asp?id=1491
MastahUK
New php-forum User
New php-forum User
 
Posts: 6
Joined: Thu Feb 20, 2003 2:10 pm
Location: UK


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.