Jump to content

Default TLD in domain dropdown for integration code?


Francisco

Recommended Posts

Hi guys can someone tell me how I define which TLD is default on the dropdown box when it loads?

 

Heres the actual code that I have right now, but it defaults to .co.uk (I want to default to .com)

 

<form action="https://site.com/myaccount/cart.php?a=add&domain=register" method="post">

Domain: <input type="text" name="sld" size="20"> <select name="tld">

<option>.com</option>

<option>.net</option>

<option>.org</option>

<option>.us</option>

<option>.biz</option>

<option>.info</option>

<option>.ws</option>

<option>.co.uk</option>

<option>.org.uk</option>

<option>.tv</option>

<option>.ca</option>

<option>.mobi</option>

</select>

<input type="submit" value="Go">

</form>

Link to comment
Share on other sites

  • 2 weeks later...

Use the Selected part of the Option... see the bold below...

 

Hi guys can someone tell me how I define which TLD is default on the dropdown box when it loads?

 

Heres the actual code that I have right now, but it defaults to .co.uk (I want to default to .com)

 

<form action="https://site.com/myaccount/cart.php?a=add&domain=register" method="post">

Domain: <input type="text" name="sld" size="20"> <select name="tld">

<option selected>.com</option>

<option>.net</option>

<option>.org</option>

<option>.us</option>

<option>.biz</option>

<option>.info</option>

<option>.ws</option>

<option>.co.uk</option>

<option>.org.uk</option>

<option>.tv</option>

<option>.ca</option>

<option>.mobi</option>

</select>

<input type="submit" value="Go">

</form>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated