Topic: HTML Help

U.S. Cavalry

FAQ/Rules - Search - Military Photo Gallery

  International Military Forums > Other Discussions and Forums > Internet, Computers and Games Forum
User Name
Password

 
June 6th, 2006   Post 1
C/2nd Lt Robot
Tribunus Laticlavius
 
 

Post; HTML Help


Ok, I'm trying to create a comment box for a website. However, I want them to be able to choose different colors for their comments.

Here's what I have so far:
Code:
 
<form action=mailto: (my email) enctype="application/x-www-form-urlencoded" method="post">Your Email<input maxlength="2147483647" name="Your Email Address" size="30" type="text"></input> 
 
<SCRIPT LANGUAGE="javascript">
 
function LinkUp() 
{var number = document.DropDown.DDlinks.selectedIndex;
location.href = document.DropDown.DDlinks.options[number].value;}
</SCRIPT>
 
<FORM NAME="DropDown">
<SELECT NAME="DDlinks">
<OPTION SELECTED>--> Choose a Color <--
<Option Value="#FF0000"> Red
<Option Value ="#0000FF"> Blue
<Option Value ="#000000"> Black
</SELECT>
 
<INPUT TYPE="BUTTON" VALUE="Click" onClick="LinkUp()">
</FORM>
 
<textarea cols="40" name="comment" rows="6"></textarea> 
 
<input maxlength="2147483647" size="20" type="submit" value="Submit"></input> <input maxlength="2147483647" size="20" type="reset" value="Reset"></input></form>

It seems to not of sent a test message to my inbox. I'm guessing I'll need the name of an application that will do that for me? Or would it be easier to have them posted on the website instead?
__________________
C/Capt "Robot", CAP (ret)
NBB '06 Alpha Flight
NBB '07 Delta Flight

Last edited by C/2nd Lt Robot; June 6th, 2006 at 04:03.
 
June 7th, 2006   Post 2
sunb!
Forum Barbecuer
 
 
Gear


I can write a routine for you if you like, or else you can find some good scripts on various java script pages. Do a google search to find some pre-made ones.

Edit: if you have a web server with PERL support that sort of response sheets can be done easily and much more secure than with the email option you have chosen here.

Last edited by sunb!; June 7th, 2006 at 17:17.
 
June 7th, 2006   Post 3
The Cooler King
Godfather
 
Gear

Here is a good site with a bunch of scripts...

http://javascript.internet.com/