Help - Search - Members - Calendar
Full Version: Request: Register.php Script Help
Zymic Webmaster Forums > Zymic Free Web Hosting > Zymic Free Web Hosting - General Discussion & Help
Panthro
When members register, they can't put a full E-mail address without errors. However a single name allows registration
EXAMPLE: Johndoe@emailclient.com Don't work | but Johndoe works. Any help is appretiated. Thanks in advance
(I never posted a script before and not sure if it will work. So I added an attached file)


Here is my Register.php

CODE
<?php

$page_title = "Register";
$rank_check = 0;
include "header.inc.php";

if (!$remember_day) { $remember_day = "DD"; }
if (!$remember_month) { $remember_month = "MM"; }
if (!$remember_year) { $remember_year = "YYYY"; }
if ($remember_gender == 1) { $rememberFemale = " SELECTED"; } else { $rememberMale = " SELECTED"; }

print "$openHTML";

ECHO <<<END

<P align="center"><FORM ACTION=$base_url/register.pro.php?game=$game METHOD=POST>
<CENTER><FONT SIZE="-2" COLOR="#FF0000"><B>*</B></FONT><FONT SIZE="-1">
- Information checked with a red star means that information<BR>
is required to register here on Pet Game!</FONT>

<P><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=400>
<TR>
<TD COLSPAN=2 BGCOLOR="$topAndBottomBG">
<P><FONT SIZE="-1" COLOR="$topAndBottomText"><B>Account
Information:</B></FONT></P>
</TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD WIDTH=130>
<P><FONT SIZE="-1"><B>Username:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT><FONT SIZE="-1"><BR>
• 16 Char. Limit<BR>
• a-z and 0-9 only!<BR>
• </FONT><A HREF="java script:;" onclick="window.open('check_names.php?game=$game','checknames',config='height=250,width=250,menubar=no,resizable=yes,directories=no,scrollbars=no,s
tatus=yes,toolbar=no'); return false;"><FONT SIZE="-1">See
if it's available!</FONT></A></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="reg_username" VALUE="$remeber_username" SIZE=32 MAXLENGTH=16></P>
</TD>
</TR>
<TR BGCOLOR="$reallyLight">
<TD WIDTH=130>
<P><FONT SIZE="-1"><B>Display Name:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT><FONT SIZE="-1"><BR>
• 20 Char. Limit<BR>
• Same as username, Add spaces and CaPs!</FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="reg_display_name" VALUE="$remember_display_name" SIZE=32 MAXLENGTH=20></P>
</TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD WIDTH=130>
<P><FONT SIZE="-1"><B>Password:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT><FONT SIZE="-1"><BR>
• CaSe SenSitIVe!</FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=password NAME="reg_pass1" SIZE=32></P>
</TD>
</TR>
<TR BGCOLOR="$reallyLight">
<TD WIDTH=130>
<P><FONT SIZE="-1"><B>Confirm Password:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT><FONT SIZE="-1"><BR>
• CaSe SenSitIVe!<BR>
• Must Match previous password!</FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=password NAME="reg_pass2" SIZE=32></P>
</TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD WIDTH=130>
<P><FONT SIZE="-1"><B>Referer:
</B></FONT><FONT SIZE="-1"><BR>
• Did someone send you here? Give them credit! Plus pick up a few bonus points smile.gif</FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="referer" SIZE=32 VALUE="$HTTP_COOKIE_VARS[referer]"></P>
</TD>
</TR>
</TABLE>
</P>

<P><TABLE CELLSPACING=0 CELLPADDING=0 WIDTH=400>
<TR>
<TD COLSPAN=2 BGCOLOR="$topAndBottomBG">
<P><FONT SIZE="-1" COLOR="$topAndBottomText"><B>Personal
Information:</B></FONT></P>
</TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD WIDTH=130 HEIGHT=20>
<P><FONT SIZE="-1"><B>Full Name:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="reg_full_name" VALUE="$remember_name" SIZE=32></P>
</TD>
</TR>
<TR BGCOLOR="$reallyLight">
<TD WIDTH=130 HEIGHT=20>
<P><FONT SIZE="-1"><B>Email Address:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="reg_email" VALUE="$remember_email" SIZE=32></P>
</TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD WIDTH=130 HEIGHT=20>
<P><FONT SIZE="-1"><B>Location:</B></FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="reg_location" VALUE="$remember_location" SIZE=32></P>
</TD>
</TR>
<TR BGCOLOR="$reallyLight">
<TD WIDTH=130 HEIGHT=20>
<P><FONT SIZE="-1"><B>Birthday:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="reg_month" VALUE="$remember_month" SIZE=4> <INPUT TYPE=text NAME="reg_day" VALUE="$remember_day" SIZE=4> <INPUT TYPE=text NAME="reg_year" VALUE="$remember_year" SIZE=7>
</P>
</TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD WIDTH=130>
<P><FONT SIZE="-1"><B>Gender:
</B></FONT><FONT SIZE="-1" COLOR="#FF0000"><B>*</B></FONT></P>
</TD>
<TD>
<P>    <SELECT NAME=reg_gender SIZE=2>
<OPTION value=1$rememberFemale>Female
<OPTION value=2$rememberMale>Male
</SELECT></P>
</TD>
</TR>
<TR BGCOLOR="$reallyLight">
<TD WIDTH=130 HEIGHT=20>
<P><FONT SIZE="-1"><B>Signature:</B></FONT></P>
</TD>
<TD>
<P>    <INPUT TYPE=text NAME="reg_sig" VALUE="$remember_sig" SIZE=32></P>
</TD>
</TR>
<TR BGCOLOR="#FFFFFF">
<TD WIDTH=130>
<P><FONT SIZE="-1"><B>Profile:</B></FONT></P>
</TD>
<TD>
<P>    <TEXTAREA NAME=reg_profile ROWS=6 COLS=34 WRAP=virtual>$remeber_profile</TEXTAREA></P>
</TD>
</TR>
</TABLE>
</P>

<P><FONT SIZE="-1">All information is provided here is safe. No
personal information will ever<BR>
be sold for any reason. Read our </FONT><A HREF="privacy.php"><FONT SIZE="-1">Privacy
Policy</FONT></A><FONT SIZE="-1"> for more information.</FONT></P>

<P><FONT SIZE="-1">By registering an account here you agree to all
of our </FONT><A HREF="tos.php"><FONT SIZE="-1">Terms and
Conditions</FONT></A><FONT SIZE="-1">!</FONT></P>

<P><FONT SIZE="-1"><INPUT TYPE=submit NAME=Submit VALUE="Register My Account Now!!!"></FONT></CENTER>
</FORM></P>

END;

print "$closeHTML";
?>
Panthro
*Bump*
Sorry for the bump. but this post was pusshed to another page by repeated post about server down and FTP not uploading.
Look at the stickies people.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.