We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
I need coding help please! (php); Please help here!
Topic Started: Oct 5 2005, 10:28 PM (393 Views)
The_Pro_Designer
Member Avatar
Teh Pr0 Des!gn3R
[ *  *  *  *  * ]
Can someone fix this so You dont need to have an email address to log in? lol.. i dont know what im doing here.. also if you want to permantly help with coding for this project please email me at brandon@invisionfreenetworks.com

anyway here are the codes..

Code:
 
<html>
<link rel="stylesheet" href="style.css" type="text/css">
<center>
<table class='maintable'>
<tr class='headline'><td><center>Register</center></td></tr>
<tr class='forumrow'><td><center>
<table border='0'><tr class='forumrow'><td>
<form method="post" action="reguser.php">
Type Username Here*:</td><td><input type="text" name="username" size="15"></td></tr>
<tr class='forumrow'><td>Type Password Here*:</td><td><input type="password" name="password" size="15"></td></tr>
<tr class='forumrow'><td>Retype password*:</td><td><input type="password" name="pass2" size="15"><br></td></tr>
<tr class='forumrow'><td>E-mail Address*:</td><td><input type="text" name="email" size="15"><br></td></tr>
<tr class='forumrow'><td>Location</td><td><input type='text' name='location' size='15'><br></td></tr>
<tr class='forumrow'><td>AIM</td><td><input type='text' name='aim' size='15'><br></td></tr>
<tr class='forumrow'><td>ICQ</td><td><input type='text' name='icq' size='15'><br></td></tr>
<tr class='forumrow'><td>Show Profile?</td><td><select name='showprofile'><option value='1'>Yes</option><option value='0'>No</option></select></td></tr>
<tr class='forumrow'><td valign='top'>Signature(255 chars max)<br>HTML disable, BBCODE on.</td><td><textarea name='signature' rows='5' cols='30'></textarea></td></tr>
<tr class='forumrow'><td></td><td><input type="submit" value="submit">
</center>
</form>
</td></tr></table>

</html>


then the extensions...

Code:
 
<?php
include "admin/connect.php";
include "admin/var.php";
print "<link rel='stylesheet' href='style.css' type='text/css'>";
$bademail=0; //trackers for banned e-mails
$email=$_POST['email'];
$getbademails="SELECT * from b_banemails";
$getbademails2=mysql_query($getbademails) or die("Could not grab bad emails");
while($getbademails3=mysql_fetch_array($getbademails2))
{
  if(substr_count($email,$getbademails3[email])>0)
     {
        $bademail++;
     }
}
if($bademail>0)
{
 die("<table class='maintable'><tr class='headline'><td><center>Registering...</center></td></tr><tr class='forumrow'><td><center>That email is banned from registering</td></tr></table></center>");
}
$valid=1;
$username=$_POST['username'];
$password=$_POST['password'];
$signature=$_POST['signature'];
$pass2=$_POST['pass2'];
$usercheck="SELECT*from b_users where username='$username' or email='$email'";
$usercheck2=mysql_query($usercheck);
while ($usercheck3=mysql_fetch_array($usercheck2))
{
 $valid=0;
}

if($valid==0)
{
 print "<table class='maintable'>";
 print "<tr class='headline'><td><center>Registering...</center></td></tr>";
 print "<tr class='forumrow'><td><center>";  
 print "That username has been taken or there is already someone registered with that email, please <A href='register.php'>Try to register again</a>.";
 print "</td></tr></table></center>";
}
else if(!$_POST['email'])
{
 print "You did not enter an e-mail address";
}
else if(strlen($username)>15 || strlen($username)<3)
{
 print "<table class='maintable'>";
 print "<tr class='headline'><td><center>Registering...</center></td></tr>";
 print "<tr class='forumrow'><td><ce


if you need anymore please tell me. you can download the whole thing here!

Removed - no advertising please

then go to the download part.

PLease help as no one can register right now because i dotn know how to get all the email crap working lol.. slowly learning though.. i did however write the styled, (used an IF skin DCEAdcence) or somthing like that lmao.. but slightly modified to fit the css for this forum.. :eh: anywayz. please help!!!!!!!!
Offline Profile Quote Post Goto Top
 
Das
Member Avatar
Smells of rich mahogany
[ *  *  *  *  *  *  * ]
Not tested, but:
Quote:
 
<html>
<link rel="stylesheet" href="style.css" type="text/css">
<center>
<table class='maintable'>
<tr class='headline'><td><center>Register</center></td></tr>
<tr class='forumrow'><td><center>
<table border='0'><tr class='forumrow'><td>
<form method="post" action="reguser.php">
Type Username Here*:</td><td><input type="text" name="username" size="15"></td></tr>
<tr class='forumrow'><td>Type Password Here*:</td><td><input type="password" name="password" size="15"></td></tr>
<tr class='forumrow'><td>Retype password*:</td><td><input type="password" name="pass2" size="15"><br></td></tr>
<tr class='forumrow'><td>Location</td><td><input type='text' name='location' size='15'><br></td></tr>
<tr class='forumrow'><td>AIM</td><td><input type='text' name='aim' size='15'><br></td></tr>
<tr class='forumrow'><td>ICQ</td><td><input type='text' name='icq' size='15'><br></td></tr>
<tr class='forumrow'><td>Show Profile?</td><td><select name='showprofile'><option value='1'>Yes</option><option value='0'>No</option></select></td></tr>
<tr class='forumrow'><td valign='top'>Signature(255 chars max)<br>HTML disable, BBCODE on.</td><td><textarea name='signature' rows='5' cols='30'></textarea></td></tr>
<tr class='forumrow'><td></td><td><input type="submit" value="submit">
</center>
</form>
</td></tr></table>

</html>


Quote:
 
<?php
include "admin/connect.php";
include "admin/var.php";
print "<link rel='stylesheet' href='style.css' type='text/css'>";
$valid=1;
$username=$_POST['username'];
$password=$_POST['password'];
$signature=$_POST['signature'];
$pass2=$_POST['pass2'];
$usercheck="SELECT * from b_users where username='$username'";
$usercheck2=mysql_query($usercheck);
while ($usercheck3 = mysql_fetch_array($usercheck2))
{
$valid=0;
}

if($valid==0)
{
print "<table class='maintable'>";
print "<tr class='headline'><td><center>Registering...</center></td></tr>";
print "<tr class='forumrow'><td><center>"; 
print "That username has been taken or there is already someone registered with that email, please <A href='register.php'>Try to register again</a>.";
print "</td></tr></table></center>";
}
else if(strlen($username)>15 || strlen($username)<3)
{
print "<table class='maintable'>";
print "<tr class='headline'><td><center>Registering...</center></td></tr>";
print "<tr class='forumrow'><td><ce
Offline Profile Quote Post Goto Top
 
The_Pro_Designer
Member Avatar
Teh Pr0 Des!gn3R
[ *  *  *  *  * ]
thanks ill make backs of the old ones just incase and try this.. ty :)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply