non sono sicuro di aver capito bene quello che chiedi, comunque se quello che vuoi fare è cercare un valore di un campo contenuto in un iframe nella pagina, allora si può fare:
Pagina Untitled-5.html
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Documento senza titolo</title>
<
script>
    function 
leggiIFrame() {
        
alert(document.pippo.txtProva.value);
    }
</script>
</head>

<body>
<iframe name="pippo" style="width: 300px; height: 100px;" src="Untitled-6.html"></iframe>


<input type="button" value="Recupera" onclick="leggiIFrame()" />
</body>
</html> 
Pagina Untitled-6.html
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<
title>Documento senza titolo</title>
</
head>

<
body>
<
input type="text" value="prova testo" name="txtProva" />
</
body>
</
html