You can't compare them with PHP, no, unless you call an external Javascript interpreter or something. Even then, you wouldn't be able to use the value of the textbox, to which the server-side interpreter would have no more access than PHP does. You can compare them with Javascript:
Code:
<script type="text/javascript">
if(opener.document.getElementById("text1").value == "$getValue")
doSomething();
else
doSomethingElse();
</script>
... or, you can submit the form then compare them with PHP on the next page.
Bookmarks