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,913
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 460
  • Total: 460

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

tc3driver

the only thing I can think of, because I just copy and paste the entire thing into the article minus the <? at the begening and the ?> at the end, is that it doesn't like to have the global in an inculde. try something like this:

remove the global statement global $sourcedir, $user_info, $context; from the "dropdown.php".

and make your article look like this

global $sourcedir, $user_info, $context;
include("dropdown.php");


grasping at straws, but a guess.

RSprinkel

Hi all,

Great little script thanks to all the contributors of this.

Quick question though.  How would I go about putting text above the actual form?  I tried adding text to it, but was getting all types of errors and I messed with it for a few hours and gave up.

Thanks much in advance for any help and again thanks for all the work on this script. ;)

Ron S.

TimUSA

This would be the easiest way


echo'
<p>Your Text Here</p>';

RSprinkel

Ahhh ok, I was putting it under the first echo section but didn't have the '; at the end.

Thanks much for the info TimUSA. ;)

RSprinkel

Hello all,

Have another question.  When we approve a member of the forum we would like to have certain information placed from the Join Us form in a Welcome Area in our Forums, can this be easily implemented into this script?


THanks much in advance for any help on this.

Hairy

I would say you could get it post post in both sections at the same time but you will have to copy-paste the info or move the topic into the welcome section if it's going to be done at a different time. 

revscott

Hey everyone,   First and foremost, thank you to all that have contributed to this script!! 

I love this script however my php skill need much improvement. 
I'm trying to work this script into a site I have been working on however I seemed to have reached a road block,  Using what I have learned here on this thread and on the other sections of the site, 
I thought I had the required knowledge to do a little modification on this. (I just changed around the items and put in a few new ones) but I ended up with a Parse Error I do not understand,

QuoteParse error: parse error, unexpected T_STRING in /html/dark/Sources/Load.php(1749) : eval()'d code(209) : eval()'d code on line 119

Here is the I code I have been trying to work with,  If I could get a fresh set of eye to peek at this I would be very thankful,  I have been playing around with this code for about 6 hours now and just can't get it right.

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=true;

// email address of recruitment admins
$email_address='rev.scott@verizon.net';

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

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

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

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


