Jump to content

Just need minor help on this forum


th2mods

Recommended Posts

Well were trying to get it so when you click send it actually sends.. lol

 

and yea its php, im running on phpbb and it uses forgemasters.php and sendfma.php here are the html versions for it

http://www.forgeguide.com/forgemasters.php

<!-- INCLUDE overall_header.html -->

    <div style="font-size:20px;font-weight:bold;">Forge Masters Application</div>
We Build You Play

    <div class="panel">
       <div class="inner"><span class="corners-top"><span></span></span>

       <div class="content">
          <p>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  
  
  <body style="font-family:verdana;font-size:10px;"><script language="JavaScript">
<!--
function formCheck(formobj){
// Enter name of mandatory fields
var fieldRequired = Array("gamertag","birthmonth", "birthday", "birthyear", "accountname", "mapone", "maptwo", "mapthree", "message");
var fieldDescription = Array("gamertag","birthmonth", "birthday", "birthyear", "accountname", "mapone", "maptwo", "mapthree", "message");
// dialog message
var alertMsg = "Please fill out the following:\n";

var l_Msg = alertMsg.length;

for (var i = 0; i < fieldRequired.length; i++){
	var obj = formobj.elements[fieldRequired[i]];
	if (obj){
		switch(obj.type){
		case "select-one":
			if (obj.selectedIndex == -1 || obj.options[obj.selectedIndex].text == ""){
				alertMsg += " - " + fieldDescription[i] + "\n";
			}
			break;
		case "select-multiple":
			if (obj.selectedIndex == -1){
				alertMsg += " - " + fieldDescription[i] + "\n";
			}
			break;
		case "text":
		case "textarea":
			if (obj.value == "" || obj.value == null){
				alertMsg += " - " + fieldDescription[i] + "\n";
			}
			break;
		default:
		}
		if (obj.type == undefined){
			var blnchecked = false;
			for (var j = 0; j < obj.length; j++){
				if (obj[j].checked){
					blnchecked = true;
				}
			}
			if (!blnchecked){
				alertMsg += " - " + fieldDescription[i] + "\n";
			}
		}
	}
}

if (alertMsg.length == l_Msg){
	return true;
}else{
	alert(alertMsg);
	return false;
}
}
// -->
</script>
<form name="formcheck" onSubmit="return formCheck(this);" method="POST"  
action="../sendfma.php";>
<br/><br/>
<table><td>
<big><b>ForgeGuide.com Account Name:</big></b></div><br/>
<small>If none, click <a href="http://forgeguide.com/ucp.php?mode=register" title"click">here</a> to register.</small><br/>
<input type="text" name="accountname" class="post">
</td></table>
<br/>
<br/>

<table><td>
<big><b>Gamer Tag:</big></b><br/>
<small>Xbox Live Gamer Tag</small><br/>
<input type="text" name="gamertag" class="post">
</td></table>
<br/>
<br/>

<table><tr><td>
<big><b>Forging Birth:</big></b><br/>
<small>When you began forging operations on Halo 3</small>
</td></tr>
<tr>
<td><!--
--><select name="birthmonth" id="birthmonth" class="info"></select><!--
--><select name="birthday" id="birthday" class="info"></select><!--
--><select name="birthyear" id="birthyear" class="info"></select><!--
-->
<script type="text/javascript">
function selMosb(pid,pval){
var h=document.getElementById(pid);
var m= new Array('January','February','March','April','May','June','July','August','September','October','November','December');
for(var i=1; i <= 12;i++)
	h.options[h.options.length]=new Option(m[i-1],i);
h.value=pval;
}
function selRngb(pid,pval,pstart,pend){
var h=document.getElementById(pid);
if (pend<pstart) {
	for(var i=pstart; i>=pend; i--)
		h.options[h.options.length]=new Option(i,i);
}
else
{
	for(var i=pstart;i<=pend; i++)
		h.options[h.options.length]=new Option(i,i);
}
h.value=pval;
}// addStuff

function selAddBlnkb(pid,pidx){
	var l= new Array('Year','Month','Day');
	var h=document.getElementById(pid);
	h.options[h.options.length]=new Option(l[pidx],0);
	}
selAddBlnkb( "birthyear",0);
selAddBlnkb( "birthmonth",1 );
selAddBlnkb( "birthday",2);

selMosb( "birthmonth", 0 );
selRngb( "birthday", 0, 1, 31 );
selRngb( "birthyear", 0, 2008, 1908 );
</script>
</td></tr>
</table>
<br/><br/>

<table><tr><td>
<big><b>Maps:</big></b><br/>
<small>Insert a link to your maps.</small>
</td>
</tr>
<tr>
<td>
Map One<br/>
<input type="text" name="mapone" class="post">
</td>
<td>
Image<br/>
<input type="text" name="imageone" class="post">
</td>
</tr>
<tr><td>
Map Two<br/>
<input type="text" name="maptwo" class="post">
</td>
<td>
Image<br/>
<input type="text" name="imagetwo" class="post">
</td>
</tr>
<tr><td>
Map Three<br/>
<input type="text" name="mapthree" class="post">
</td>
<td>
Image<br/>
<input type="text" name="imagethree" class="post">
</td>
</tr>
</table>
<br/><br>

<table><td>
<big><b>Message:</b></big><br/>
<small>Tell us about yourself and why you want to join.</small><br/>
<textarea  name="message" class="btnbbcode"></textarea>
</td></table>
<br/><br/>
<table><td>
<input type="submit" value="Submit" name="submit" class="btnmain">
</td></table>
</form>

