1. Chief-Editor

    Chief-Editor Well-Known Member

    Aug 23, 2009
    800
    Hello everyone.,
    i want to edit one code but i dont where to put the value so it will work

    [​IMG]


    when someone click on go GO after entering domain name i want redirect to my domain.php link
    here is the code
    Code:
      <div class="domain">
        <div class="bigsale">$<span class="text60">9</span>.99<span class="text24">/mo</span><br />
          <span class="text16">.com domain</span></div>
        <div class="domain-box">
          <h4>Choose a Domain...</h4>
          <span class="text16">Enter domain (yourdomain.com) or use keywords...</span>
          <div class="clr"></div>
          <input name="textfield" type="text" class="field3" id="textfield" value="your domain name...." />
          <select name="select" class="field4" id="select">
            <option>.com</option>
            <option>.net</option>
            <option>.org</option>
          </select>
          <input type="submit" class="gobtn2" name="button" id="button" value="" />
          <div class="clr"></div>
          <div class="domain-text">Transfer Domains - only $8.29/yr.</div>
          <div class="domain-price">.com<br />
            <span class="text18">$9.99</span></div>
          <div class="domain-price">.com<br />
            <span class="text18">$9.99</span></div>
          <div class="domain-price">.com<br />
            <span class="text18">$9.99</span></div>
          <div class="domain-price">.com<br />
            <span class="text18">$9.99</span></div>
        </div>
      </div>
    Kindly tell me where i can put my link in this code so it will redirect me to domain registeration page
     
  2. Hyperz

    Hyperz Well-Known Member Respected

    Feb 8, 2009
    2,229
    If what you're trying to do is submit the input data to domain.php you just need to wrap the inputs in a form. Something like:

    HTML:
    <div class="domain">
        <div class="bigsale">
            $<span class="text60">9</span>.99<span class="text24">/mo</span><br />
            <span class="text16">.com domain</span>
        </div>
        <div class="domain-box">
            <h4>Choose a Domain...</h4>
            <span class="text16">Enter domain (yourdomain.com) or use keywords...</span>
            <div class="clr"></div>
            <form action="/domain.php" method="POST">
                <input name="domain_name" type="text" class="field3" id="textfield" value="your domain name...." />
                <select name="tld" class="field4" id="select">
                    <option>.com</option>
                    <option>.net</option>
                    <option>.org</option>
                </select>
                <input type="submit" class="gobtn2" name="button" id="button" value="" />
            </form>
            <div class="clr"></div>
            <div class="domain-text">Transfer Domains - only $8.29/yr.</div>
            <div class="domain-price">.com<br /><span class="text18">$9.99</span></div>
            <div class="domain-price">.com<br /><span class="text18">$9.99</span></div>
            <div class="domain-price">.com<br /><span class="text18">$9.99</span></div>
            <div class="domain-price">.com<br /><span class="text18">$9.99</span></div>
        </div>
    </div>
    https://www.w3schools.com/html/html_forms.asp
     
  3. Kingside

    Kingside New Member

    Mar 5, 2018
    3
    Sorry, but the piece of Html Code tell us nothing.
    @Hyperz: Very lovly to wrap it in a form, but i am sure this wont work, because we dont know anything about the client-server communikation. Maybe it happens over Ajax? The Server must also get the request.
     

Share This Page