//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 a name
if (empty($_POST['real_name']) ){
$enroll_errors[] = 'You forgot to enter your name.';
}
// Check for an email
if (empty($_POST['email']) ){
$enroll_errors[] = 'You forgot to enter your email address.';
}   
// Check for an age
if (empty($_POST['age']) ){
$enroll_errors[] = 'You forgot to enter your age.';


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'] . '
Email address:  ' . $_POST['email'] . '
Game you are applying for:  ' . $_POST['game'] . '
Age:  ' . $_POST['age'] . '
Gender: ' . $_POST['gender'] . '
Location:  ' . $_POST['location'] . '
Time Zone:  ' . $_POST['timezone'] . '
Regular time of day you play:   ' . $_POST['regtod'] . '
Number of days during the week that you play:   ' . $_POST['numdays'] . '
Will you be able to attend Practice, Matches, & Wars?:  ' . $_POST['ts'] . '
User ID's (Please all that apply.  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag/User Name):  ' . $_POST['userids'] . '
Previous clan(s):  ' . $_POST['prev_clans'] . '
Do you have a headset?:  ' . $_POST['mic'] . '
Why do you want to join our clan?:  ' . $_POST['why'] . '
Do you posses any web design, graphics or other skill that could be contributed to the clan?: ' . $_POST['webskill'] . '
Recruited by a Dark Asylum Member?: ' . $_POST['damember'] . '
Dark Asylum member's name:  ' . $_POST['daname'] . '
What game systems do you have?:   ' . $_POST['systems'] . '
What other games do you play?:   ' . $_POST['othergames'] . '
Other information:  ' . $_POST['other'];

$postbody = 'Enrollment application has been made by ' . $context['user']['name'] .'<br />

[B]Real Name:[/B]  ' . $_POST['real_name'] . '
[B]Email address:[/B]  ' . $_POST['email'] . '
[B]Game you are applying for: [/B]  ' . $_POST['game'] . '
[B]Age:[/B] ' . $_POST['age'] . '
[B]Gender:[/B] ' . $_POST['gender'] . '
[B]Location:[/B] ' . $_POST['location'] . '
[B]Time Zone:[/B] ' . $_POST['timezone'] . '
[B]Regular time of day you play:[/B] ' . $_POST['regtod'] . '
[B]Number of days during the week that you play:[/B] ' . $_POST['numdays'] . '
[B]Will you be able to attend Practice, Matches, & Wars?:[/B] ' . $_POST['ts'] . '
[B]User ID's (Please all that apply.  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag/User Name):[/B] ' . $_POST['userids'] . '
[B]Previous clan(s):[/B] ' . $_POST['prev_clans'] . '
[B]Do you have a headset?:[/B] ' . $_POST['mic'] . '
[B]Why do you want to join our clan?:[/B] ' . $_POST['why'] . '
[B]Do you posses any web design, graphics or other skill that could be contributed to the clan?:[/B] ' . $_POST['webskill'] . '
[B]Recruited by a Dark Asylum Member?:[/B] ' . $_POST['damember'] . '
[B]Dark Asylum Member's name:[/B] ' . $_POST['daname'] . '
[B]What game systems do you have?:[/B] ' . $_POST['systems'] . '
[B]What other games do you play?:[/B] ' . $_POST['othergames'] . '
[B]Other information:[/B] ' . $_POST['other']. '';



            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">Game you are applying for:</TD>
<TD><SELECT id = "game" name = "game" style="WIDTH: 152px" value ="';
if (isset($_POST['game'])) echo $_POST['game'];   
echo '" />
<OPTION value="No Answer" selected>--------------------------</OPTION>
<OPTION value="Socom">Socom</OPTION>
<OPTION value="Call of Duty">Call of Duty</OPTION>
<OPTION value="Both">Both</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: 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">Time Zone:</TD>
<TD><INPUT id="timezone" name="timezone" type="text" value ="';
if (isset($_POST['timezone'])) echo $_POST['timezone'];   
echo '" /></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Regular Time of Day You Play.</TD>
<TD><SELECT id="regtod" name="regtod" style="WIDTH: 160px" value ="';
if (isset($_POST['regtod'])) echo $_POST['regtod'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="morning">Morning</OPTION>
<OPTION value="afternoon">Afternoon</OPTION>
<OPTION value="evening">Evening</OPTION>
<OPTION value="latenight">Late Night</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg">
<TD width = "200px">Number of days During the week that you play:</TD>
<TD><SELECT id="numdays" name="numdays" style="WIDTH: 160px" value ="';
if (isset($_POST['numdays'])) echo $_POST['numdays'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="1">1</OPTION>
<OPTION value="2">2</OPTION>
<OPTION value="3">3</OPTION>
<OPTION value="4">4</OPTION>
<OPTION value="5">5</OPTION>
<OPTION value="6">6</OPTION>
<OPTION value="7">7</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Will you be able to attend Practice, Matches & Wars?</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>
<OPTION value="I will try my best">I will try my best</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg">
<TD width = "200px">User ID's (Please identify all that apply.  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag/User Name):</TD>
<TD><TEXTAREA id ="userids" name ="userids" rows="4" cols="40"  value ="';
if (isset($_POST['userids'])) echo $_POST['userids'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Previous clan(s) and reason of leaving:</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">Do you have 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">Why do you want to join?</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 ="windowbg">
<TD width = "200px">Do you posses any web design, graphics or other skill that could be contributed to the clan?:</TD>
<TD><SELECT id="webskill" name="webskill" style="WIDTH: 160px" value ="';
if (isset($_POST['webskill'])) echo $_POST['webskill'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="web">Yes Web Design</OPTION>
<OPTION value="graphics">Yes Graphics</OPTION>
<OPTION value="no">No</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Recruited by a Dark Asylum Member?</TD>
<TD><SELECT id="damember" name="damember" style="WIDTH: 160px" value ="';
if (isset($_POST['damember'])) echo $_POST['damember'];   
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">Dark Asylum members name:</TD>
<TD><INPUT id="daname" name="daname" type="text" value ="';
if (isset($_POST['daname'])) echo $_POST['daname']; 
echo '" /></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">What gaming systems do you have?:</TD>
<TD><TEXTAREA id="systems" name="systems" rows="4" cols="40" value ="';
if (isset($_POST['systems'])) echo $_POST['systems'];
echo '" ></' . 'TEXTAREA></TD>
</TR>

<TR class ="windowbg">
<TD width = "200px">What other games do you play?:</TD>
<TD><TEXTAREA id="othergames" name="othergames" rows="4" cols="40" value ="';
if (isset($_POST['othergames'])) echo $_POST['othergames'];
echo '" ></' . 'TEXTAREA></TD>
</TR>

<TR class ="windowbg2">
<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 ="windowbg">
<TD colspan="2" align="center">
<INPUT type="submit" value="Submit">
<INPUT type="reset" value="Reset"></TD>
</TR>
</TABLE>
</form>

';


Thanks in advance for any help you all could send my way!  -Scott

IchBin

Change this line:
<TD width = "200px">User ID's (Please identify all that apply.  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag/User Name):</TD>

To this:
<TD width = "200px">User ID\'s (Please identify all that apply.  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag/User Name):</TD>

revscott

I can't thank you enough,  That was just what I needed, 
I had a few more of those "Apostrophe Errors" in the script and was able to correct them. Now running smooth, Thank you very much IchBin

revscott

ok,  I have corrected all the errors I had and now the script successfully loads however it when the questions are answered and the page is submitted it will not post in the forum and it will not send an email (Plus it redirects to the wrong page)
I figured the problem may be in the fact that I do not have this installed in the sites root, but I can't imagine that this would stop the email from going through.

Here is a fresh look at the code I have corrected.  Any suggestions?

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=true;

// email address of recruitment admins
$email_address='rev.scott@verizon.net';

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

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

//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 a name
if (empty($_POST['real_name']) ){
$enroll_errors[] = 'You forgot to enter your name.';
}
// Check for an email
if (empty($_POST['email']) ){
$enroll_errors[] = 'You forgot to enter your email address.';
}   
// Check for an age
if (empty($_POST['age']) ){
$enroll_errors[] = 'You forgot to enter your age.';


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'] . '
Email address:  ' . $_POST['email'] . '
Game you are applying for:  ' . $_POST['game'] . '
Age:  ' . $_POST['age'] . '
Gender: ' . $_POST['gender'] . '
Location:  ' . $_POST['location'] . '
Time Zone:  ' . $_POST['timezone'] . '
Regular time of day you play:   ' . $_POST['regtod'] . '
Number of days during the week that you play:   ' . $_POST['numdays'] . '
Will you be able to attend Practice, Matches, & Wars?:  ' . $_POST['ts'] . '
User ID(s) (Please all that apply.  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag/User Name):  ' . $_POST['userids'] . '
Previous clan(s):  ' . $_POST['prev_clans'] . '
Do you have a headset?:  ' . $_POST['mic'] . '
Why do you want to join our clan?:  ' . $_POST['why'] . '
Do you posses any web design, graphics or other skill that could be contributed to the clan?: ' . $_POST['webskill'] . '
Recruited by a Dark Asylum Member?: ' . $_POST['damember'] . '
Dark Asylum member\'s name:  ' . $_POST['daname'] . '
What game systems do you have?:   ' . $_POST['systems'] . '
What other games do you play?:   ' . $_POST['othergames'] . '
Other information:  ' . $_POST['other'];

$postbody = 'Enrollment application has been made by ' . $context['user']['name'] .'<br />

[B]Real Name:[/B]  ' . $_POST['real_name'] . '
[B]Email address:[/B]  ' . $_POST['email'] . '
[B]Game you are applying for: [/B]  ' . $_POST['game'] . '
[B]Age:[/B] ' . $_POST['age'] . '
[B]Gender:[/B] ' . $_POST['gender'] . '
[B]Location:[/B] ' . $_POST['location'] . '
[B]Time Zone:[/B] ' . $_POST['timezone'] . '
[B]Regular time of day you play:[/B] ' . $_POST['regtod'] . '
[B]Number of days during the week that you play:[/B] ' . $_POST['numdays'] . '
[B]Will you be able to attend Practice, Matches, & Wars?:[/B] ' . $_POST['ts'] . '
[B]User ID(s) (Please all that apply.  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag/User Name):[/B] ' . $_POST['userids'] . '
[B]Previous clan(s):[/B] ' . $_POST['prev_clans'] . '
[B]Do you have a headset?:[/B] ' . $_POST['mic'] . '
[B]Why do you want to join our clan?:[/B] ' . $_POST['why'] . '
[B]Do you posses any web design, graphics or other skill that could be contributed to the clan?:[/B] ' . $_POST['webskill'] . '
[B]Recruited by a Dark Asylum Member?:[/B] ' . $_POST['damember'] . '
[B]Dark Asylum Member\'s name:[/B] ' . $_POST['daname'] . '
[B]What game systems do you have?:[/B] ' . $_POST['systems'] . '
[B]What other games do you play?:[/B] ' . $_POST['othergames'] . '
[B]Other information:[/B] ' . $_POST['other']. '';



            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">Game you are applying for:</TD>
<TD><SELECT id = "game" name = "game" style="WIDTH: 152px" value ="';
if (isset($_POST['game'])) echo $_POST['game'];   
echo '" />
<OPTION value="No Answer" selected>--------------------------</OPTION>
<OPTION value="Socom">Socom</OPTION>
<OPTION value="Call of Duty">Call of Duty</OPTION>
<OPTION value="Both">Both</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: 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">Time Zone:</TD>
<TD><INPUT id="timezone" name="timezone" type="text" value ="';
if (isset($_POST['timezone'])) echo $_POST['timezone'];   
echo '" /></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Regular time of day you play:</TD>
<TD><SELECT id="regtod" name="regtod" style="WIDTH: 160px" value ="';
if (isset($_POST['regtod'])) echo $_POST['regtod'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="morning">Morning</OPTION>
<OPTION value="afternoon">Afternoon</OPTION>
<OPTION value="evening">Evening</OPTION>
<OPTION value="latenight">Late Night</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg">
<TD width = "200px">Number of days during the week that you play:</TD>
<TD><SELECT id="numdays" name="numdays" style="WIDTH: 160px" value ="';
if (isset($_POST['numdays'])) echo $_POST['numdays'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="1">1</OPTION>
<OPTION value="2">2</OPTION>
<OPTION value="3">3</OPTION>
<OPTION value="4">4</OPTION>
<OPTION value="5">5</OPTION>
<OPTION value="6">6</OPTION>
<OPTION value="7">7</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Will you be able to attend Practice, Matches and Wars?</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>
<OPTION value="I will try my best">I will try my best</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg">
<TD width = "200px">User ID(s) (Please identify all that apply:  Socom, Call Of Duty, PS3 ID & Xbox Gamer Tag or User Name):</TD>
<TD><TEXTAREA id ="userids" name ="userids" rows="4" cols="40"  value ="';
if (isset($_POST['userids'])) echo $_POST['userids'];   
echo '" ></' . 'TEXTAREA></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Previous clan(s) and reason of leaving:</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">Do you have 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">Why do you want to join?:</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 ="windowbg">
<TD width = "200px">Do you posses any web design, graphics or other skill that could be contributed to the clan?:</TD>
<TD><SELECT id="webskill" name="webskill" style="WIDTH: 160px" value ="';
if (isset($_POST['webskill'])) echo $_POST['webskill'];   
echo '" />
<OPTION value="No answer" selected>--------------------------</OPTION>
<OPTION value="web">Yes Web Design</OPTION>
<OPTION value="graphics">Yes Graphics</OPTION>
<OPTION value="no">No</OPTION>
</SELECT></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">Recruited by a Dark Asylum member?:</TD>
<TD><SELECT id="damember" name="damember" style="WIDTH: 160px" value ="';
if (isset($_POST['damember'])) echo $_POST['damember'];   
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">Dark Asylum member\'s name:</TD>
<TD><INPUT id="daname" name="daname" type="text" value ="';
if (isset($_POST['daname'])) echo $_POST['daname']; 
echo '" /></TD>
</TR>

<TR class ="windowbg2">
<TD width = "200px">What gaming systems do you have?:</TD>
<TD><TEXTAREA id="systems" name="systems" rows="4" cols="40" value ="';
if (isset($_POST['systems'])) echo $_POST['systems'];
echo '" ></' . 'TEXTAREA></TD>
</TR>

<TR class ="windowbg">
<TD width = "200px">What other games do you play?:</TD>
<TD><TEXTAREA id="othergames" name="othergames" rows="4" cols="40" value ="';
if (isset($_POST['othergames'])) echo $_POST['othergames'];
echo '" ></' . 'TEXTAREA></TD>
</TR>

<TR class ="windowbg2">
<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 ="windowbg">
<TD colspan="2" align="center">
<INPUT type="submit" value="Submit">
<INPUT type="reset" value="Reset"></TD>
</TR>
</TABLE>
</form>

';
  I really appreciate the help.

This website is proudly hosted on Crocweb Cloud Website Hosting.