i have a textbox value i have to find out the % symbol in the textvalue can anyone suggest me how to do that ?
i have a textbox that contains some value and i have to find out whether that textbox contain % symbol or not
$camp_ttllimpression=$_POST['camp_ttllimpression'];
$camp_ttllclicks=$_POST['camp_ttllclicks'];
$camp_ttlleads=$_POST['camp_ttlleads'];
$camp_ttllsales=$_POST['camp_ttllsales'];
$hid=$_POST['hid'];
$camp_cpa_amnt=$_POST['camp_cpa_amnt'];
$camp_cpm_amnt=$_POST['camp_cpm_amnt'];
$camp_cpc_amnt=$_POST['camp_cpc_amnt'];
$camp_cpl_amnt=$_POST['camp_cpl_amnt'];
$camp_cpm_budgt=($camp_ttllimpression * $camp_cpm_amnt)/1000;
$camp_cpc_budgt=$camp_ttllclicks * $camp_cpc_amnt;
$camp_cpl_budgt=$camp_ttlleads * $camp_cpl_amnt;
$camp_cpa_budgt=$camp_ttllsales * $camp_cpa_amnt;
if($hid=="%") { echo Open;} else { echo $camp_cpa_budgt;}