Hi all,
I'm using a function to verify a value which is hexadecimal or not.When i click a button, this function gets executed which i've added in the <head> tag.
The function is ,
<script language="JavaScript">
function popup()
{
window.open('http://10.132.16.82/verify.php','popup','width=400,height=400,scrollbars=yes,resizable=no,toolbar=no,directories=no,
location=no,menubar=no,status=no,left=500,top=400');
return false;
}
</script>
<?php
function verify()
{
if(isset($pvideopid))
{
if(preg_match('/[^0-9a-f]/i',$videopid))
{
popup();
return false;
}
}
}
?>
</HEAD>
This verify() should popup a javascript window which inturn leads to a form which is to display OK button and few lines(not code) thats all.When i click Ok it should return this form itself. Is my code correct?