pariki
06-24-2008, 02:21 PM
I have an html form that when clicked on send...
It should open the greybox (http://www.orangoo.com/labs/GreyBox) and run the microwhois.php script.
I have been trying to pass it by POST or GET and did not get it to work.
Any suggestions would be really appreciate it.
this is what i have so far...
<form action="dominios.php" method="GET" name="domain"
target="gb_form" onSubmit="return gb_form(this.name)" >
<input class="input1" name="domainname" type="text"
value="" />
<select name="dominio" class="select2">
<option value="com" >.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="info">.info</option>
<option value="all">Todos</option>
</select>
<div style="clear:both; height:63px; font-size:0px"></div>
<div align="right" style="padding-right:18px">
<input type="image" src="images/check.gif" name="submitBtn2"
value="Check" />
</div>
</form>
And the dominios.php contains the following:
[ code]if (isset($_GET['submitBtn2'])){
$domainbase = (isset($_GET['domainname'])) ?
$_GET['domainname'] : '';
$d_all = (isset($_GET['dominio']) && $_GET['dominio'] ==
'all' ) ? 'all' : '';
$d_com = (isset($_GET['dominio']) && $_GET['dominio'] ==
'com' ) ? 'com' : '';
$d_net = (isset($_GET['dominio']) && $_GET['dominio'] ==
'net' ) ? 'net' : '';
$d_org = (isset($_GET['dominio']) && $_GET['dominio'] ==
'org' ) ? 'org' : '';
$d_info = (isset($_GET['dominio']) && $_GET['dominio'] ==
'info' ) ? 'info' : ''; }[/code]
and some more code...
Is there a way to fix this?
Thanks in advance!
It should open the greybox (http://www.orangoo.com/labs/GreyBox) and run the microwhois.php script.
I have been trying to pass it by POST or GET and did not get it to work.
Any suggestions would be really appreciate it.
this is what i have so far...
<form action="dominios.php" method="GET" name="domain"
target="gb_form" onSubmit="return gb_form(this.name)" >
<input class="input1" name="domainname" type="text"
value="" />
<select name="dominio" class="select2">
<option value="com" >.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="info">.info</option>
<option value="all">Todos</option>
</select>
<div style="clear:both; height:63px; font-size:0px"></div>
<div align="right" style="padding-right:18px">
<input type="image" src="images/check.gif" name="submitBtn2"
value="Check" />
</div>
</form>
And the dominios.php contains the following:
[ code]if (isset($_GET['submitBtn2'])){
$domainbase = (isset($_GET['domainname'])) ?
$_GET['domainname'] : '';
$d_all = (isset($_GET['dominio']) && $_GET['dominio'] ==
'all' ) ? 'all' : '';
$d_com = (isset($_GET['dominio']) && $_GET['dominio'] ==
'com' ) ? 'com' : '';
$d_net = (isset($_GET['dominio']) && $_GET['dominio'] ==
'net' ) ? 'net' : '';
$d_org = (isset($_GET['dominio']) && $_GET['dominio'] ==
'org' ) ? 'org' : '';
$d_info = (isset($_GET['dominio']) && $_GET['dominio'] ==
'info' ) ? 'info' : ''; }[/code]
and some more code...
Is there a way to fix this?
Thanks in advance!