22, November 2008

HTML/PHP Domain Search Bar Question - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: HTML/PHP Domain Search Bar Question
« previous next »
Pages: [1] 2 Print

Author Topic: HTML/PHP Domain Search Bar Question  (Read 2442 times)
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« on: Apr 29, 2006, 02:15:37 AM »

Hello,
My friend sent me a PHP code that he wants to use for a domain availiablility search. The code he provide was very hard for me to understand. I was wondering if you guys/girls knew where there is a tutorial or pre-made script that would allow a scirpt like the html one i proived below.
Thanks.

Code:
<html>
<head></head>
<body>
<b>Domain Search</b><br>
www.&nbsp;&nbsp;
<INPUT TYPE="input" value="Enter Desired Domain">
<option selected>.com
<select>.org
<option>.net
<option>.biz
<option>any
</select>
</body>
</html>
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8250
42487 credits
Members referred : 3



« Reply #1 on: Apr 29, 2006, 01:21:24 PM »

I don't think that there is a premade script for this.

Maybe you should post the php code and we will try to help you Smiley

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy or twitter Visit through proxy

Last blog : Free Unlimited Bandwith and disk space to good to be true?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Apr 29, 2006, 03:02:47 PM »



Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #3 on: Apr 30, 2006, 05:44:35 AM »

Thanks olaf that script is working. However I do have a question about. When you cick the search button it pops the other line up. What I am trying to do is make two line breaks before the code, but only when the code pops up.

Heres the piece of the php code I am working with.
Code:
<b>Domain Availability Check</b><br><br>
  <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="form">
    <input type="text" name="domain" size="20" onMouseOver="this.className='imageTwo'" 

onMouseOut="this.className='imageOne'" maxlength="63" class="imageone" value="<?php echo 

(isset(
$_POST['domain'])) ? $_POST['domain'] : ""?>
">
    <?php echo $my_whois->create_tld_select(); // this method generates the select menu woth all tld's 

?>

    <br><br>
    <input name="submit" type="submit" class="button" value="Check">  
  </form><br>
<?php echo ($my_whois->msg != "") ? $my_whois->msg ""?>

The last line in the coding above is the pop up text.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #4 on: Apr 30, 2006, 09:44:58 AM »

Do you have an example you can show me, some other site maybe? (I cant't follow you)

EDIT:

Or its about this?

Code:
<?php echo ($my_whois->msg != "") ? "<p style=\"margin-top:1.0em;\">".$my_whois->msg."</p>" ""?>
« Last Edit: Apr 30, 2006, 09:47:49 AM by olaf »


Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #5 on: Apr 30, 2006, 10:59:35 AM »

Aight that worked.

However, I stumbled across another issue.  Cry
If you look on this page ( http://silent.2dollarhost.net/domain.php Visit through proxy ) the two select menus are different. I can't seem to figure out how to add my css class to the first one. The css class I am using for the second one is class="drop"

Thanks.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Apr 30, 2006, 11:03:40 AM »

Hi,

you forced the select to use a pseudo class that is defined to be used with a input element:

Code:
select.drop {color: #000000;background: #FFFFFF;border: 1px solid #BAD0D6}
input.imageOne{background-color: #FFFFFF; background-image:url(images/inputone.png); color:000000; border: 1px solid #BAD0D6}


Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #7 on: Apr 30, 2006, 08:51:55 PM »

Yes, I know I did that. I want the first one to look like the second one. I can't get the first one to do that becuase it is created by the php coding. So how would i attach the css code to the select menu that is created in php?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Apr 30, 2006, 09:52:53 PM »

Yes, I know I did that. I want the first one to look like the second one. I can't get the first one to do that becuase it is created by the php coding. So how would i attach the css code to the select menu that is created in php?
just create an other pseudo class or give an element an ID


Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #9 on: May 01, 2006, 01:58:51 AM »

I have no idea how to do that becuase it does not show a <select> anywhere.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: May 01, 2006, 08:56:13 AM »

try this:

inside your css
Code:
#tldSelect select {
  background-color:yellow;
}

wrap arround the php function a span element like this:
Code:
<span id="tldSelect"><?php echo $my_whois->create_tld_select(); ?></span>


Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #11 on: May 01, 2006, 10:17:06 PM »

That sounds like it should work. My hosting is down so I will have to try it later.

Thanks
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #12 on: May 01, 2006, 10:21:35 PM »

That sounds like it should work. My hosting is down so I will have to try it later.

Thanks
hosting is down???
Wink


Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #13 on: May 01, 2006, 10:55:52 PM »

Yeah, My ftp is messing up. It doesn't let me sign in half the time and all kinds of wierd stuff.
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #14 on: May 02, 2006, 04:41:11 AM »

Haha! Thanks agian Olaf it is working. If you care to take a look I uploaded it.

http://silent.2dollarhost.net/domain.php Visit through proxy
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #15 on: May 02, 2006, 08:27:33 AM »

Haha! Thanks agian Olaf it is working. If you care to take a look I uploaded it.

http://silent.2dollarhost.net/domain.php Visit through proxy
Yes it looks fine, some hint:

Because an input is different in diff. browsers you should use a backgr. image that repeats in the x direction ( check the form in firefox to see what I mean)


Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #16 on: May 03, 2006, 01:13:27 AM »

Well... You made me find another problem with that page lol. I noticed that the page does not work in Internet Explorer. Any ideas why it is a blank page in IE?

Thanks
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #17 on: May 03, 2006, 09:16:59 AM »

hmmm I'm think its about the absolute postioned layers, these are often the reason of trouble.

I see you have a standard two colom layout try to build your site according this example:
http://css.maxdesign.com.au/floatutorial/tutorial0816.htm Visit through proxy


Last blog : Just a better Internet portal provided by Google
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #18 on: May 03, 2006, 10:05:35 PM »

If that is the case why do all the other other non php pages work in IE and not the php?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6441
39470 credits
Members referred : 374


It's time to use PHP5!


« Reply #19 on: May 03, 2006, 10:08:45 PM »

If that is the case why do all the other other non php pages work in IE and not the php?

I don't think that the problem is the php file...the only thing I say is that absolute positioned layouts are not optimal for websites...


Last blog : Just a better Internet portal provided by Google
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2381
Tags : ftp domains internet explorer firefox browsers Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] 2 Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: HTML/PHP Domain Search Bar Question
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Nov 22, 2008, 11:35:50 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 37.741
Total Topics: 7.651
Total Members: 4.398
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: egseopro

31 Guests, 4 Users online :

11 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.