u r using ajax pages,hence there may be page refreshing issues,so i think you cant get the values properly,just echo 'S' and 'Submit' as
- $ss=$_GET['S']);
-
$su=$_POST['Submit']);
-
-
echo $ss;//may be incorrect
-
echo $su;//may be correct
-
and find the error youself...also try with REQUEST[] hence more ajax pages deals with this...if not possible try with $_SESSION[] to data transfer and check as
- if((isset($_SESSION['S'])==1)&&$SESSION['S']!=''))...
after your codes,set
its not a secure method...before 2 days i solve such kind of an issue like this