Chaze Posted July 20, 2014 Share Posted July 20, 2014 I just installed this new script here http://webhost.pro/domain-check.php it's a basic domain availability tool.I am trying to make a form that can be used on any page forward to this page with the content.The page loads with this in the url webhost.pro/domain-check.php?domain=dwhs.net and will run the page.So I can make a form that just submits to that page and sends the details.I made this page for testinghttp://webhost.pro/test.htmlBut no go, here is the code:<form id="search" action="/domain-check.php" method="GET"><input type="text" name="s"><a onClick="document.getElementById('search').submit()" class="button1">Search</a><div class="clear"></div></form>Thanks! Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted July 20, 2014 Share Posted July 20, 2014 Name your domain name input field domain not s <input type="text" name="domain"> Quote Link to comment Share on other sites More sharing options...
ginerjm Posted July 20, 2014 Share Posted July 20, 2014 And why the convoluted submit logic??? You have a form. Why not use a 'type="submit"' element instead of an anchor using JS to trigger the submit of this very same form??? Very strange. If you copied this from somewhere, I'd be wary of other silly practices in that place. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.