alright then here we go
this is the code for the registration
<?php
extract($HTTP_GET_VARS);
extract($HTTP_POST_VARS);
include("config.php");
if($action == "register")
{
$loginip = $_POST['loginip'];
$email = $_POST['email'];
$fullname = $_POST['fullname'];
$username = $_POST['username'];
$password = $_POST['password'];
$strip = $loginip ;
$stremail = $email ;
$strfname = $fullname ;
$struname = $username ;
$strpwrd = $password ;
if ((strlen($password) < 5) or (strlen($password) > 50))
{
$text1 = "Password";
$text2 = strlen($strpwrd);
include ("_inc/regmissing.htm"); exit();
}
if (ereg("[^A-Za-z0-9]", $password))
{
$text1 = "Password";
include ("_inc/regumissing.htm"); exit();
}
if ((strlen($email) < 5) or (strlen($email) > 50))
{
$text1 = "Email";
$text2 = strlen($stremail);
include ("_inc/regmissing.htm"); exit();
}
if (!ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.
'@'.
'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.
'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email))
{
include ("_inc/regemissing.htm"); exit;
}
if ((strlen($fullname) < 5) or (strlen($fullname) > 50))
{
$text1 = "Full Name";
$text2 = strlen($strfname);
include ("_inc/regmissing.htm"); exit;
}
if ((strlen($username) < 5) or (strlen($username) > 30))
{
$text1 = "Username";
$text2 = strlen($struname);
include ("_inc/regmissing.htm"); exit();
}
if (ereg("[^A-Za-z0-9]", $username))
{
$text1 = "Username";
include ("_inc/regumissing.htm"); exit();
}
$u_path = "$userdb/profile-{$username}.dat";
if (file_exists($u_path))
{
$text1 = $username;
include ("_inc/regerror.htm"); exit();
}
$u_data = $email."}{".$fullname."}{".$username."}{".$password."}{".date("d-M-y")."}{".$loginip."}{";
$to = $email;
$syndikutcp = date("Y");
$syndikut = "Powered by Download Manager Ultra-Lite Copyright $syndikutcp www.syndikut.org";
$subject="$company - Registration";
$mess = "Hi $strfname\n\nYou can now login with the username & password below:\n\nUsername: $username \n\nPassword: $password\n\n$company\n\n$companyurl\n\n_______________________________________________________________\n$syndikut";
$mailheaders="Return-path: $adminnoreply\n";
$mailheaders.="From: $adminnoreply\n";
$mailheaders.="Reply-To: $adminnoreply\n";
$sent = 1;
$uf = fopen($u_path, "w");
fputs($uf, $u_data);
fclose($uf);
if($sent == 1)
{
mail($to, $subject, $mess, $mailheaders);
}
else
{
echo "Please check that you have provided the correct email address, we are unable to send the password to the email you specified."; exit;
}
include ("_inc/regdone.htm"); exit();
}
else
{
include("_inc/reg.htm"); exit();
}
?>
<h4 align="center"> </h4>
<h4 align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Please
fill in the following details to register:</font></h4>
<p align="center"><font color="#333333" size="2" face="Verdana, Arial, Helvetica, sans-serif">Your
password will be automatically generated & sent to verify your email
address!</font></p>
<form action="user/register.php?action=register" action="register" method="post">
<table>
<tr>
<td width="70" height="21"> </td>
<td width="164"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="loginip" type="hidden" id="loginip" value="<?php echo $loginip; ?>">
</font></td>
</tr>
<tr>
<td><div align="center">Email:</font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="email" value="">
<font color="#FF0000"></font> </font></td>
</tr>
<tr>
<td><div align="center">Full
Name:</font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="fullname" value="">
<font color="#FF0000"></font> </font></td>
</tr>
<tr>
<td><div align="center">Username:</font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input type="text" name="username" value="">
<font color="#FF0000"></font> </font></td>
</tr>
<tr>
<td height="24"><div align="center">Password:</font></div></td>
<td><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
<input name="password" type="text" id="password">
<font color="#FF0000"></font></font></td>
</tr>
</table>
<p>
<input type="submit" value="Register">
</p>
</form>
<p><font color="#FF0000" size="1" face="Verdana, Arial, Helvetica, sans-serif">*</font><font size="1" face="Verdana, Arial, Helvetica, sans-serif">
Required fields</font></p>
<p> </p>
<p></font></p>
</div></td>
</center>
this is the html code the bold part is where the code goes for the action in the php code.......
now this is in a page
http://www.hostultra.com/~Unify/thegold.php
now if you click on register [dont fill in the form] and click on register again below the form a new page will pop up
now what i want to do
is make that page stay in the same place where the registration form was and where the content is supposed to be but at the same time i want it to do the action so when the person registers it will be saved into my other folder in order for em to login....
now im having problems with the action code and i want to know what should it be?
B] <form action="user/register.php?action=register" action="register" method="post">
[/B]
for this........should i replace the user/register.php with the content code which is
thegold.php?
and then after that put in action=register so it can be like this......
thegold.php?action=register
i tried it and it wont work BECAUSE i need to support the file register.php and then action it up into there.........
reply with suggestions
please and thanks
(click on my site so you can get an idea)
hehe