This is my php script
switch($x[0]){
case 'categorias' :
$_POST['step'] = 'categorias';
$_POST['pais']=$_POST['pais'];
$_POST['method']=1;
?><script>
window.location.href = "<?php echo $url ?>?step=categorias";
</script><?
break;
case 'corredores':
$_POST['step'] = 'corredores';
$_POST['pais']=$_POST['pais'];
$_POST['method']=1;
?><script>
window.location.href = "<?php echo $url ?>?step=corredores";
</script><?
break;
default: //do something ;
}
When I am trying to do this I am loosing the values that I am sending using POST[''] variable ,
Can any one help me out with this , I tried using the php header()
option but it is producing header already sent error,
So i used the javascript
Can any one help me how I can fix this
Thanks in advance