PDA

View Full Version : html a code of the form of check of the domain



tatiana
10-24-2005, 03:31 PM
I want to insert the form of check of the domain on the main page.

Help me to write, please, html a code of the form for data transmission to a script /whois/whois.php

And how to specify the coding of page (charset=windows-1251)?

Patrick
10-26-2005, 05:36 PM
My best suggestion would be to copy the html of the form from whois.php into your page and work off of that.

tatiana
10-26-2005, 06:41 PM
How to specify the coding of page (charset=windows-1251)?

ashok
11-28-2005, 10:05 AM
In case someone else needs this.
This is the html code to include on first/other pages.
Note that I have removed the div and table tags to fit my site. You can put them back if you want.



<form name='whois_search' method='POST' action='whois/whois.php'>
<input type='hidden' name='page' value='WhoisSearch'>
<input name='domain' type='text' value='введите домен' size="17" maxlength="63">
<select name="ext0">
<option value="ru" selected>.ru</option>
<option value="com">.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="us">.us</option>
<option value="biz">.biz</option>
<option value="info">.info</option>
<option value="tv">.tv</option>
<option value="ws">.ws</option>
<option value="cc">.cc</option>
<option value="name">.name</option>
<option value="in">.in</option>
<option value="cn">.cn</option>
<option value="be">.be</option>
<option value="it">.it</option>
<option value="net.ru">.net.ru</option>
<option value="org.ru">.org.ru</option>
<option value="pp.ru">.pp.ru</option>
<option value="msk.ru">.msk.ru</option>
<option value="spb.ru">.spb.ru</option>
<option value="su">.su</option>
<option value="ру">.ру</option>
<option value="ком">.ком</option>
<option value="нет">.нет</option>
<option value="орг">.орг</option>
</select>
<input type='submit' id='Submit' value='проверить'>
</form>


You have to check that the option values are in the config file.
You can change the option values to your need.

To enable russian language domains (rlidns), modify line 88 in classes/domains.php to



// check format
if (!ereg("^[a-zA-Zа-яА-Я0-9]+[a-zA-Zа-яА-Я0-9-]*[a-zA-Zа-яА-Я0-9]+$", $domain))


Works fine with russian language in form and checks availability of russian language international domain names.

Enjoy!

Patrick
11-28-2005, 08:55 PM
In case someone else needs this.
This is the html code to include on first/other pages.
Note that I have removed the div and table tags to fit my site. You can put them back if you want.



<form name='whois_search' method='POST' action='whois/whois.php'>
<input type='hidden' name='page' value='WhoisSearch'>
<input name='domain' type='text' value='введите домен' size="17" maxlength="63">
<select name="ext0">
<option value="ru" selected>.ru</option>
<option value="com">.com</option>
<option value="net">.net</option>
<option value="org">.org</option>
<option value="us">.us</option>
<option value="biz">.biz</option>
<option value="info">.info</option>
<option value="tv">.tv</option>
<option value="ws">.ws</option>
<option value="cc">.cc</option>
<option value="name">.name</option>
<option value="in">.in</option>
<option value="cn">.cn</option>
<option value="be">.be</option>
<option value="it">.it</option>
<option value="net.ru">.net.ru</option>
<option value="org.ru">.org.ru</option>
<option value="pp.ru">.pp.ru</option>
<option value="msk.ru">.msk.ru</option>
<option value="spb.ru">.spb.ru</option>
<option value="su">.su</option>
<option value="ру">.ру</option>
<option value="ком">.ком</option>
<option value="нет">.нет</option>
<option value="орг">.орг</option>
</select>
<input type='submit' id='Submit' value='проверить'>
</form>


You have to check that the option values are in the config file.
You can change the option values to your need.

To enable russian language domains (rlidns), modify line 88 in classes/domains.php to



// check format
if (!ereg("^[a-zA-Zа-яА-Я0-9]+[a-zA-Zа-яА-Я0-9-]*[a-zA-Zа-яА-Я0-9]+$", $domain))


Works fine with russian language in form and checks availability of russian language international domain names.

Enjoy!
Yeah, I need to implement new rules badly. However, originally I didn't realize that so many people would use the script (although there are very few alternatives out there ~ and those that exist usually are "Lite" versions of good software). It really took off once I implemented control panel (guess people do not like editing massive config files ;)).