WordPress.org

Forums

Integrate form into wordpress (5 posts)

  1. altious
    Member
    Posted 3 years ago #

    I tried to integrate my WHMCS domain search form in my site
    with the html code

    <form action="http://www.mysite.com/domainchecker.php" method="post"><input type="hidden" name="token" value="abcdefghijik...." /> <input type="hidden" name="direct" value="true" /> <input onfocus="if (this.value=='Enter Domain to Search') this.value='';" type="text" name="domain" value="Enter Domain to Search" size="30" /><select name="ext"> <option>.com</option> <option>.net</option> <option>.org</option> <option>.biz</option> <option>.info</option> <option>.name</option> <option>.us</option> </select><input type="submit" value="Search" /></form>

    What I get is that the search button always align below the input box, I don't know why it's working like this in wordpress.. It appears fine if I input it in an .html file

  2. Ziv
    Member
    Posted 3 years ago #

    It might be because the width of the section isn't long enough for the button and the input box. Try decreasing the input's width or the button's width so it fits (you can do that in css). If that doesn't work then I think you can use css and floats to fix this. If you want I can do this for you but you would have to link to your site.

  3. altious
    Member
    Posted 3 years ago #

    Hi Ziv,

    thanks for the reply, I've just check and the width section is long enough.
    I tried to put into a normal page in wordpress default theme same result
    I don't understand why it works in html not in wordpress

    I tried before floating with css but it doesnt work for me
    I wonder if there's other ways or the smth wrong with my form syntax?

  4. altious
    Member
    Posted 3 years ago #

    anyone know any solution?

  5. altious
    Member
    Posted 3 years ago #

    help please

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.