0
나는 데이터베이스에있는 함수를 실행하는 버튼을 만들려고 노력하고 있지만,이 ISSET을 실행하지 못하는 것 같습니다. 내가 도대체 뭘 잘못하고있는 겁니까? 에코가 내 페이지에도 나타나지 않습니다.같은 페이지에 POST ISSET이 있습니까?
<form action="" name="stack" method="post">
<?PHP //echo "<input type=hidden name=customerx value=$Customer>"?>
<input id="stack" class="submit3" type="submit" value="Stack my GI" />
</form>
<?php
if(isset($_POST['stack'])){
$sqlcall = "{CALL WEB_StackGI(?)}";
$sqlargs = array(
array($Customer,SQLSRV_PARAM_IN)
);
$query = sqlsrv_query($conexion,$sqlcall, $sqlargs)or die(print_r(sqlsrv_errors(),true));
$row = sqlsrv_fetch_array($query);
echo "<b> Successfully stacked GI</b>";
}
?>
고객은 페이지의 시작 부분에 정의되어 있습니다.
$Customer = $_SESSION['IdCustomer'];
해당 입력에 이름 속성이 없습니다. 이름이 없습니다 = 게시물 값이 없습니다 –
감사 : D, 이제 작동합니다 – Zonfire
감사합니다. –