Trying to make a form that will forward to this php page.

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
webhostpro
New php-forum User
New php-forum User
Posts: 1
Joined: Sat Jul 19, 2014 7:59 pm
Location: WebHost.pro
Contact:

Trying to make a form that will forward to this php page.

Postby webhostpro » Sat Jul 19, 2014 8:04 pm

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 testing

http://webhost.pro/test.html

But 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!

landi
php-forum Active User
php-forum Active User
Posts: 311
Joined: Thu Mar 15, 2012 3:59 pm

Re: Trying to make a form that will forward to this php page

Postby landi » Mon Aug 04, 2014 9:35 am

Do you still have a problem? The test page seemed to work for me :)
- A


Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 2 guests