Register for your free account! | Forgot your password?

You last visited: Today at 01:29

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



error reg page

Discussion on error reg page within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
error reg page

Use of undefined constant step2 - assumed 'step2' in C:\xampp\htdocs\regg\register.php on line 5
Use of undefined constant step2 - assumed 'step2' in C:\xampp\htdocs\regg\register.php on line 18


Notice: Use of undefined constant step2 - assumed 'step2' in C:\xampp\htdocs\regg\register.php on line 5

Notice: Use of undefined constant step2 - assumed 'step2' in C:\xampp\htdocs\regg\register.php on line 5

Notice: Use of undefined constant ZoneGroup - assumed 'ZoneGroup' in C:\xampp\htdocs\regg\register.php on line 27

Warning: odbc_do() [function.odbc-do]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'Tbl_user'., SQL state S0002 in SQLExecDirect in C:\xampp\htdocs\regg\register.php on line 34

Warning: odbc_fetch_row() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\regg\register.php on line 35

Warning: odbc_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\regg\register.php on line 36

Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\regg\register.php on line 38

Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\regg\register.php on line 40

Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\regg\register.php on line 41

Notice: Use of undefined constant password1 - assumed 'password1' in C:\xampp\htdocs\regg\register.php on line 43

Notice: Use of undefined constant password1 - assumed 'password1' in C:\xampp\htdocs\regg\register.php on line 44

Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\regg\register.php on line 46

Notice: Use of undefined constant password1 - assumed 'password1' in C:\xampp\htdocs\regg\register.php on line 46

Notice: Use of undefined constant password1 - assumed 'password1' in C:\xampp\htdocs\regg\register.php on line 48

Notice: Use of undefined constant password1 - assumed 'password1' in C:\xampp\htdocs\regg\register.php on line 49

Notice: Use of undefined constant password2 - assumed 'password2' in C:\xampp\htdocs\regg\register.php on line 51

Notice: Use of undefined constant password1 - assumed 'password1' in C:\xampp\htdocs\regg\register.php on line 51

Notice: Use of undefined constant question - assumed 'question' in C:\xampp\htdocs\regg\register.php on line 53

Notice: Use of undefined constant question - assumed 'question' in C:\xampp\htdocs\regg\register.php on line 54

Notice: Use of undefined constant answer - assumed 'answer' in C:\xampp\htdocs\regg\register.php on line 55

Notice: Use of undefined constant answer - assumed 'answer' in C:\xampp\htdocs\regg\register.php on line 56

Notice: Use of undefined constant mail - assumed 'mail' in C:\xampp\htdocs\regg\register.php on line 58

Notice: Use of undefined constant password1 - assumed 'password1' in C:\xampp\htdocs\regg\register.php on line 71

Warning: odbc_do() [function.odbc-do]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'user_profile'., SQL state S0002 in SQLExecDirect in C:\xampp\htdocs\regg\register.php on line 81

Warning: odbc_do() [function.odbc-do]: SQL error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'Tbl_user'., SQL state S0002 in SQLExecDirect in C:\xampp\htdocs\regg\register.php on line 82





Notice: Undefined variable: success in C:\xampp\htdocs\regg\register.php on line 12

Notice: Use of undefined constant step2 - assumed 'step2' in C:\xampp\htdocs\regg\register.php on line 13

