<select> attributes?

liunx

Guest
Hi-<br />
<br />
Synopsis<br />
I'm trying to figure out to make an <option> tag a link.<br />
<br />
Explanation<br />
I have a user driven pop-up window with contacting emails in a pull down menu style. I want them to be able to choose which person the would like to email and then type the brief message and then clicking send. Also are my <form> tags in the correct place?<br />
<br />
Code <br />
<table style="borderwidth:0px;" width="100%" align="left" cellpadding="1px" cellspacing="1px"><br />
<tr width="100%" align="left"><br />
<td align="left"><br />
<form name="contact" action="/cgi/mailer" method="post"><br />
<input type="hidden" name="contacts"><br />
<div class="formtext">TO: <br />
<select name="email"><br />
<option>Owner<br />
<option>Manager<br />
<option>Coach<br />
<option>Webmaster<br />
</select></div><br />
<div class="formtext">FR: <input name:"useremail" size="30" value="Enter Your E-mail address here"></div><br />
<div class="formtext"><textarea rows="7" cols="45 name="QUESTIONS" wrap="virtual"></textarea></div><br />
<div class="formtext"><input type="submit" value="Send"> &nbsp; <input type="reset" value="Reset"> &nbsp; <br />
<INPUT TYPE="button" VALUE="Close" onClick="window.close()"></div><br />
</form><br />
</td><br />
</tr><br />
</table><br />
<br />
<br />
Thanks, Gandalf :D<!--content-->try this:<br />
<br />
<select name="email"> <br />
<option value="[email protected]">Owner</option> <br />
<option value="[email protected]">Manager</option> <br />
<option value="[email protected]">Coach</option> <br />
<option value="[email protected]">Webmaster</option><br />
</select><br />
<br />
replace <!-- e --><a href="mailto:[email protected]">[email protected]</a><!-- e --> with the correct email address. Since I can't see the script I have no idea if that will work but give it a try I guess.....<br />
<br />
add the type attribute to this tag:<br />
<br />
<input type="text" name:"useremail" size="30" value="Enter Your E-mail address here"><br />
<br />
it will default to text if there is no type attribute but its best to define all your form elements explicitly to avoid problems. Your form tags are in the correct position.<!--content-->
 
Back
Top