테스트 사이트 - 개발 중인 베타 버전입니다

소스좀 봐주실 수 있을까요 ? 채택완료

잘부탁합니닿 7년 전 조회 2,212

안녕하세요 소스코드 질문좀 드리겠습니다.

 

onclick="checksubmit();return false;" onclick='alert_url();' >

 

클릭시 비회원일시 로그인화면으로 넘어가지는데요

이거를 비회원이여도 가능하게끔 할려고합니다 

위 스크립트에서 경로를 변경해봤는데

그냥 빈내용으로 넘어오더라구요 ㅠㅠ

방법이없을까요? 몇일째 찾아보고 해봐도 안되네요 

 

/m_phone_request.php

위페이지로 내용이 넘어가게끔 하고싶습니다 

</p>

<p><a href="javascript:void(0);" <?php if($_SESSION['ss_mb_id']){ ?>onclick="checksubmit();return false;"<?php }else {  ?> onclick='alert_url();' <?php } ?>><div class="bt">주문하기</div><a></p>

<p><script>

    function alert_url(url){

        

         document.location.href="/bbs/login.php?";

        return false;

    }

</script></p>

<p><?php

include_once('./_common.php');

$userid = $_SESSION['ss_mb_id'];

$sql_common = "  

    userid = '$userid', 

    device_id = '{$_POST['device_id']}',

    total_plan_price = '{$_POST['total_plan_price']}',

    monthly_plan_price = '{$_POST['monthly_plan_price']}',

    plan_support_price = '{$_POST['plan_support_price']}',

    monthly_device_price = '{$_POST['monthly_device_price']}',

    release_price = '{$_POST['release_price']}',

    data_support_price = '{$_POST['data_support_price']}',

    data_support_point = '{$_POST['data_support_point']}',

    star_point = '{$_POST['star_point']}',

    monthly_sale = '{$_POST['monthly_sale']}',

    sale_combination = '{$_POST['sale_combination']}',

    sale_welfare = '{$_POST['sale_welfare']}',

    sale_card = '{$_POST['sale_card']}',

    color = '{$_POST['color']}',

    size = '{$_POST['size']}',

    join_type = '{$_POST['join_type']}',

    month = '{$_POST['month']}',

    sale_type = '{$_POST['sale_type']}',

    delivery = '{$_POST['delivery']}',

    welfare = '{$_POST['welfare']}',

    card = '{$_POST['card']}',

    combination = '{$_POST['combination']}',

    od_memo = '{$_POST['od_memo']}',

    price = '{$_POST['price']}', 

    buga = '{$_POST['buga']}', 

    gift = '{$_POST['gift']}', 

    

    

    order_name = '{$_POST['order_name']}',

    order_phone = '{$_POST['order_phone']}',

    order_email = '{$_POST['order_email']}',

    gender = '{$_POST['gender']}',

    birth_year = '{$_POST['birth_year']}',

    birth_month = '{$_POST['birth_month']}',

    birth_day = '{$_POST['birth_day']}',

    to_name = '{$_POST['to_name']}',

    to_phone = '{$_POST['to_phone']}',

    zip_code = '{$_POST['zip_code']}',

    addr_1 = '{$_POST['addr_1']}',

    addr_2 = '{$_POST['addr_2']}',

    status1 = '{$_POST['status1']}',</p>

<p>     

    reg_date = now()

         ";

sql_query(" insert into g5_phone_request set {$sql_common} ");</p>

<p>$last_uid = sql_insert_id();

?>

 

<?

 goto_url('/m_phone_request.php?id='.$last_uid, false);

?></p>

<p> </p>

<p>

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인