You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 51 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - email form [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
[SFA] Admin
Guest






PostPosted: Sun Feb 13, 2005 6:58 am Reply with quoteBack to top

hi, theos or any other coder, can u help me with a problem please.

ok ive got this recruitment form, and you have to stick the index.php in a folder in the modules section and an apply.php in the root folder.
everything works, apart from ,when i send the emila it gets tot he email address but the form comes up black, there is no information in the email when it gets to the mialbox, it gets there, but without anything in it.

index.php
Code:
<?
include("header.php");
OpenTable();
?><head>
<title>ClanKit Recruitment Form</title>

<left>
<!--
a:link {
   text-decoration: none;
   color: #666666;
}
a:visited {
   text-decoration: none;
   color: #666666;
}
a:hover {
   text-decoration: none;
   color: #FFFFFF;
}
a:active {
   text-decoration: none;
   color: #666666;
}
.style31 {
   font-size: 12px;
   font-family: Arial, Helvetica, sans-serif;
   color: #000000;
}
.style32 {
   font-family: Arial, Helvetica, sans-serif;
   color: #000000;
}
.style33 {color: #000000}
.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 class="style31"><span class="style37">RECRUITMENT FORM</span><br>
              <br>
              <strong>Welcome soldier! you are intrested in joining our clan then please fill out<br>
            this application form
            and submit it, we will get back to you as soon as<br>
            possible and in the meantime you can
            check out the forums.<br>
        Thank you. </strong> </p>
            <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><left><form action="apply.php" method="post" name="Application" class="style33">
              <div align="left>" class="style34">
      Real Name:
          <input name="RealName" type="text" value="" size="15">
      Gaming Name:
      <input name="GamerName" type="text" size="15">
      <br>
      Age:
      <input name="Age" type="text" size="2">
      <br>
      Location:
      <input name="Location" type="text" size="15">
      <br>
      Email Address:
      <input name="EmailAddress" type="text" size="30">
      Hours spent online per week:
      <input name="Hours" type="text" size="15">
      <br>
      <br>
      If you have been in a clan before, please list all of the<br>
      ones you were in and the reason why you left them:<br>
      <textarea name="Clans" cols="50" rows="3" textarea="textarea"></textarea>
      <br>
      <br>
      Will you be able to attend practices and matches when scheduled?:
          <select name="Practices">
                        <option selected>------------------</option>
                            <option>Yes</option>
                            <option>I'll do my best to be there</option>       
                            <option>Maybe not</option>
                            <option>No</option>
          </select>
          <br>
          <br>
    Your favorite weapon?:
    <input name="Weapon" type="text" size="20">
    Your favorite vehicle?:
    <input name="Vehicle" type="text" size="20">
    <br>
    <br>
    <br>
    Please explain a little about yourself, when you are normally online,<br>
    when you can get a microphone (If you dont already have one) and anything<br>
    else you would like to inform us:<br>
    <textarea name="About" cols="50" rows="3" textarea="textarea"></textarea>
    <br>
    <br>
      Would you help pay for a server?:
            <select name="Pay">
              <option selected>------------------</option>
              <option>Yes</option>
              <option>No</option>
            </select>
            <br>
            <br>
      And finally....<br>
      Where did you hear about our clan?:<br>
      <textarea name="Where" cols="50" rows="3" textarea="textarea"></textarea>
      <br>
      <br>
      <input name="Submit" type="submit" value="Submit Recruitment Form">
              </div>
           </form>
           <span class="style31">Powered by <a href="www.clankit.bravoclan.com">ClanKit&trade;</a><br>
           </span></left>
                <span class="style31">
</div>
</body>
</html>
<?
CloseTable();
include("footer.php");
?>
                </span>


apply.php
Code:

/*********************************************************************************************************/
/* ClanKit      - Please Read!                                                                                        */
/*                                                                                                                                  */
/* 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, o  */
/* you can read the instruction manual included with your ClanKit package.               */
/***********************************************************************************************************/
<?
$EmailTo = "*****@sfa-clan.org";
$Subject = "ClanKit Recruitment Form from $FirstName\n";
$Name = "$FirstName\n";
$App = "RealName: $RealName\n GamerName: $GamerName\n Age: $Age\n Location: $Location\n EmailAddress: $EmailAddress\n Hours spent online per week: $Hours\n Other Clans: $Clans\n Will you be able to attend practices? $Practices\n Your favorite weapon?: $Weapon\n Your favorite vehicle: $Vehicle\n About yourself: $About\n Would you help pay for a server?: $Pay\n Where did you hear about 2ndRB?: $Where\n $WhyJoin\n IP Address: $REMOTE_ADDR";
mail($EmailTo,$Subject,$App,"From: $EmailAddress\n");
?>
<html>
<body bgcolor="#000000">
<center>
<font face="Arial"><font color="white"><b>Thank you for your time<br><A href="http://www.sfa-clan.org">Click Here</A> to return<b></font>
</body>
</html>
Find all posts by Anonymous
Packrat-MRP-
Guest






PostPosted: Thu May 05, 2005 1:53 pm Reply with quoteBack to top

I had no problem with it
Find all posts by Anonymous
shrek_rock
Captain
Captain


Joined: Nov 24, 2003
Posts: 709


PostPosted: Thu May 05, 2005 2:06 pm Reply with quoteBack to top

Try giving each of your values a variable...

value="" should be value="$RealName"

_________________
Image

Image
Find all posts by shrek_rockView user's profileSend private messageSend e-mailVisit poster's website
Campo
Guest






PostPosted: Sun May 22, 2005 12:47 pm Reply with quoteBack to top

I am having the same problem. Anybody know what it needs? Perhaps the cgi-bin folder?
Find all posts by Anonymous
redwilly
Nuke Soldier
Nuke Soldier


Joined: May 30, 2005
Posts: 19


PostPosted: Mon May 30, 2005 7:35 am Reply with quoteBack to top

i dont know i just made my own, so much easier Smile
Find all posts by redwillyView user's profileSend private message
Guest







PostPosted: Sat Oct 29, 2005 5:26 am Reply with quoteBack to top

Did you get this fixed, cos I got the same problem.

Here's my apply.php:

Code:

/*********************************************************************************************************/
/* ClanKit      - Please Read!                                                                                        */
/*                                                                                                                                  */
/* 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, o  */
/* you can read the instruction manual included with your ClanKit package.               */
/***********************************************************************************************************/
<?
$EmailTo = "recruitment@bad.cybernetic-hosting.co.uk";
$Subject = "-=BAD=- Clan Recruitment Form from $FirstName\n";
$Name = "$FirstName\n";
$App = "RealName: $RealName\n GamerName: $GamerName\n Age: $Age\n Location: $Location\n EmailAddress: $EmailAddress\n Game?: $BF2orMOHAA\n Hours spent online per week: $Hours\n Other Clans: $Clans\n Will you be able to attend practices? $Practices\n Do you have DMW?: $DMW\n What is your DMW Username/ID: $DMWAccount\n About yourself: $About\n Would you help pay for a server?: $Pay\n Where did you hear about -=[BAD]=-?: $Where\n Have you read the Recruitment Policy and Clan Code of Conduct?: $IHave\n Additional information: $WhyJoin\n IP Address: $REMOTE_ADDR";
mail($EmailTo,$Subject,$App,"From: $EmailAddress\n");
?>
<html>
<body bgcolor="#000000">
<center>
<font face="Arial"><font color="white"><b>Thank you for your time<br><A href="http://bad.cybernetic-hosting.co.uk/">Click Here</A> to return<b></font>
</body>
</html>


and my index.php file:

Code:

<?
include("header.php");
OpenTable();
?><head>
<title>ClanKit Recruitment Form</title>

<left>
     <style type="text/css">
<!--
a:link {
   text-decoration: none;
   color: #000000;
}
a:visited {
   text-decoration: none;
   color: #000000;
}
a:hover {
   text-decoration: none;
   color: #FFFFFF;
}
a:active {
   text-decoration: none;
   color: #000000;
}
.style31 {
   font-size: 12px;
   font-family: Arial, Helvetica, sans-serif;
   color: #000000;
}
.style32 {
   font-family: Arial, Helvetica, sans-serif;
   color: #000000;
}
.style33 {color: #000000}
.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 class="style31"><span class="style37"><center>-=[BAD]=- Clan Recruitment Form</center></span><br>
              <br>
              <strong><center>Welcome!</center> <br><br> <center>If you are intrested in joining our clan then please click <A href="http://www.badclan.alphafrag.net/www/modules.php?name=Forums&file=viewtopic&t=141">here</A>
            to view our Recruitment Policy within the Clan Code of Conduct. Then fill out the application form. Once submitted we will get back to you as soon as
            possible, in the meantime why not
            check out our forums.</center></strong> </p><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><left><form action="apply.php" method="post" name="Application" class="style33">
              <div align="left>" class="style34">
      Real Name:
          <input name="RealName" type="text" value="" size="15">
      Gaming Name:
      <input name="GamerName" type="text" size="15">
      <br>
      Age:
      <input name="Age" type="text" size="2">
      <br>
      Location:
      <input name="Location" type="text" size="15">
      <br>
      Email Address:
      <input name="EmailAddress" type="text" size="30">
      Hours spent online per week:
      <input name="Hours" type="text" size="15">
      <br>
      <br>
    Are you applying for BF2, MOH:AA or both?:
    <select name="BF2orMOHAA">
                  <option selected>-------</option>
                     <option>BF2</option>
                     <option>MOHAA</option>
                     <option>Both</option>
            </select>         
   <br>
      <br>
      If you have been in a clan before, please list all of the<br>
      ones you were in and the reason why you left them:<br>
      <textarea name="Clans" cols="50" rows="3" textarea="textarea"></textarea>
      <br>
      <br>
      Will you be able to attend practices and matches when scheduled?:
          <select name="Practices">
                        <option selected>------------------</option>
                            <option>Yes</option>
                            <option>I'll do my best to be there</option>       
                            <option>Maybe not</option>
                            <option>No</option>
          </select>
          <br>
          <br>
    Do you have DMW?:
    <select name="Weapon">
                  <option selected>-------</option>
                     <option>Yes</option>
                     <option>No</option>
                     
        </select>
      
                  
    If yes, what is your DMW Username/ID?:
    <input name="Vehicle" type="text" size="20">
    <br>
    <br>
    Please explain a little about yourself, when you are normally online,<br>
    when you can get a microphone (If you dont already have one) and anything<br>
    else you would like to inform us:<br>
    <textarea name="About" cols="50" rows="3" textarea="textarea"></textarea>
    <br>
    <br>
      Would you help pay for a server?:
            <select name="Pay">
              <option selected>------------------</option>
              <option>Yes</option>
              <option>No</option>
            </select>
            <br>
      <br>
      Where did you hear about our clan?:<br>
      <textarea name="Where" cols="50" rows="3" textarea="textarea"></textarea>
      <br>
       Have you read, understood and agree with the Recruitment Policy and the Clan Code of Conduct?:
      <select name="IHave">
                  <option selected>-------</option>
                     <option>Yes</option>
                     <option>No</option>
      </select>
    
     <br>
     <br>
      <input name="Submit" type="submit" value="Submit Recruitment Form">
              </div>
           </form>
           <span class="style31">Powered by <a href="http://badclan.alphafrag.net/www">BAD Clan&trade;</a><br>
           </span></left>
                <span class="style31">
</div>
</body>
</html>
<?
CloseTable();
include("footer.php");
?>
                </span>



Thx for any help you can give.

BTW apply.php is in the main directory and index.php and style.css is in a folder called Recruitment, in the modules section.

I'm still receiving the email just no infor with it.

Alexis.
Find all posts by Anonymous
shrek_rock
Captain
Captain


Joined: Nov 24, 2003
Posts: 709


PostPosted: Mon Oct 31, 2005 5:09 am Reply with quoteBack to top

hi, it's better to use $_POST to get your form fields. Try this in apply.php

Code:

$Name = "".$_POST['FirstName']."\n";


or place the $_POST in a variable first like

Code:

$FirstName = $_POST['FirstName'];


then place that variable in your form like

Code:

$Name = "$FirstName\n";



_________________
Image

Image
Find all posts by shrek_rockView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
You can post new topics in this forum
You can 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 1.083 Seconds - 335 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::