javascript function
<script language="javascript">
function orderSelect(f1){
prompt ("",f1);
var mySite= f1;
prompt ("Your order Id is:",mySite)
t = 'gS.php?s='+mySite;
t = encodeURI (t);
f1.action = t;
f1.submit();
}
</script>
Please be noted that prompted messages is correct, and the supposly the number(order id) has to be passed into the php file to be set as a cookie
here is the php file
<?
$q= $_GET['s'];
setcookie("orderIdCookie",$q);
header("Location:editOrder.php");
?>
but it seems that the javascript does not pass anything to the php file. I guess i am not using the right syntax for passing the parameter.
Please help me

New Topic/Question
Reply


MultiQuote




|