After it we make a small check whether the domain name is long enough. If the form was submitted – the POST array has the “submitBtn†in it – than we set the domain name and the tld in 2 separate variables. One for the domain name, one for the tld and one the submit button. The first part contains the HTML form code which as action calls the script itself. ".com", '', 'No match for' ) Įxplanation: The code is quite easy. The HTML code with the built in form processing looks like this: Besides this I added a checkbox for the tld to make it easier to extend the script. So let’s create a HTML page with a form which contains an input field. To make a useful script it would be nice to make a nice html page around it where a user can input the requested domain and as result he/she get the availability. Now we have a function which can check a domain is available or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |