walkerdigest
Programmer
in the form I have the following element:
<select name="sayfa">
<option value="1">Anasayfa</option>
<option value="2">Alt Sayfa</option>
</select>
I get the following $_POST value :
$sayfa = $_POST['sayfa'];
echo $sayfa + $sayfa; <-------- here I get value as 2 when I choose option Anasayfa(with value 1);
so the $_POST value returns numeric value instead of string. shouldn't I have get string value? I need string value here.
I have applied strval and string to $_POST value but it didn't work. what should I do?
<select name="sayfa">
<option value="1">Anasayfa</option>
<option value="2">Alt Sayfa</option>
</select>
I get the following $_POST value :
$sayfa = $_POST['sayfa'];
echo $sayfa + $sayfa; <-------- here I get value as 2 when I choose option Anasayfa(with value 1);
so the $_POST value returns numeric value instead of string. shouldn't I have get string value? I need string value here.
I have applied strval and string to $_POST value but it didn't work. what should I do?