Ok well, i needed to make 2 scripts work tonight, One ive already asked a question about, and got the answer i needed, now there this one. Unlike the first, this one is done entirely by me, i made it by looking at the first, one that was mainly coded by a freind, then i wrote this one. Now i thought it was working, but i went to test it, and when i checked my e-mail, in the message, there was only the last thing i told it to send me, i was missing most of the data i wanted it to send me. I have gone over it for an hour, i still cant figure out whats wrong.
heres the form:
<?
errOr();
comPlete();
?>
<form action="template_submit.php" method="post">
<table width="410" border="1" bordercolor="#666666">
<tr>
<td width="149"><div align="right">*Name:</div></td>
<td colspan="2"><input name="name" type="text" id="name" size="42" class="inputs"></td>
</tr>
<tr>
<td><div align="right">*E-Mail:</div></td>
<td colspan="2"><input name="email" type="text" id="email" size="42" class="inputs"></td>
</tr>
<tr>
<td><div align="right">*Forums Name:</div></td>
<td colspan="2"><input name="forumname" type="text" id="forumname" size="42" class="inputs"></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td rowspan="2" valign="top"><div align="right">*Template Colors:</div></td>
<td width="116"><div align="left">#
<input name="color1" type="text" id="color1" size="10" maxlength="6" class="inputs">
</div></td>
<td width="131"><div align="left">#
<input name="color2" type="text" id="color2" size="10" maxlength="6" class="inputs">
</div></td>
</tr>
<tr>
<td><div align="left">#
<input name="color3" type="text" id="color3" size="10" maxlength="6" class="inputs">
</div></td>
<td><div align="left">#
<input name="color4" type="text" id="color4" size="10" maxlength="6" class="inputs">
</div></td>
</tr>
<tr>
<td><div align="right">*Template Theme:</div></td>
<td colspan="2"><select name="theme" id="theme" class="inputs">
<option value="art_lit">Art & Literature</option>
<option value="auto">Automobiles</option>
<option value="comp_internet">Computers & Internet</option>
<option value="education">Education</option>
<option value="entertainment">Entertainment</option>
<option value="family_parents">Family & Parents</option>
<option value="game_clans">Gaming: Clans</option>
<option value="games_console">Gaming: Console</option>
<option value="games_general">Gaming: General</option>
<option value="games_rpg">Gaming: RPG</option>
<option value="games_specific">Gaming: Specific Game</option>
<option value="graphich_design">Graphics & Design</option>
<option value="health_medicne">Health & Medical</option>
<option value="hobbies">Hobbies</option>
<option value="misclienaneous">Miscellaneous</option>
<option value="music">Music</option>
<option value="news_politcs">News & Politics</option>
<option value="online_communities">Online Communities</option>
<option value="outdorr_nature">Outdoors & Nature</option>
<option value="programming">Programming</option>
<option value="religous">Religious</option>
<option value="sports">Sports</option>
<option value="teens">Teens</option>
<option value="tv_movies">TV & Movies</option>
<option value="windows">Windows</option>
</select></td>
</tr>
<tr>
<td><div align="right">*Template Demensions:</div></td>
<td colspan="2">height
<input name="height" type="text" id="height" size="5" class="inputs">
x
<input name="width" type="text" id="width" size="5" class="inputs">
width</td>
</tr>
<tr>
<td colspan="3"><div align="right"></div>
</td>
</tr>
<tr>
<td><div align="right">Expandable::</div></td>
<td colspan="2">Yes <input type="radio" name="expandable" value="yes" class="inputs">
No
<input type="radio" name="expandable" value="no" class="inputs"></td>
</tr>
<tr>
<td><div align="right">iframes:</div></td>
<td colspan="2">Yes
<input type="radio" name="iframes" value="yes" class="inputs">
No
<input type="radio" name="iframes" value="no" class="inputs"></td>
</tr>
<tr>
<td><div align="right">Design Basis:</div></td>
<td colspan="2"><input name="design" type="text" id="design" size="42" class="inputs"></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td valign="top"><div align="right">Specific Insturctions:</div></td>
<td colspan="2"><textarea name="instructions" cols="32" rows="15" id="instructions" class="inputs"></textarea></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td height="4" colspan="3"> </td>
</tr>
<tr>
<td height="21" colspan="3"><div align="center">
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</div></td>
</tr>
</table>
</form>
heres the submition script:
<?
$name = $_POST['name'];
$email = $_POST['email'];
$forumname = $_POST['forumname'];
$color1 = $_POST['color1'];
$color2 = $_POST['color2'];
$color2 = $_POST['color2'];
$color3 = $_POST['color3'];
$color4 = $_POST['color4'];
$theme = $_POST['theme'];
$height = $_POST['height'];
$width = $_POST['width'];
$expandable = $_POST['expandable'];
$iframes = $_POST['iframes'];
$design = $_POST['design'];
$instructions = $_POST['instructions'];
$subject = $reason . " Templaete Request:\r\n";
if((!$name) || (!$email) || (!$forumname) || (!$color1) || ((!$color2) || (!$color3) || (!$color4) || (!$theme) || (!$height) || (!$width) || (!$instructions) {
header("Location: template_request_form.php?error=1");
}
$message = "Template Request By: " . $forumname . "\r\n";
$message = "-------------------------------\r\n";
$message = "Name: " . $name . "\r\n";
$message = "E-mail: " . $email . "\r\n";
$message = "Forum Name: " .$forumname . "\r\n";
$message = "-------------------------------\r\n";
$message = "Template Color #1: #" . $color1 . "\r\n";
$message = "Template Color #2: #" . $color2 . "\r\n";
$message = "Template Color #3: #" . $color3 . "\r\n";
$message = "Template Color #4: #" . $color4 . "\r\n";
$message = "Template Theme: " . $theme . "\r\n";
$message = "Template Demensions: " . $height . "x" . $width . "\r\n";
if($expandable)
$message = "Expandable: " . $expandable . "\r\n";
if($iframes)
$message = "iframes: " . $iframes . "\r\n";
if($design)
$message = "Design Basis: " . $design . "\r\n";
$message = "Other Indtructions: " . $instructions . "\r\n";
$to = "orionleingod@gmail.com";
$subject = "Template Request By: " . $forumname . "\r\n";
$headers = "From: " . $email . "\r\n" . "Bcc: " . $bcc . "\r\n";
mail($to, $subject, stripslashes($message), $headers);
header("Location: template_request_form.php?complete=1");
?>
its at http://www.stoneddevilinc.com?i=template_request_form.php