Author |
Message |
oneunit
Regular


Joined: Feb 18, 2008
Posts: 94
|
Posted:
Sat Feb 23, 2008 3:04 pm |
|
when i tested my "challenge us" form ( www.1unit.org ) and clicked submit, this is what i get
Clan Name:
Contact Email:
Clan Website:
Clan Record:
GameBattles ID:
Gamertag to Contact:
Date to Challenge:
Time To Challenge::
Additional Information:
IP Address:
there is no text?????? this is my receipient data:
________________________________________________-
<?PHP
//****************************************************************************
// DFK Challenge Form
//
// Fill in the appropriate areas to your customisation.
// E.g. You must change your_email_address@email.com to your own one.
// IMPORTANT: DO NOT EDIT THE $App line unless you know what you are doing,
//****************************************************************************
$EmailTo = "admin@1unit.org";
$Subject = "One Impenetratable Unit's Challenge Form from $ClanName\n";
$Name = "$ClanName\n";
$App = "
Clan Name: $ClanName\n
Contact Email: $ContactEmail\n
Clan Website: $ClanSite\n
Clan Record: $ClanRecord\n
GameBattles ID: $GBID\n
Gamertag to Contact: $gt\n
Date to Challenge: $dtc\n
Time To Challenge:: $Time\n
Additional Information: $AddInfo\n
IP Address: $REMOTE_ADDR";
mail($EmailTo,$Subject,$App,"From: $ContactEmail\n");
?>
<html>
<body bgcolor="white">
<center>
<font face="Arial"><br>
<br>
<div align="center"><font color="black"><b>Thank you for filling out our application to join our guild. A representative of One Unit will contact you within 24 hours. If you do not receive any response within that time frame, please direct all your messages either in the forums or send an e-mail to admin@1unit.org Thanks and have a great day!
<br>
<A href="http://www.1unit.org">Click Here</A> to return to One Unit's website.<b></font>
</div>
</body>
</html> |
|
|
|
 |
Gremmie
Former Moderator in Good Standing

Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Sat Feb 23, 2008 6:10 pm |
|
Is that all of the code?
You need to mimic the feedback module. If someone clicks submit, you have to pull the fields out of $_POST and email to yourself, then display a thank you. Otherwise, display the form and instructions. |
_________________ Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module |
|
|
 |
oneunit

|
Posted:
Sat Feb 23, 2008 7:10 pm |
|
im sorry, i said it wrong, it works fine, it sends me an e-mail and it goes to a thank you page, when i receive the e-mail i get this
Clan Name:
Contact Email:
Clan Website:
Clan Record:
GameBattles ID:
Gamertag to Contact:
Date to Challenge:
Time To Challenge::
Additional Information:
IP Address:
all of the fields are empty |
|
|
|
 |
oneunit

|
Posted:
Sat Feb 23, 2008 7:18 pm |
|
this is my form
Code:
<?PHP
///////////////////////////////////////////////////////////////////
//you can change the ".:[~DFK~]:.DarkFireKillers" to your wn clan//
///////////////////////////////////////////////////////////////////
include("header.php");
OpenTable();
?><head>
<title>x1Ux Challenge Form</title>
<left>
<style type="text/css">
<!--
a:link {
text-decoration: none;
color: #;
}
a:visited {
text-decoration: none;
color: #;
}
a:hover {
text-decoration: underline;
color: #;
}
a:active {
text-decoration: none;
color: #;
}
.style31 {
font-size: 12px;
font-family: Arial, Helvetica, sans-serif;
color: ;
}
.style32 {
font-family: Arial, Helvetica, sans-serif;
color: ;
}
.style33 {color: #}
.style34 {font-family: Arial, Helvetica, sans-serif; font-size: 12px;}
.style37 {
font-family: "Courier New", Courier, mono;
font-size: 24px;
font-weight: bold;
}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<p align="center" class="style31"><span class="style37">One Impenetratable Unit's Challenge Form</span><br>
<br>
<strong>Welcome to One Impenetratable Unit; are you intrested in challenging our clan? if so then please fill out<br>
this application form and submit it, we will get back to you as soon as possible and in the meantime<br>
you can check out the forums and play on the server.<br>
Thank you. </strong> <br />
<span class="style31">
<left>
</left>
<left></left>
<left></left>
<left></left>
<left></left>
<left></left>
<left></left>
</span><span class="style32">
<left></left>
</span><span class="style33">
<left></left>
<left></left>
</span></p>
<left><form action="modules/Challenge_Us/OUChallengeform.php" method="post" name="Application" class="style33">
<div align="left>" class="style34">
<p>Contact Email:
<input name="ContactEmail" type="text" value="" size="30">
<br>
<br />
Clan Name:
<input name="ClanName" type="text" size="30">
<br>
<br />
Clan Website:
<input name="ClanSite" type="text" size="30">
<br />
<br />
Clan Record:
<input name="ClanRecord" type="text" size="7">
<br>
<br />
GameBattles ID:
<input name="GBID" type="text" size="7">
<br>
<br />
Gamertag To Contact:
<input name="gt" type="text" size="30">
<br>
<br />
Date To Challenge
<input name="dtc" type="text" size="10">
<br />
<br>
Time to Challenge:
<input name="Time" type="text" size="10">
<br />
<br>
Additional Information:
<input name="AddInfo" type="text" size="100">
<br />
<br />
<br />
<br />
<input name="Submit" type="submit" value="Submit Challenge Form">
<br />
<br />
<br />
*Please not that if you are cought spamming without filling this form out your IP is recored*
<span class="style31"><br>
</span></p>
</div>
</form>
</left>
<span class="style31">
</div>
</body>
</html>
<?
CloseTable();
include("footer.php");
?>
|
|
|
|
|
 |
999
Regular


Joined: Sep 12, 2006
Posts: 58
Location: Dsm, IA
|
Posted:
Sat Feb 23, 2008 7:35 pm |
|
Code:Clan Name: $_POST[ClanName]\n
Contact Email: $_POST[ContactEmail]\n
Clan Website: $_POST[ClanSite]\n
etc
|
|
|
|
|
 |
oneunit

|
Posted:
Sat Feb 23, 2008 8:49 pm |
|
what do i change the ip one to?
and thanks btw |
|
|
|
 |
999

|
Posted:
Sat Feb 23, 2008 9:53 pm |
|
I use Code:$ip = getenv(REMOTE_ADDR);
|
|
|
|
|
 |
oneunit

|
Posted:
Sun Feb 24, 2008 12:53 am |
|
so i change "IP Address: $REMOTE_ADDR"; " to that? |
|
|
|
 |
999

|
Posted:
Sun Feb 24, 2008 2:25 am |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Feb 24, 2008 10:20 am |
|
oneunit, please wrap your code with the bbcode code tag in the future. It just helps to keep the threads from being too long to read. Thanks. (I have already modified your post above to give you an idea of what I mean.) |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
|