I have the following code
$upc = $_POST['UPC'];
$_SESSION['UPC'] = $_POST['UPC'];
if(strlen($upc)< 5)
{
?>
<script type="text/javascript">
<!--
open('TestScale2.php');history.back();
//-->\
</script>
<?php
This will open TestScale2 in a new tab. How can I open it in the same tab?