Notice: Use of undefined constant step1 - assumed 'step1' in C:\xampp\htdocs\regg\register.php on line 13
can any one help me with this
jammer1972 is offline  
Old 02/07/2011, 12:50   #2
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
How do you think people can help you when they don't see your whole code? How do they know what is in you 5th line or 18th and etc.
gedimazs is offline  
Old 02/07/2011, 15:20   #3
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
Try adding quotes (") and the last 2 errors. you can read it
҉ THT ҉ is offline  
Old 02/08/2011, 03:59   #4
 
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
Quote:
Originally Posted by gedimazs View Post
How do you think people can help you when they don't see your whole code? How do they know what is in you 5th line or 18th and etc.
<?php

require_once "config.inc.php";

if(isset($_SESSION[step2]) && isset($_POST[step2])) {
//ÌáÈ¡µÄ×îºóÒ»²½
$errorStr = formStep3();
if($errorStr!=null){
require_once('register.html');
}else{
require_once('success.html');
$suc=$success;
unset($_SESSION[step2], $_SESSION[step1]);
}}
else {
//×¢²áµÄµÚ¶þ²½
require_once('register.html');
$_SESSION[step2] = 1; }


//ÅжÏÓû§Ìá½»µÄ±íµ¥µÄÊý¾ÝµÄ ׼ȷÐÔ ºÍ ±£´æÌá½»Êý¾Ý µÄº¯Êý
function formStep3(){
$errors = array();
$errorStr = null;
//²éѯÓû§ÃûÊÇ·ñ´æÔÚ
$strSql="select * from Tbl_user where user_id='$_POST[username]'";
if ($_POST[ZoneGroup]=="zone1") {
$account_odbc = odbc_connect('account','account','account');
} elseif ($_POST[ZoneGroup]=="zone2") {
$account_odbc = odbc_connect('account2','sa','55555');
} else {
die ("<p><b>·ÖÇøÑ¡Ôñ´íÎó!</b></p>");
}
$user_result=odbc_do($account_odbc,$strSql);
$result_query=odbc_fetch_row($user_result);
if (odbc_result($user_result,1)!= "") $errors[] = "¸ÃÃû³ÆÒѾ*±»Õ¼Óã¬ÇëÖØÐÂÊäÈë";
//ÑéÖ¤Óû§ÃûÊÇ·ñ¹æ·¶
if(!preg_match("/^[0-9a-zA-Z]{6,12}$/i", $_POST[username])) $errors[]="Ö»ÄÜÓÃÓ¢ÎÄ´óСд×ÖĸÊý×ÖµÄ×éºÏ×÷ΪÓû§Ãû";
//ÑéÖ¤Óû§Ãû³¤¶È
if(strlen($_POST[username])<6) $errors[] = "Óû§ÃûµÄ³¤¶È²»ÄÜСÓÚ6λ";
if(strlen($_POST[username])>12) $errors[]= "Óû§ÃûµÄ³¤¶È²»Äܳ¬¹ý12λ";
//ÑéÖ¤ÃÜÂëÊÇ·ñ¹æ·¶
if(!preg_match("/^[0-9a-zA-Z]{6,12}$/i", $_POST[password1])) $errors[]="Ö»ÄÜÓÃÓ¢ÎÄ´óСд×ÖĸÊý×ÖµÄ×éºÏ×÷ΪÃÜÂë";
if(preg_match("/^[0-9]{6,12}$/i",$_POST[password1])) $errors[]="²»¿ÉʹÓô¿Êý×Ö×÷ΪÃÜÂë";
//ÑéÖ¤Óû§ÃûºÍÃÜÂëÊÇ·ñÏàͬ
if($_POST[username]==$_POST[password1]) $errors[]= "ÕʺźÍÃÜÂë²»ÄÜÏàͬ";
//ÑéÖ¤ÃÜÂ볤¶È
if(strlen($_POST[password1])<6) $errors[] = "ÃÜÂëµÄ³¤¶È²»ÄÜСÓÚ6λ";
if(strlen($_POST[password1])>12) $errors[] = "ÃÜÂ볤¶È²»ÄÜ´óÓÚ12λ";
//ÑéÖ¤ÃÜÂëÒ»ÖÂÐÔ
if($_POST[password2]!=$_POST[password1]) $errors[] = "ÊäÈëµÄÃÜÂë²»Ò»ÖÂ";
//ÑéÖ¤ÕÒ»ØÃÜÂëÎÊÌâ´ð°¸³¤¶È
if(strlen($_POST[question])>20) $errors[] = "ÕÒ»ØÃÜÂëÎÊÌâ´óÓÚ20룬Çë·µ»ØÖØÐÂÊäÈë";
if(strlen($_POST[question])<10) $errors[] = "ÕÒ»ØÃÜÂëÎÊÌâСÓÚ10룬Çë·µ»ØÖØÐÂÊäÈë";
if(strlen($_POST[answer])>20) $errors[] = "ÕÒ»ØÃÜÂë´ð°¸´óÓÚ20룬Çë·µ»ØÖØÐÂÊäÈë";
if(strlen($_POST[answer])<10) $errors[] = "ÕÒ»ØÃÜÂë´ð°¸Ð¡ÓÚ10룬Çë·µ»ØÖØÐÂÊäÈë";
//ÑéÖ¤Óû§emailÕýÈ·ÐÔ
if(!preg_match("/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/i",$_POST[mail])) $errors[]="EmailµØÖ·²»ÕýÈ·£¬ÇëÖØÐÂÊäÈëÕýÈ·µÄEmailµØÖ·";


//´íÎóÐÅÏ¢Êä³ö
if(sizeof($errors)>0){
$errorStr .= "<br><font>";
$errorStr .= "ÐÅÏ¢ÊäÈë´íÎó£º";
foreach($errors as $error)
$errorStr .= "<li>$error</li>";
$errorStr .= "</font><br><br>";
}else{

//¼ÓÃÜÃÜÂë
$passwd_user=md5($_POST[password1]);
//»ñÈ¡user_no
$dk_time=strftime("%y%m%d%H%M%S");
list($usec1, $sec1) = explode(" ",microtime());
$dk_user_no=$dk_time.substr($usec1,2,2);
//Óû§×¢²áÓï¾ä
$dk_account_query="insert into user_profile(user_no,user_id,user_pwd,resident_no, user_type,login_flag,login_tag,ipt_time,login_time ,logout_time,user_ip_addr,server_id) values('$dk_user_no','$_POST[username]','$passwd_user','801011000000','1','0','Y','01/01/2006 00:00:00',null,null,null,'000')";
//Óû§×ÊÁϱ£´æ
$dk_account_query2="insert into Tbl_user(user_no,user_id,user_pwd,user_mail,user_a nswer,user_question) values('$dk_user_no','$_POST[username]','$_POST[password1]','$_POST[mail]','$_POST[answer]','$_POST[question]')";
//Ö´ÐÐÓû§×¢²áºÍ×ÊÁϱ£´æÓï¾ä
$dk_account_result1=odbc_do($account_odbc,$dk_acco unt_query);
$dk_account_result2=odbc_do($account_odbc,$dk_acco unt_query2);
odbc_close($account_odbc);



}
//·µ»Ø´íÎóÏûÏ¢µ½Ò³Ãæ
return $errorStr;
}

?>
ok here it is
jammer1972 is offline  
Old 02/08/2011, 05:59   #5
 
elite*gold: 0
Join Date: Nov 2008
Posts: 158
Received Thanks: 35
try this script
*[F]rea[K]* is offline  
Old 02/08/2011, 06:46   #6
 
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
Quote:
Originally Posted by *[F]rea[K]* View Post
try this script
this is what i get when i try that one

Notice: Undefined index: activ in C:\xampp\htdocs\register.php on line 21

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\register.php on line 80
jammer1972 is offline  
Old 02/08/2011, 08:03   #7
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
Quote:
Originally Posted by jammer1972 View Post
this is what i get when i try that one

Notice: Undefined index: activ in C:\xampp\htdocs\register.php on line 21

Fatal error: Call to undefined function mssql_connect() in C:\xampp\htdocs\register.php on line 80
have you filled this part
Code:
// fill in your mssql info here
$mssql = array(
		'host' => "localhost",
		'user' => "sa",
		'pass' => "server"
with you connect to DB info?
gedimazs is offline  
Old 02/09/2011, 02:18   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
Angry

Quote:
Originally Posted by gedimazs View Post
have you filled this part
Code:
// fill in your mssql info here
$mssql = array(
		'host' => "localhost",
		'user' => "sa",
		'pass' => "server"
with you connect to DB info?
yes i have lol i just cant get it to work
jammer1972 is offline  
Old 02/09/2011, 08:32   #9
 
gedimazs's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 863
Received Thanks: 197
this reg page uses ODBC connections. Have you linked you account.dbo with your ODBC?
gedimazs is offline  
Old 02/09/2011, 17:55   #10
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
$account_odbc = odbc_connect('account2','sa','55555');

Is that correct?
҉ THT ҉ is offline  
Old 02/09/2011, 22:17   #11
 
elite*gold: 0
Join Date: Dec 2009
Posts: 37
Received Thanks: 2
Quote:
Originally Posted by ҉ THT ҉ View Post
$account_odbc = odbc_connect('account2','sa','55555');

Is that correct?
i didnt leave rifght password here
jammer1972 is offline  
Old 02/10/2011, 02:08   #12
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
No,, I mean did you fill that in(with the right information) on your webserver?
҉ THT ҉ is offline  
Reply


Similar Threads Similar Threads
Register Page Error
12/15/2010 - Dekaron Private Server - 4 Replies
:confused: I have done everything, I made ODBC like the Tomik tutorial said too, Im not to great with this sorta stuff. If you know whats wrong please help me.
Change Password ERROR page.
05/21/2010 - SRO Private Server - 2 Replies
I tried changing my password but having errors. http://reg2.sro8.com/repass.html<--change password website. I filled in all the info. and then a black page pops up. when page is highlighted it says "registration defeat, submission error". why? whats happening? can't we change our own password? seriously, why are they not fixing this??
[HELP]Registration Page Error
05/06/2010 - Dekaron Private Server - 2 Replies
Warning: odbc_connect() : SQL error: Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\AppServ\www\register.php on line 28 Warning: odbc_do(): supplied argument is not a valid ODBC-Link resource in C:\AppServ\www\register.php on line 34 Warning: odbc_fetch_row(): supplied argument is not a valid ODBC result resource in C:\AppServ\www\register.php on line 35 Warning: odbc_result(): supplied argument is not a valid ODBC result resource in...
MySQL error for voting script & register page
04/27/2010 - Dekaron Private Server - 2 Replies
well this just happen it was working fine then it just went bad then the register page messed up to idk why it did this it was working fine for days then it just does this
Metin2 Home page Error pls Help
10/16/2009 - Metin2 Private Server - 2 Replies
kann geschlossen werden!



All times are GMT +1. The time now is 01:29.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.