Jump to content

Simple Script won't work in Safari


Mutley

Recommended Posts

	<script language='javascript'> 
	var name = confirm("Are you sure you wish to purchase a <?=$conMan?> <?=$conNam?>?");
	if(name==true){
		window.location.href='shop.php?cat=<?=$cat?>&prod_id=<?=$prod_id?>&confirm=1';
	}else{
		window.location.href='shop.php?cat=<?=$cat?>';
	}
</script>

 

It pops up but when you select "Okay" it doesn't do anything... like it isn't true?

Link to comment
https://forums.phpfreaks.com/topic/142346-simple-script-wont-work-in-safari/
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.