</body>          </p>
       </div>

       <span class="corners-bottom"><span></span></span></div>
    </div>
<!-- INCLUDE overall_footer.html -->

sends.. lol

 

Sendfma_body.html

<!-- INCLUDE overall_header.html -->

<br />

<table class="tablebg" width="100%" cellspacing="0">
<caption><div class="cap-left"><div class="cap-right"> Information </div></div></caption><tr> 
<td class="row1" align="center"><br /><p class="gen">This message has been sent successfully. Expect a response within twenty four hours.<br /><br /><a href="http://forgeguide.com/">Return to the Home Page</a></p><br />
<?php
if(isset($_POST['submit'])) {

    $to = "tyranthacker@forgeguide.com";
    $subject = $_POST['forgemastersapplication'];
    $gamertag_field = $_POST['gamertag'];
    $birthmonth_field = $_POST['birthMonth'];
    $birthday_field = $_POST['birthday'];
    $birthyear_field = $_POST['birthyear'];
    $accountName_field = $_POST['accountName'];
    $mapone_field = $_POST['mapone'];
    $maptwo_field = $_POST['maptwo'];
    $mapthree_field = $_POST['mapthree'];
    $Imageone_field = $_POST['ImageOne'];
    $Imagetwo_field = $_POST['Imagetwo'];
    $Imagethree_field = $_POST['Imagethree'];
    $message= $_POST['message'];

$body = "Forge Master's Application
Gamer Tag: $gameryag_field\n 
Forge Guide Account: $accountname_field\n
Started Forging: $birthmonth_field\n $birthday_field\n $birthyear_field\n 
Maps:
$maptne_field\n
$imagetne_field\n
$maptwo_field\n
$imagetwo_field\n
$mapthree_field\n
$imagethree_field\n

Body:
$check_msg
$message\n";

    echo "Message Sent";
    mail($to, $subject, $body);
} else {
       echo "Message Error: Go Back and Try Again"; 
}
?>
</td>
</tr>
</table>

<br clear="all" />

<table class="tablebg" width="100%" cellspacing="0" cellpadding="0" style="margin-top: 5px;">
<tr>
	<td class="row1">

		<p class="breadcrumbs"><a href="./portal.php">Portal</a> • <a href="./forum.php">Forum</a></p>
		<p class="datetime">All times are UTC - 5 hours </p>
	</td>
</tr>
</table>

<div class="panel">
   <div class="inner"><span class="corners-top"><span></span></span>

  

   <span class="corners-bottom"><span></span></span></div>
</div>

<!-- INCLUDE overall_footer.html -->

Link to comment
Share on other sites

More information please.

 

First off, you didn't even ask a question. I suppose that maybe "were trying to get it so that when you click it actually sends" could maybe be thought of as a statement that there is in fact a problem, but you didn't give any details of how that problem is manifesting itself or anything.

 

The potential quality of a response is directly proportional to the actual quality of the question.

Link to comment
Share on other sites

More information please.

 

First off, you didn't even ask a question. I suppose that maybe "were trying to get it so that when you click it actually sends" could maybe be thought of as a statement that there is in fact a problem, but you didn't give any details of how that problem is manifesting itself or anything.

 

The potential quality of a response is directly proportional to the actual quality of the question.

its a forum... and its not sending to our e-mail.. if you looked through the sendfma_body.html you would know

Link to comment
Share on other sites

You are the one asking us for help. So quit being lazy, or else don't complain when you don't get help. I'm not going to dig through your 300 lines of code to try and guess what your problem is. If you want help, you should:

 

1) State what the overall script is supposed to do

2) State where you are having troubles

3) State what you want to happen

4) State what is actually happening

5) (optional) State what you have already tried doing.

 

Right now you get nothing from me. Maybe someone else will help you, but I doubt it. If you want help, tell us at least 1-4 of the above list.

Link to comment
Share on other sites

<?php
if(isset($_POST['submit'])) {

    $to = "tyranthacker@forgeguide.com";
    $subject = $_POST['forgemastersapplication'];
    $gamertag_field = $_POST['gamertag'];
    $birthmonth_field = $_POST['birthMonth'];
    $birthday_field = $_POST['birthday'];
    $birthyear_field = $_POST['birthyear'];
    $accountName_field = $_POST['accountName'];
    $mapone_field = $_POST['mapone'];
    $maptwo_field = $_POST['maptwo'];
    $mapthree_field = $_POST['mapthree'];
    $Imageone_field = $_POST['ImageOne'];
    $Imagetwo_field = $_POST['Imagetwo'];
    $Imagethree_field = $_POST['Imagethree'];
    $message= $_POST['message'];

$body = "Forge Master's Application
Gamer Tag: $gameryag_field\n 
Forge Guide Account: $accountname_field\n
Started Forging: $birthmonth_field\n $birthday_field\n $birthyear_field\n 
Maps:
$maptne_field\n
$imagetne_field\n
$maptwo_field\n
$imagetwo_field\n
$mapthree_field\n
$imagethree_field\n

Body:
$check_msg
$message\n";

    echo "Message Sent";
    mail($to, $subject, $body);
} else {
       echo "Message Error: Go Back and Try Again"; 
}
?>

 

now does that clear things up for ya? the forum isn't sending.. Like i've said

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.