<script type="text/javascript" language="javascript">
<!--
function validate(myForm)
{
...a bunch of other unrelated stuff here...
window.open('http://www.mysite.com/tool.php?z='+ myForm.z.value+'&loc='+location.href,'','toolbar=0,location=0,directorie s=0,status=0,me nubar=0,scrollbars=0,resizable=yes,height=400,width=400',true);
}
//-->
</script>
<form name="myForm"> <input name="z" type="text"> <input type="submit" value="Submit" onClick="return validate(myForm);"> </form>
Hope this helps. :)
- Brian
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php