Nasıl Gizli alanları PHP ile yayınlanmıştır Değiştir değerleri yok

0 Cevap

I have two hidden fields in the form (php) where these hidden fields are being replaced These hidden fields have the value from two text boxes. So we are getting the values directly from the textboxes in the action form

<input type ="text1" name="text1" value="">
<input type ="text2" name="text2" value="">

<?php

if(!empty($_POST['text1'])){
    $fromvalue ="somevalue";
}else{
   $fromvalue ="somevalue";
}

if(!empty($_POST['text2'])){
    $tovalue ="somevalue";
}else{
    $tovalue ="somevalue";
}

?>

Nasıl Gizli alanları PHP ile yayınlanmıştır Değiştir değerleri yok

So My problem is I have a Pagination Available when clicking the "next" button $fromvalue and $toValue becomes null because we are not posting the "fromvalue" and "tovalue" again and my query is not executed

How Do i capture the Value in the textboxes and put in the below code so that my query gets executed

Aşağıdan oluşturulan sorgu

if(strlen($fromValue) == 4){
        $qry .= " and CVDT >= $fromvalue";
    }

if(strlen($tovalue) == 4){
        $qry .= " and CVDT <= $tovalue";
    }

0 Cevap