I have a php script that do a whois query in many servers, at the end, I get a free domain name to register. I want to pass this variable [>DOMAIN<].[>EXT<] to a form inside of html form. This is the code sugested by the autor:
<form action="../forms/registro.php" method="POST">
<input type=hidden name=dominio value="[>DOMAIN<].[>EXT<]">
<center>
<INPUT TYPE=SUBMIT NAME="add" VALUE="Registrar">
</center>
</form>
And I want to put this info here:
<input type="text" name="Dominio" value=<? echo $dominio;> >
This doesn't work at all, I get a Parse error in line...
But then I tried this at the end of the whois script:
<a href="../forms/registro.php?dominio=[>DOMAIN<]&ext=[>EXT<]">
<form action="../forms/registro.php">
<center>
<INPUT TYPE=SUBMIT NAME="add" VALUE="Registrar"></a>
</center>
</form>
And I put this on my html form:
<input type="text" name="Dominio" value=
<?
print $dominio; print "."; print $ext;
?>
>
And this works, but only with mozilla. It doesn't work with Iexplorer, neither with opera, konqueror, etc.
Any help will be appreciate... And sorry for my bad english... =)