session_save_path("/home/users/web/b1988/nf.enopoly/cgi-bin/tmp");
session_start();
include('db.inc.php');
if($_SESSION['login']=='')
{
header('Location: login.php?m=1');
exit;
}
$tid=$_GET[tid];
if($_GET[tid])
{
$sql_ff="select * from member_temp where member_id=$tid";
$sql_ff=mysql_query($sql_ff);
$result_temp=mysql_fetch_array($sql_ff);
$a=$result_temp[email];
$pass=$result_temp[password];
$b=$result_temp[fname];
$c=$result_temp[lname];
$d=$result_temp[comp_name];
$e=$result_temp[street_add];
$city=$result_temp[city];
$state=$result_temp[state];
$f=$result_temp[zip];
$g=$result_temp[day_phone];
$arr_aad=explode("-",$g);
$h=$result_temp[region];
$vv=$result_temp[comp_desc];
$j=$result_temp[geograp_area];
$k=$result_temp[sector_spec];
$l=$result_temp[website];
$ra=$result_temp[comp_logo];
$primary_role=$result_temp[primary_role];
}
/*if(isset($_POST["submit"]) && $_POST['submit'] == 'Register Now')
{
$em=$_POST['email'];
$pass=$_POST['password'];
$first=$_POST['fname'];
$last=$_POST['lname'];
$comp=$_POST['companyname'];
$str=$_POST['street'];
$city=$_POST['city'];
$state=$_POST['state'];
$zip=$_POST['zipcode'];
$ar=$_POST['area'];
$pre=$_POST['prefix'];
$suff=$_POST['suffix'];
$exten=$_POST['ext'];
$phone=$ar."-".$pre."-".$suff."-".$exten;
$reg=$_POST['region'];
$compd=$_POST['company_desc'];
$graph=$_POST['graph_area'];
$spec=$_POST['specialization'];
//$x=$_POST['FILE'];
$webs=$_POST['url'];
$primary=$_POST['primaryrole'];
$sq=mysql_query("select * from member where email='".trim($_POST[email])."'") or die(mysql_error());
$num=mysql_num_rows($sq);
if($num>0)
{
//header("location: signup1.php?al=1&t=".$_POST[member_type]."&f=".$_SESSION['free']);
header("location: signup1_new.php?al=1&f=1");
exit;
}
else
{
mysql_query("INSERT INTO `member_temp` (`email` , `password` , `fname` , `lname` , `comp_name` , `street_add` , city, state, `zip` , `day_phone` , `region` , `comp_desc` , `geograp_area` , `sector_spec` , `comp_logo` , `website` , `primary_role` )VALUES ('$em', '$pass', '$first', '$last', '$comp', '$str', '$city', '$state', '$zip', '$phone', '$reg', '$compd', '$graph', '$spec', NULL , '$webs', '$primary')");
$id1=mysql_insert_id();
$_SESSION[member_id1]=$id1;
$img=$_FILES['file']['name'];
$img=$id1."$img";
$dir="images/seller_postlogo/";
$img1=$dir.$img;
if($img!='')
{
$var=move_uploaded_file($_FILES['file']['tmp_name'], $img1);
}
if($var==true)
{
mysql_query("update `member_temp` set comp_logo='".$img."' where member_id='$id1' ") or die(mysql_error());
}
/////////////////-------------------------------------////////////////////
if($primary==1)
{
header("location:membership_option_buyer.php?rec_id=".$id1);
exit;
}
if($primary==2)
{
header("location:membership_option_sellers.php?rec_id=".$id1);
exit;
}
if($primary==3)
{
header("location:membership_option_franchies.php?rec_id=".$id1);
exit;
}
if($primary==4)
{
header("location:membership_option_broker.php?rec_id=".$id1);
exit;
}
if($primary==5)
{
//header("location:membership_option_lenders.php?rec_id=".$id1);
header("location:signup_lender.php?rec_id=".$id1);
exit;
}
if($primary==6)
{
header("location:signup_service.php?rec_id=".$id1);
exit;
}
}
}
else
{
$em='';
}
*/
?>
Enopoly