Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
oneunit
Regular
Regular



Joined: Feb 18, 2008
Posts: 94

PostPosted: Sat Feb 23, 2008 3:04 pm Reply with quote

when i tested my "challenge us" form ( [ Only registered users can see links on this board! Get registered or login! ] ) 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 [ Only registered users can see links on this board! Get registered or login! ] 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 [ Only registered users can see links on this board! Get registered or login! ] 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>
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Sat Feb 23, 2008 6:10 pm Reply with quote

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.

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
oneunit







PostPosted: Sat Feb 23, 2008 7:10 pm Reply with quote

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







PostPosted: Sat Feb 23, 2008 7:18 pm Reply with quote

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
Regular



Joined: Sep 12, 2006
Posts: 58
Location: Dsm, IA

PostPosted: Sat Feb 23, 2008 7:35 pm Reply with quote

Code:
Clan Name: $_POST[ClanName]\n 

Contact Email: $_POST[ContactEmail]\n
Clan Website: $_POST[ClanSite]\n
etc
 
View user's profile Send private message Visit poster's website MSN Messenger
oneunit







PostPosted: Sat Feb 23, 2008 8:49 pm Reply with quote

what do i change the ip one to?


and thanks btw
 
999







PostPosted: Sat Feb 23, 2008 9:53 pm Reply with quote

I use
Code:
$ip = getenv(REMOTE_ADDR);
 
oneunit







PostPosted: Sun Feb 24, 2008 12:53 am Reply with quote

so i change "IP Address: $REMOTE_ADDR"; " to that?
 
999







PostPosted: Sun Feb 24, 2008 2:25 am Reply with quote

Yes
 
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sun Feb 24, 2008 10:20 am Reply with quote

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.)

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©