i need help with REG

04/28/2009 05:20 str8killa#1
when i upload all the files and config them i get errors on the register.php

they are

Code:
Notice: Use of undefined constant step2 - assumed 'step2' in C:\WINDOWS\addins\e\EasyPHP 3.0\www\reg\dekaron\register.php on line 5

Notice: Use of undefined constant step2 - assumed 'step2' in C:\WINDOWS\addins\e\EasyPHP 3.0\www\reg\dekaron\register.php on line 5
and


Code:
Notice: Use of undefined constant step2 - assumed 'step2' in C:\WINDOWS\addins\e\EasyPHP 3.0\www\reg\dekaron\register.php on line 18
can any 1 tell me how to fix this or upload a new website thanks.
04/28/2009 08:26 ADHDKiD#2
Quote:
Originally Posted by str8killa View Post
when i upload all the files and config them i get errors on the register.php

they are

Code:
Notice: Use of undefined constant step2 - assumed 'step2' in C:\WINDOWS\addins\e\EasyPHP 3.0\www\reg\dekaron\register.php on line 5

Notice: Use of undefined constant step2 - assumed 'step2' in C:\WINDOWS\addins\e\EasyPHP 3.0\www\reg\dekaron\register.php on line 5
and


Code:
Notice: Use of undefined constant step2 - assumed 'step2' in C:\WINDOWS\addins\e\EasyPHP 3.0\www\reg\dekaron\register.php on line 18
can any 1 tell me how to fix this or upload a new website thanks.
Copy and Paste Lines 5 & 18 Please. Most likely you messed up on the ODBC database, =/ Thats most peoples issue.
04/28/2009 16:39 str8killa#3
Code:
<?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 {
    //Username
    require_once('register.html');
    $_SESSION[step2] = 1;	}


//判断用户提交的表单的数据的 准确性 和 保存提交数据 的函数
function formStep3(){
    $errors = array();
    $errorStr = null;
04/28/2009 23:17 str8killa#4
still cant fix it ;(