TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,911
  • Total Topics: 21,307
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 361
  • Total: 362
  • tino

[Done!] Join Us! form

Started by mebymyself, October 19, 2006, 08:10:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

alan s

Er could you explain that to me again please? , Even after a year im still completely clueless with php functions lol


- Alan S

jacortina

That function is defined in the file Subs-Post.php (in the Sources directory).

It may be that depending on the processing which precedes use of this form, it MAY load up that file and the function definitions which it contains (which explains why others up-thread say they have it working).

By using the require_once() PHP command, you 'include' the file (the function definitions), but only if it hasn't already been included.

So, up at the top of the code (the configuration section) try adding the lines:
global $sourcedir;
require_once($sourcedir . '/Subs-Post.php');

alan s


DOOM666

i tyred this code for gust but it doesn't work, they still can post

Quoteif ($context['user']['is_guest'])
{
   echo
   '<h5>Access Denied</h5>
   We are sorry. You must be registered on the site in order to apply for The Fellowship Elites.';
} else  { // remove closing bracket


my code
if ($context['user']['is_guest'])
{
   echo
   '<h5>Access Denied</h5>
   We are sorry. You must be registred on the site in order to apply for  Clan membership.';
}

else

{


}

it will say what is says in the code but the can see and fill out the form and submit it.




QuoteQuick question I see you have a pop up that says you must be registered

how did you do that on your web site that is cool


and thank you in advance

tribalost

im getting a Parse error: syntax error, unexpected T_STRING in /home/trivu/public_html/Sources/Load.php(1842) : eval()'d code(209) : eval()'d code on line 1

help :(

here's my application form:
                                                                       FireFox installed?:  ' . $_POST['ts'] . '
Have microphone/headset:  ' . $_POST['mic'] . '
Would like to help pay for a server?: ' . $_POST['pay'] . '
Moderating Experience?  ' . $_POST['why'] . '
Surfing habbits:   ' . $_POST['habbits'] . '
Other information:  ' . $_POST['other'];

$postbody = 'Enrollment application has been made by ' . $context['user']['name'] .'<table>
<tr><td>Real Name:<td></td><td>  ' . $_POST['real_name'] . '</td></tr>
<tr><td>Email address:<td></td><td>  ' . $_POST['email'] . '</td></tr>
<tr><td>Current Forum Nick:<td></td><td>  ' . $_POST['aa_name'] . '</td></tr>
<tr><td>Age:<td></td><td>  ' . $_POST['age'] . '</td></tr>
<tr><td>Gender: <td></td><td>' . $_POST['gender'] . '</td></tr>
<tr><td>Location:<td></td><td>  ' . $_POST['location'] . '</td></tr>
<tr><td>Position In Mind: <td></td><td> ' . $_POST['honor'] . '</td></tr>
<tr><td>Why We Should Pick You: <td></td><td> ' . $_POST['prev_clans'] . '</td></tr>
<tr><td>Banned from any sever: <td></td><td> ' . $_POST['banned'] . '</td></tr>
<tr><td>Registered with Yahoo!? <td></td><td>' . $_POST['aaotracker'] . '</td></tr>
<tr><td>Yahoo! ID:  <td></td><td>' . $_POST['aaotracker_name'] . '</td></tr>
<tr><td>Registred with MSN? <td></td><td> ' . $_POST['xfire'] . '</td></tr>
<tr><td>MSN Account: <td></td><td> ' . $_POST['xfire_name'] . '</td></tr>
<tr><td>FireFox installed?: <td></td><td> ' . $_POST['ts'] . '</td></tr>
<tr><td>Have microphone/headset: <td></td><td> ' . $_POST['mic'] . '</td></tr>
<tr><td>Would like to help pay for a server?:<td></td><td> ' . $_POST['pay'] . '</td></tr>
<tr><td>Why do you want to join our clan? <td></td><td> ' . $_POST['why'] . '</td></tr>
<tr><td>Surfing habbits: <td></td><td> ' . $_POST['habbits'] . '</td></tr>
<tr><td>Other information: <td></td><td> ' . $_POST['other']. '</td></tr>
</table>';



            if ($enable_email)
mail($email_address, $subject, $body,"From: " . $_POST['email']);



//create new forum post with application

$msgOptions = array(
'id' =>  0 ,
'subject' => '[Pending] Application of ' . $context['user']['name'],
'body' => $postbody ,
'icon' => 'xx',
'smileys_enabled' => true,
'attachments' =>  array(),
);
$topicOptions = array(
'id' => 0 ,
'board' => $board_id,
'poll' =>  null,
'lock_mode' =>  null,
'sticky_mode' =>  null,
'mark_as_read' => true,
);
$posterOptions = array(
'id' => $context['user']['id'],
'name' => $context['user']['name'],
'email' => $user_info['email'],
'update_post_count' => true,
);
   
if ($enable_post)
            createPost($msgOptions, $topicOptions, $posterOptions);

// Redirect to thank you page
header('Location: http://' . $_SERVER['HTTP_HOST'] .'/index.php?page=' . $thank_you_article_id);

} else {
// Redirect to error page
//header('Location: http://' . $_SERVER['HTTP_HOST'] . '/index.php?page=' . $enroll_error_article_id );
echo '<h2 class="error">Error!</h2>';
echo '<p class="error">The following error(s) occured:<br />';

foreach ($enroll_errors as $msg) {
echo " - $msg<br />";
}
   echo "<p>Please, correct all errors and try again.</p>" ;



}
}
//else { // Display the form

echo '
<form action="index.php?page='  . $this_article_id  . '" method="post">
        <INPUT id="submitted" name="submitted" type="hidden" value="TRUE" />
<TABLE class = "bordercolor" cellSpacing="1" cellPadding="1" width="95%" border="0">
<TR class ="windowbg">
<TD width = "200px">* Your Name:</TD>
<TD><INPUT id="real_name" name="real_name" type="text" value ="';
if (isset($_POST['real_name'])) echo $_POST['real_name'];
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">* Email address:</TD>
<TD><INPUT id="email" name="email" type="text" value ="';
if (isset($_POST['email'])) echo $_POST['email']; else echo $user_info['email']; 
echo '" /></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">* Current Forum Nick:</TD>
<TD><INPUT id="aa_name" name="aa_name" type="text" value ="';
if (isset($_POST['aa_name'])) echo $_POST['aa_name'];
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">* Age:</TD>
<TD><INPUT id="age" name="age" type="text" value ="';
if (isset($_POST['age'])) echo $_POST['age'];   
echo '" /></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Gender:
</TD>
<TD><SELECT id = "gender" name = "gender" style="WIDTH: 152px" value ="';
if (isset($_POST['gender'])) echo $_POST['gender'];   
echo '" />
<OPTION value="No Answer" selected>--------------------------</OPTION>
<OPTION value="M">Male</OPTION>
<OPTION value="F">Female</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Location:</TD>
<TD><INPUT id="location" name="location" type="text" value ="';
if (isset($_POST['location'])) echo $_POST['location'];   
echo '" /></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Position In Mind:</TD>
<TD><INPUT id="honor" name="honor" type="text" value ="';
if (isset($_POST['honor'])) echo $_POST['honor'];   
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Why We Should Pick You</TD>
<TD><TEXTAREA id="prev_clans" name="prev_clans" rows="4" cols="40" value ="';
if (isset($_POST['prev_clans'])) echo $_POST['prev_clans'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Have you ever been permanently banned from any sever (if yes, give details):</TD>
<TD><TEXTAREA id ="banned" name ="banned" rows="4" cols="40"  value ="';
if (isset($_POST['banned'])) echo $_POST['banned'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Registered with Yahoo!?</TD>
<TD><SELECT id="aaotracker" name="aaotracker" style="WIDTH: 160px" value ="';
if (isset($_POST['aaotraker'])) echo $_POST['aaotraker'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
<OPTION value="NO">No</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Yahoo! ID:</TD>
<TD><INPUT id="aaotracker_name" name="aaotracker_name" type="text" value ="';
if (isset($_POST['aaotraker_name'])) echo $_POST['aaotraker_name']; 
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Registred with MSN?</TD>
<TD><SELECT id="xfire" name="xfire" style="WIDTH: 160px" value ="';
if (isset($_POST['xfire'])) echo $_POST['xfire'];
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
<OPTION value="NO">No</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">MSN Account:</TD>
<TD><INPUT id="xfire_name" name="xfire_name" type="text" value ="';
if (isset($_POST['xfire_name'])) echo $_POST['xfire_name'];   
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Do you have FireFox installed?:</TD>
<TD><SELECT id="ts" name="ts" style="WIDTH: 160px" value ="';
if (isset($_POST['ts'])) echo $_POST['ts'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
<OPTION value="NO">No</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Do you have microphone/headset:</TD>
<TD><SELECT id="mic" name="mic" style="WIDTH: 160px" value ="';
if (isset($_POST['mic'])) echo $_POST['mic'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
<OPTION value="NO">No</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Would you help pay for a server?:</TD>
<TD><SELECT id="pay" name="pay" style="WIDTH: 160px" value ="';
if (isset($_POST['pay'])) echo $_POST['pay'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="Monthly">Yes, monthly</OPTION>
<OPTION value="Occasionally">Yes, occasionally</OPTION>
<OPTION value="Not">No, not now</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Moderating Experience?</TD>
<TD><TEXTAREA id="why" name ="why" rows="4" cols="40" value ="';
if (isset($_POST['why'])) echo $_POST['why'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Tell us about your surfing habbits:
</TD>
<TD><TEXTAREA id="habbits" name="habbits" rows="4" cols="40" value ="';
if (isset($_POST['habbits'])) echo $_POST['habbits'];
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Any other information you think can help us to make a decision:</TD>
<TD><TEXTAREA id="other" name = "other" rows="4" cols="40" value ="';
if (isset($_POST['other'])) echo $_POST['other'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD colspan="2" align="center">
<INPUT type="submit" value="Submit">
<INPUT type="reset" value="Reset"></TD>
</TR>
</TABLE>
</form>

';

mfKG

#105

echo'          
FireFox installed?:  ' . $_POST['ts'] . '
Have microphone/headset:  ' . $_POST['mic'] . '


dunno,....but think at the beginning theres missing atleast "echo'" ;) (and then close this also....)

tribalost

i just realized that i erased the whole head part -.-'''
tnx for the help anyways :)

Phamon

First off a HUGE thank you is due... finally got this up and running and my guild loves this addition to our forums.

I am not using the e-mail feature yet(and probably wont) and am only having one slight issue with the forum post results, a large gap between the initial text and the "table" as you can see in the attached image. I have modified the code several times to try to fix this but am finding as a work around that simply opening the new posts to modify them and hitting submit without changing anything does the trick but would love it if it could be fixed where it wasn't necessary

Here is the code I am using... any help would be greatly appreciated
global $sourcedir, $user_info, $context ;

require_once($sourcedir . '/Subs.php');
require_once($sourcedir .'/Subs-Post.php');



// CONFIGURATION SECTION

//send the application by email?
$enable_email=false;

// email address of recruitment staf member
$email_address='recruitement@vgfoundation.com';

//post the application on forum?
$enable_post=true;

//board id to which the application should be posted
$board_id=3;

//the id of the this article
$this_article_id = '19';

//article to be redirected when form is submitted
$thank_you_article_id = '20';


//END OF CONFIGURATION SECTION

$show_form= 'true';
if (isset($_POST['submitted'])) {
// Handle the form

// Check required fields
$enroll_errors = array(); //Initialize error array

// Check for age
if (empty($_POST['age']) ){
$enroll_errors[] = 'You forgot to enter your age.';
}
// Check for Gender
if (empty($_POST['gender']) ){
$enroll_errors[] = 'You forgot to enter your gender.';
}
// Check for an In-Game name
if (empty($_POST['vg_name']) ){
$enroll_errors[] = 'You forgot to enter your In-Game Name.';
}
// Check for Character Race
if (empty($_POST['race']) ){
$enroll_errors[] = 'You forgot to enter your Characters Race.';
}
// Check for Adventure Class
if (empty($_POST['adv_class']) ){
$enroll_errors[] = 'You forgot to enter your Adventure Class.';
}
// Check for Adventure Level
if (empty($_POST['adv_lvl']) ){
$enroll_errors[] = 'You forgot to enter your Adventure Level.';
}
// Check for Crafting Class
if (empty($_POST['craft_class']) ){
$enroll_errors[] = 'You forgot to enter your crafting class.';
}
// Check for Crafting Level
if (empty($_POST['craft_lvl']) ){
$enroll_errors[] = 'You forgot to enter your Crafting Level.';
}
// Check for Diplomacy Level
if (empty($_POST['diplo_lvl']) ){
$enroll_errors[] = 'You forgot to enter your Diplomacy Level.';
}
// Check for Previous Guilds
if (empty($_POST['prev_guild']) ){
$enroll_errors[] = 'You forgot to enter your Previous guilds... enter none if none.';
}
// Check for Goals
if (empty($_POST['goals']) ){
$enroll_errors[] = 'You forgot to enter your In-Game goals.';
}
// Check for Known members
if (empty($_POST['known_members']) ){
$enroll_errors[] = 'You forgot to enter the names of the guildies you have met... enter none if you havent had the pleasure.';
}
// Check for looking to Raid?
if (empty($_POST['raid']) ){
$enroll_errors[] = 'You forgot to enter if you are interested in Raiding.';
}
// Check for Ventrillo
if (empty($_POST['vent']) ){
$enroll_errors[] = 'You forgot to enter your willingness to install Ventrillo.';
}
// Check for a Mic
if (empty($_POST['mic']) ){
$enroll_errors[] = 'You forgot to enter if you have a mic or not.';
}
// Check for Playtimes
if (empty($_POST['playtimes']) ){
$enroll_errors[] = 'You forgot to enter your play times.';
}
// Check for Team-oriented
if (empty($_POST['team']) ){
$enroll_errors[] = 'You forgot to enter if you are team oriented.';
}
// Check for Expectations
if (empty($_POST['gimme']) ){
$enroll_errors[] = 'You forgot to enter your guild expectations.';
}
// Check for Leadership needs
if (empty($_POST['leader']) ){
$enroll_errors[] = 'You forgot to enter your Leadership expectations.';
}
// Check for where they heard of us
if (empty($_POST['where']) ){
$enroll_errors[] = 'You forgot to enter where you heard about us.';
}
// Check for Other
if (empty($_POST['other']) ){
$enroll_errors[] = 'You forgot to enter a little more about yourself.';


if (empty($enroll_errors)) { //Everything seems to be OK
     
        $show_form='false';



// email an application

$subject = 'Enrollment Application';
$body = 'Enrollment application has been made by ' . $context['user']['name'] .
' from IP Address ' . $user_info['ip'] . '
Real Name:  ' . $_POST['real_name'] . '
Current Game Name:  ' . $_POST['vg_name'] . '
Age:  ' . $_POST['age'] . '
Gender: ' . $_POST['gender'] . '
Location:  ' . $_POST['location'] . '
Current Honor:  ' . $_POST['honor'] . '
Previous clan(s):  ' . $_POST['prev_clans'] . '
Banned from any sever:  ' . $_POST['banned'] . '
Registered with AAOTracker? ' . $_POST['aaotracker'] . '
AAOTracker name:  ' . $_POST['aaotracker_name'] . '
Registred with X-fire?  ' . $_POST['xfire'] . '
X-Fire Account:  ' . $_POST['xfire_name'] . '
TeamSpeak installed?:  ' . $_POST['ts'] . '
Have microphone/headset:  ' . $_POST['mic'] . '
Would like to help pay for a server?: ' . $_POST['pay'] . '
Why do you want to join our clan?  ' . $_POST['why'] . '
Gaming habbits:   ' . $_POST['habbits'] . '
Other information:  ' . $_POST['other'];

$postbody = 'Enrollment application has been made by ' . $context['user']['name'].'[hr][html]<table>
<tr><td>1.) RL Name(optional):<td></td><td>  ' . $_POST['real_name'] . '</td></tr>
<tr><td>2.) RL Age:<td></td><td>  ' . $_POST['age'] . '</td></tr>
<tr><td>3.) RL Gender: <td></td><td>' . $_POST['gender'] . '</td></tr>
<tr><td>4.) Current Game Name:<td></td><td>  ' . $_POST['vg_name'] . '</td></tr>
<tr><td>5.) Player Race: <td></td><td> ' . $_POST['race'] . '</td></tr>
<tr><td>6.) Adventuring Class: <td></td><td> ' . $_POST['adv_class'] . '</td></tr>
<tr><td>7.) Adventuring Level: <td></td><td> ' . $_POST['adv_lvl'] . '</td></tr>
<tr><td>8.) Crafting Class: <td></td><td> ' . $_POST['craft_class'] . '</td></tr>
<tr><td>9.) Crafting Level: <td></td><td> ' . $_POST['craft_lvl'] . '</td></tr>
<tr><td>10.) Diplomacy Level: <td></td><td> ' . $_POST['diplo_lvl'] . '</td></tr>
<tr><td>11.) What Games & Guilds have you been apart of in the past year?: <td></td><td> ' . $_POST['prev_guild'] . '</td></tr>
<tr><td>12.) What are your Future Goals for yourself in Vanguard?: <td></td><td> ' . $_POST['goals'] . '</td></tr>
<tr><td>13.) Do you know any Foundation members? If so who and what was your experience with them. <td></td><td>' . $_POST['known_members'] . '</td></tr>
<tr><td>14.) Has one of them agreed to sponsor you?:  <td></td><td>' . $_POST['sponsor'] . '</td></tr>
<tr><td>15.) What makes you a good fit for Foundation? <td></td><td> ' . $_POST['good_fit'] . '</td></tr>
<tr><td>16.) Are you looking to Raid? Kill the Big Stuff?: <td></td><td> ' . $_POST['raid'] . '</td></tr>
<tr><td>17.) Ventrilo installed or willing to install?: <td></td><td> ' . $_POST['vent'] . '</td></tr>
<tr><td>18.) Have microphone/headset: <td></td><td> ' . $_POST['mic'] . '</td></tr>
<tr><td>19.) What are your game play times and frequency of play? Time Zone?:<td></td><td> ' . $_POST['playtimes'] . '</td></tr>
<tr><td>20.) We are looking for team oriented people, do you fit this criteria?: <td></td><td> ' . $_POST['team'] . '</td></tr>
<tr><td>21.) What do you expect to get out of Foundation if selected to be a member?: <td></td><td> ' . $_POST['gimme'] . '</td></tr>
<tr><td>22.) What do you feel are the most important aspects of a leader?: <td></td><td> ' . $_POST['leader'] . '</td></tr>
<tr><td>22.) Where did you hear about us?<td></td><td> ' . $_POST['where'] . '</td></tr>
<tr><td>23.) Other information: <td></td><td> ' . $_POST['other']. '</td></tr>
</table>[/html]';



            if ($enable_email)
mail($email_address, $subject, $body,"From: " . $_POST['email']);



//create new forum post with application

$msgOptions = array(
'id' =>  0 ,
'subject' => '[Pending] Application of ' . $context['user']['name'],
'body' => $postbody ,
'icon' => 'xx',
'smileys_enabled' => true,
'attachments' =>  array(),
);
$topicOptions = array(
'id' => 0 ,
'board' => $board_id,
'poll' =>  null,
'lock_mode' =>  null,
'sticky_mode' =>  null,
'mark_as_read' => true,
);
$posterOptions = array(
'id' => $context['user']['id'],
'name' => $context['user']['name'],
'email' => $user_info['email'],
'update_post_count' => true,
);
   
if ($enable_post)
            createPost($msgOptions, $topicOptions, $posterOptions);

// Redirect to thank you page
header('Location: http://www.vgfoundation.com/forums/index.php?page=20');

} else {
// Redirect to error page
//header('Location: http://' . $_SERVER['HTTP_HOST'] . '/index.php?page=' . $enroll_error_article_id );
echo '<h2 class="error">Error!</h2>';
echo '<p class="error">The following error(s) occured:<br />';

foreach ($enroll_errors as $msg) {
echo " - $msg<br />";
}
   echo "<p>Please, correct all errors and try again.</p>" ;



}
}
//else { // Display the form

echo '
<form action="index.php?page='  . $this_article_id  . '" method="post">
        <INPUT id="submitted" name="submitted" type="hidden" value="TRUE" />
<TABLE class = "bordercolor" cellSpacing="1" cellPadding="1" width="95%" border="0">
<TR class ="windowbg">
<TD width = "200px">Your real Name(optional):</TD>
<TD><INPUT id="real_name" name="real_name" type="text" value ="';
if (isset($_POST['real_name'])) echo $_POST['real_name'];
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">You have read and understand our guilds Tenets as described <A href="http://www.vgfoundation.com/forums/index.php?topic=2.0">here</A>.</TD>
<TD><SELECT id="tenets" name="tenets" style="WIDTH: 160px" value ="';
if (isset($_POST['tenets'])) echo $_POST['tenets'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">You have read and understand our guilds recruitment process as described <A href="http://www.vgfoundation.com/forums/index.php?topic=172.0">here</A>.</TD>
<TD><SELECT id="recruitment" name="recruitment" style="WIDTH: 160px" value ="';
if (isset($_POST['recruitment'])) echo $_POST['recruitment'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Age:</TD>
<TD><INPUT id="age" name="age" type="text" value ="';
if (isset($_POST['age'])) echo $_POST['age'];   
echo '" /></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Gender:
</TD>
<TD><SELECT id = "gender" name = "gender" style="WIDTH: 160px" value ="';
if (isset($_POST['gender'])) echo $_POST['gender'];   
echo '" />
<OPTION value="No Answer" selected>--------------------------</OPTION>
<OPTION value="M">Male</OPTION>
<OPTION value="F">Female</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Current Main Characters Name:</TD>
<TD><INPUT id="aa_name" name="vg_name" type="text" value ="';
if (isset($_POST['vg_name'])) echo $_POST['vg_name'];
echo '" /></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Player Race:</TD>
<TD><SELECT id = "race" name = "race" style="WIDTH: 160px" value ="';
if (isset($_POST['race'])) echo $_POST['race'];   
echo '" />
<OPTION value="No Answer" selected>--------------------------</OPTION>
<OPTION value="Dwarf">Dwarf</OPTION>
<OPTION value="Thestran Human">Thestran Human</OPTION>
<OPTION value="Halfling">Halfling</OPTION>
<OPTION value="High Elf">High Elf</OPTION>
<OPTION value="Lesser Giant">Lesser Giant</OPTION>
<OPTION value="Varanjar Barbarian">Varanjar Barbarian</OPTION>
<OPTION value="Vulmane">Vulmane</OPTION>
<OPTION value="Qualian Human">Qualian Human</OPTION>
<OPTION value="Gnome">Gnome</OPTION>
<OPTION value="Dark Elf">Dark Elf</OPTION>
<OPTION value="Varanthari Barbarian">Varanthari Barbarian</OPTION>
<OPTION value="Kurashasa">Kurashasa</OPTION>
<OPTION value="Kojani Human">Kojani Human</OPTION>
<OPTION value="Goblin">Goblin</OPTION>
<OPTION value="Half Elf">Half Elf</OPTION>
<OPTION value="Wood Elf">Wood Elf</OPTION>
<OPTION value="Orc">Orc</OPTION>
<OPTION value="Raki">Raki</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Adventure Class:</TD>
<TD><SELECT id = "adv_class" name = "adv_class" style="WIDTH: 160px" value ="';
if (isset($_POST['adv_class'])) echo $_POST['adv_class'];   
echo '" />
<OPTION value="No Answer" selected>--------------------------</OPTION>
<OPTION value="DRK">Dreadknight</OPTION>
<OPTION value="WAR">Warrior</OPTION>
<OPTION value="PAL">Palladin</OPTION>
<OPTION value="ROG">Rogue</OPTION>
<OPTION value="BRD">Bard</OPTION>
<OPTION value="RNG">Ranger</OPTION>
<OPTION value="MNK">Monk</OPTION>
<OPTION value="PSI">Psionicist</OPTION>
<OPTION value="NEC">Necromancer</OPTION>
<OPTION value="SOR">Sorceror</OPTION>
<OPTION value="DRU">Druid</OPTION>
<OPTION value="CLR">Cleric</OPTION>
<OPTION value="BMG">Blood Mage</OPTION>
<OPTION value="DSC">Disciple</OPTION>
<OPTION value="SHM">Shaman</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Adventure Level:</TD>
<TD><INPUT id="adv_lvl" name="adv_lvl" type="text" value ="';
if (isset($_POST['adv_lvl'])) echo $_POST['adv_lvl'];
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Crafting Class:</TD>
<TD><SELECT id = "craft_class" name = "craft_class" style="WIDTH: 160px" value ="';
if (isset($_POST['craft_class'])) echo $_POST['craft_class'];   
echo '" />
<OPTION value="No Answer" selected>--------------------------</OPTION>
<OPTION value="Undecided">Undecided</OPTION>
<OPTION value="Artisan">Artisan</OPTION>
<OPTION value="Minerologist">Minerologist</OPTION>
<OPTION value="Carpenter">Carpenter</OPTION>
<OPTION value="Blacksmith">Blacksmith</OPTION>
<OPTION value="Armorsmith">Armorsmith</OPTION>
<OPTION value="Weaponsmith">Weaponsmith</OPTION>
<OPTION value="Outfitter">Outfitter</OPTION>
<OPTION value="Leatherworker">Leatherworker</OPTION>
<OPTION value="Tailor">Tailor</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Crafting Level:</TD>
<TD><INPUT id="craft_lvl" name="craft_lvl" type="text" value ="';
if (isset($_POST['craft_lvl'])) echo $_POST['craft_lvl'];   
echo '" /></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Diplomacy Level:</TD>
<TD><INPUT id="diplo_lvl" name="diplo_lvl" type="text" value ="';
if (isset($_POST['diplo_lvl'])) echo $_POST['diplo_lvl'];
echo '" /></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">What Games & Guilds have you been a part of in the last year :</TD>
<TD><TEXTAREA id="prev_guild" name="prev_guild" rows="5" cols="40" value ="';
if (isset($_POST['prev_guild'])) echo $_POST['prev_guild'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">What are your future goals for yourself in Vanguard:</TD>
<TD><TEXTAREA id ="goals" name ="goals" rows="5" cols="40"  value ="';
if (isset($_POST['goals'])) echo $_POST['goals'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Do you know any current Foundation members? If so, please describe your experience with them:</TD>
<TD><TEXTAREA id ="known_members" name ="known_members" rows="5" cols="40"  value ="';
if (isset($_POST['known_members'])) echo $_POST['known_members'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Have they already offered to sponsor you?:</TD>
<TD><TEXTAREA id ="sponsor" name ="sponsor" rows="1" cols="40"  value ="';
if (isset($_POST['sponsor'])) echo $_POST['sponsor'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">What makes you a good fit for Foundation?:</TD>
<TD><TEXTAREA id ="good_fit" name ="good_fit" rows="5" cols="40"  value ="';
if (isset($_POST['good_fit'])) echo $_POST['good_fit'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Are you looking to Raid? Kill the big stuff?</TD>
<TD><SELECT id="raid" name="raid" style="WIDTH: 160px" value ="';
if (isset($_POST['raid'])) echo $_POST['raid'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
<OPTION value="NO">No</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Ventrillo installed or willing to install?</TD>
<TD><SELECT id="vent" name="vent" style="WIDTH: 160px" value ="';
if (isset($_POST['vent'])) echo $_POST['vent'];
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">Do you have a microphone/headset?:</TD>
<TD><SELECT id="mic" name="mic" style="WIDTH: 160px" value ="';
if (isset($_POST['mic'])) echo $_POST['mic'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
<OPTION value="NO">No</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">What are your Game playtimes and frequency of play?:</TD>
<TD><TEXTAREA id ="playtimes" name ="playtimes" rows="5" cols="40"  value ="';
if (isset($_POST['playtimes'])) echo $_POST['playtimes'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">We are looking for team oriented people... do you fit this description:</TD>
<TD><SELECT id="team" name="team" style="WIDTH: 160px" value ="';
if (isset($_POST['team'])) echo $_POST['team'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="YES">Yes</OPTION>
</SELECT></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">What do you expect out of Foundation if selected to become a member?:</TD>
<TD><TEXTAREA id ="gimme" name ="gimme" rows="5" cols="40"  value ="';
if (isset($_POST['gimme'])) echo $_POST['gimme'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg2">
<TD width = "200px">What do you feel are the most important aspects of a leader?:</TD>
<TD><TEXTAREA id ="leader" name ="leader" rows="5" cols="40"  value ="';
if (isset($_POST['leader'])) echo $_POST['leader'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>
<TR class ="windowbg">
<TD width = "200px">Where did you hear about us?:</TD>
<TD><INPUT id="where" name="where" type="text" value ="';
if (isset($_POST['where'])) echo $_POST['where'];
echo '" /></TD>
<TR class ="windowbg2">
<TD width = "200px">Anything else we should consider upon reviewing your application?:</TD>
<TD><TEXTAREA id ="other" name ="other" rows="5" cols="40"  value ="';
if (isset($_POST['other'])) echo $_POST['other'];   
echo '" ></' . 'TEXTAREA></TD>

</TR>
<TR class ="windowbg">
<TD colspan="2" align="center">
<INPUT type="submit" value="Submit">
<INPUT type="reset" value="Reset"></TD>
</TR>
                            <c>(be sure to only hit submit once)</c>
</form>
</TABLE>';


I would imagine the gap would be coming from somewhere in the following line but I have no idea how

$postbody = 'Enrollment application has been made by ' . $context['user']['name'].'[hr][html]<table>

ftk

That was a really great job~! I can imply immediately without difficulty...

BTW, can anyone tell me how to put the pre-set variable into the form so that user no need to input again (e.g. name / email / any other info from his profile etc.)

Thanks~!

ftk

just change all <> to []

here is my code:
[table]
[tr][td]Name:[/td][td] ' . $_POST['real_name'] . '[/td][/tr]
[tr][td]Email address:[/td][td] ' . $_POST['email'] . '[/td][/tr]
[tr][td]Current Game Name:[/td][td] ' . $_POST['aa_name'] . '[/td][/tr]
[tr][td]Age:[/td][td] ' . $_POST['age'] . '[/td][/tr]
[tr][td]Gender:[/td][td] ' . $_POST['gender'] . '[/td][/tr]
[tr][td]Location:[/td][td] ' . $_POST['location'] . '[/td][/tr]
[tr][td]Current Honor:[/td][td] ' . $_POST['honor'] . '[/td][/tr]
[tr][td]Previous clan(s):[/td][td] ' . $_POST['prev_clans'] . '[/td][/tr]
[tr][td]Banned from any sever:[/td][td] ' . $_POST['banned'] . '[/td][/tr]
[tr][td]Registered with AAOTracker?[/td][td] ' . $_POST['aaotracker'] . '[/td][/tr]
[tr][td]AAOTracker name:[/td][td] ' . $_POST['aaotracker_name'] . '[/td][/tr]
[tr][td]Registred with X-fire?[/td][td] ' . $_POST['xfire'] . '[/td][/tr]
[tr][td]X-Fire Account:[/td][td] ' . $_POST['xfire_name'] . '[/td][/tr]
[tr][td]TeamSpeak installed?:[/td][td] ' . $_POST['ts'] . '[/td][/tr]
[tr][td]Have microphone/headset:[/td][td] ' . $_POST['mic'] . '[/td][/tr]
[tr][td]Would like to help pay for a server?:[/td][td] ' . $_POST['pay'] . '[/td][/tr]
[tr][td]Why do you want to join our clan?[/td][td] ' . $_POST['why'] . '[/td][/tr]
[tr][td]Gaming habbits:[/td][td] ' . $_POST['habbits'] . '[/td][/tr]
[tr][td]Other information:[/td][td] ' . $_POST['other']. '[/td][/tr]
[/table]

This website is proudly hosted on Crocweb Cloud Website Hosting.