PDA

View Full Version : Character Submission Form



Antilles
06-24-2007, 03:46 PM
Hiya,

I'm trying to make a form for players to submit characters to me, through email. Here is my html:



<html>
<head>
<title>EA Join Page</title>
</head>
<body bgcolor="#cccc66" text="black" link="#003366" vlink="#4d004d" alink="#660000" style="font-family:verdana;" leftmargin="87" marginwidth="87" rightmargin="87" marginwidth="87">

<table border="0" width="900" bordercolor="#999900" bordercolordark="#999900" bordercolorlight="#cccc66" bgcolor="#e6e69e" height="100%">
<tr>
<td height="150"><p align="center"><img src="images/logo2.png" width="900" height="150" border="0" /></p>
</td>
</tr>
<tr>
<td height="20">
<h4>Earth Alterra Character Submission Form</h4>
</td>
</tr>
<tr>
<td>
<h5>&nbsp;.: Player Information:</h5>
<table cellpadding="0" cellspacing="0" width="75%" bgcolor="#e6e69e" bordercolordark="#999900" bordercolorlight="#cccc66">
<tr>
<td width="165" valign="top"> <p>Player's Name:</p>
</td>
<td>
<form name="form1" id="form1">
<p><input type="text" name="players_name" maxlength="50" size="50" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /></p>
</form>
</td>
</tr>
<tr>
<td width="165" valign="top"> <p>Player's Email:</p>
</td>
<td>
<form name="form2" id="form2">
<p><input type="text" name="players_email" maxlength="50" size="50" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /><br />
<font size="1">This must be a valid eMail address.</font></p>
</form>
</td>
</tr>
</table>
<hr size="1" width="95%" align="center" />
<h5>&nbsp;.: Character Information:</h5>
<form name="form3" id="form3">
<p align="left"> <input type="text" name="characters_name" maxlength="50" size="50" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Character's Name</p>
</form>
<form name="form4" id="form4">
<p align="left"> <input type="text" name="class_level" maxlength="50" size="50" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Class and Level</p>
</form>
<form name="form5" id="form5">
<p align="left"> <input type="text" name="race" maxlength="25" size="25" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Race</p>
</form>
<form name="form6" id="form6">
<p align="left"> <input type="text" name="alignment" maxlength="25" size="25" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Alignment</p>
</form>
<form name="form7" id="form7">
<p align="left"> <input type="text" name="deity" maxlength="25" size="25" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Deity</p>
</form>
<form name="form8" id="form8">
<p align="left"> <input type="text" name="gender" maxlength="25" size="25" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Gender</p>
</form>
<form name="form9" id="form9">
<p align="left"> <input type="text" name="height" maxlength="10" size="10" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Height</p>
</form>
<form name="form10" id="form10">
<p align="left"><input type="text" name="weight" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" maxlength="10" size="10" /> Weight</p>
</form>
<form name="form11" id="form11">
<p align="left"> <input type="text" name="age" maxlength="10" size="10" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Age</p>
</form>
<form name="form12" id="form12">
<p align="left"> <input type="text" name="hair" maxlength="10" size="10" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Hair</p>
</form>
<form name="form13" id="form13">
<p align="left"> <input type="text" name="skin" maxlength="10" size="10" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" /> Skin</p>
</form>
<h5>&nbsp;.: Abilities</h5>
<form name="form14" id="form14">
<p><input type="text" name="str" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;STR</p>
</form>
<form name="form15" id="form15">
<p><input type="text" name="dex" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;DEX</p>
</form>
<form name="form16" id="form16">
<p><input type="text" name="con" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;CON</p>
</form>
<form name="form17" id="form17">
<p><input type="text" name="int" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;INT</p>
</form>
<form name="form18" id="form18">
<p><input type="text" name="wis" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;WIS</p>
</form>
<form name="form19" id="form19">
<p><input type="text" name="cha" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;CHA</p>
</form>
<form name="form20" id="form20">
<p><input type="text" name="action_points" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;Action Points</p>
</form>
<form name="form21" id="form21">
<p><input type="text" name="defensive_points" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;Defensive Points</p>
</form>
<form name="form22" id="form22">
<p><input type="text" name="reputation" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;Reputation</p>
</form>
<form name="form23" id="form23">
<p><input type="text" name="hit_points" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;HP</p>
</form>
<form name="form24" id="form24">
<p><input type="text" name="armor_class" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;AC</p>
</form>
<form name="form25" id="form25">
<p><input type="text" name="base_attack_bonus" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;BAB</p>
</form>
<form name="form26" id="form26">
<p><input type="text" name="spell_resistance" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;Spell Resistance</p>
</form>
<h5>&nbsp;.: Saving Throws</h5>
<form name="form27" id="form27">
<p><input type="text" name="fortitude_save" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;FORT</p>
</form>
<form name="form28" id="form28">
<p><input type="text" name="reflex_save" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;REF</p>
</form>
<form name="form29" id="form29">
<p><input type="text" name="will_save" maxlength="2" size="2" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />&nbsp;WILL</p>
</form>
<h5>&nbsp;.: Character Details</h5>
<p>&nbsp;Character Description:</p>
<form name="form30" id="form30">
<p><textarea name="character_description" rows="10" cols="50" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;">Type your Character's Description here. This description will be what others can see when they look at your character.</textarea></p>
</form>
<p>&nbsp;Character History:</p>
<p><textarea name="character_history" rows="10" cols="50" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;">Type your Character's History here. These details should be brief and to the point. At the same time, be creative with the details of your character's past.</textarea></p>

<hr size="1" width="95%" align="center" />
<h5>&nbsp;.: Submission</h5>
<form name="form31" id="form31"
action="mailto:helios.coil@gmail.com"
method="post"
enctype="text/plain">
<p>&nbsp;Check over your character proposal, and when you feel it is complete, click the Submit Button below:</p>
<p align="center"><input type="submit" value="send" style="border-width:1; border-color:rgb(151,151,71); border-style:solid;" />
</p>
</form>
</td>
</tr>
</table>
</body>
</html>

Antilles
06-24-2007, 03:47 PM
The trouble I'm having is that the thing is submitting (opening outlook for me) but there is nothing in the body of the email; that is to say, all the info supplied in the form fields is not being placed into the email for delivery.

Can anyone help me out?

bobdog
06-24-2007, 06:09 PM
Well, first you have <form> </form> for each field. There should be only one form tag for the entire form.

Next, look at the form action.


<form name="form31" id="form31"
action="mailto:helios.coil@gmail.com"
method="post"
enctype="text/plain">

This is also incorret.

Use this example to set up your form properly:

<form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST">
Name: <input type="text" name="Name"><br>
Email: <input type="text" name="mailfrom"><br>
Street Address: <input type="text" name="StreetAddress"><br>
City: <input type="text" name="City"><br>
Zip: <input type="text" name="Zip"><br>
Phone: <input type="text" name="Phone"><br>
<input type="hidden" name="sendtoemail" value="webmaster@mysite.com"><br>
<input type="submit" value="Send Email">
</form>

Antilles
06-25-2007, 06:02 PM
BobDog,

Dude. It worked. Thank you very much.