Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

John444

macrumors member
Original poster
Feb 10, 2011
90
0
Hey everyone!
What is the HTML tag for a comment box, I thought it was this:
<form action="/html/tags/html_form_tag_action.… method="get">
Comments:</br>

<textarea rows="3" cols="20"></textarea>

<input type="submit" value="Submit" />
</form>

But it does not work when saved as .html. I think I need like a code page or something, but I do not know how to make one, any ideas?
 
That is the correct HTML. Make sure you're saving as plain text. If you happen to be using TextEdit, you can do so from the Format menu.
 
That is the correct HTML. Make sure you're saving as plain text. If you happen to be using TextEdit, you can do so from the Format menu.

Ok I will do that (mine was saved as rich text format, so now I changed it .txt). I knew that was the correct tag, but when I open in in the browser, I cannot submit a comment. Any idea why?
 
Is the URL correct for where you are posting to? Your sample looked to be an absolute address so you might be missing part of the path?!?
 
Is the URL correct for where you are posting to? Your sample looked to be an absolute address so you might be missing part of the path?!?

That looks like the problem, thanks. (P.S I copied this sample from yahoo answers) Sorry I have no idea how to use path or fix it. Any idea how to fix this or what the path tag is that I am missing? (I am just trying to make the website to a local folder at first to test for a comment box).
 
Hey everyone!
What is the HTML tag for a comment box, I thought it was this:
<form action="/html/tags/html_form_tag_action.… method="get">
Comments:</br>

<textarea rows="3" cols="20"></textarea>

<input type="submit" value="Submit" />
</form>

But it does not work when saved as .html. I think I need like a code page or something, but I do not know how to make one, any ideas?

I think I figured out my problem. This action tag is an example, I would have to replace it with the URL path that processes the form tag. So I could replace it with a web host website (if I made an account with a web host that allows CGI). For example action="http://sitename.com/cgi-bin/processForm.cgi." or something like that.
I looked it up and I could also fill in the action tag with an email link or a javascript link. The email link would send the comment to my email and the javascript would send it to a processor then back to the site (I think). I know the email tag would be action="mailto:InsertEmailHere@DomainName.com".
Thanks to everyone for your help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.