Thanks!
Here's the thing. I am working with a whois script, mwhois.php. The list of available domain name extensions is generated by calling on a config file. In the config file the extensions are placed in an array. Can I include the "values" in this array? Here's the code:
/* this a list of the whois extensions to use, edit them as you need them */
$whois_exts = array(
"com",
"net",
"org",
);
The first form itself just get the array from this file. The program then "converts" the selection and inserts it in the output page. If teh domain is available, the output page creates a form with the "dmain name"."ext" allready in it. Want I want is to add a <input type=hidden...> to this form...but it has to show the corresponding value for the ext. com = 1000 net = 2000 org = 3000
I tried this in the output page, but it does not work:
<?php
{
if ($ext("") == "com") $gtld = '1000';
}elseif{ ($ext("") == "net") $gtld = '2000';
}elseif{ ($ext("") == "org") $gtld = '3000';
}
?>
<form action="secure_ordering.php" method="POST">
<input type=hidden name=domain value="domains.com">
<input type=hidden name=gtld value=" ".$gtld." >
<INPUT TYPE=SUBMIT NAME="add" VALUE="Registrar">
</form>
If it does not make any sense to you, sorry, I'm doing the best I can 🙂