i have two page one page home page another page defaults results . i have check box in home page . its code looks like
<div class="col-md-1 padding-lft" style="right:13px;top:3px">
<input id="chkUFtoLoan-1" name="S" value="S" type="checkbox" checked />
</div>
i have passed this value another page looks like
<?php
$checkbox1 = $_POST["S"];
echo $checkbox1 = $_POST["S"];
?>
Now i have results two section BUYER CLOSE TO SECTION and ABOUT YOUR LOAN. in results page i have value UPFRONT MIP VALUE
ABOUT YOUR LOAN
<div class="row content green">
<label id="Label3" for="purchasePrice" class="pull-left ">Upfront MIP Financed</label>
<label id="financedmip-Buyer" class="pull-right">$<?php echo round($arrFirstBox["upfrontmipamt"],2);?>
BUYER CLOSE TO SECTION
<label id="Label3" for="purchasePrice" class="pull-left ">Upfront MIP Financed</label>
<label id="financedmip-Buyer" class="pull-right">$<?php echo round($arrFirstBox["upfrontmipamt"],2);?>
Both value same if user checked check box home page value goes to about your loan or user checkbox unchecked values BUYER CLOSE TO SECTION. i have written script code
$('input[Name="S"]').mouseenter(function() {
var text = "";
$('#financedmip:checked').each(function(){
text += $(this).val('<?php echo round($arrFirstBox["upfrontmipamt"],2);?>')+',';
});
text = text.substring(0,text.length-1);
$('#financedmip-Buyer').val(0);
});
MY script i did mistake please any one find what mistake did? please any one find my mistake ?
Use
isset($_POST["S"])
in your php script and validate it. If the value is set/checked you can navigate to 'ABOUT YOUR LOAN' section else to the other section.
if(isset($_POST["S"])){
//ABOUT YOUR LOAN
} else {
// TO BUYER CLOSE TO SECTION
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.