what happen to my input box?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

what happen to my input box?

Post by skynet88 »

when i type into the box..nothing appear? here my site:

http://itcheat.info/

what the solution?i have check css and php but no idea bout that..what do you think that cause the prob?
thanks in advanced
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: what happen to my input box?

Post by social_experiment »

What type of file is it, php, html ? I copied the source and pasted it and it works (i.e i can see the text i type). Paste your style sheet code thats relevant to the input box.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

Re: what happen to my input box?

Post by skynet88 »

how bout this code

Code: Select all

<?php
include("config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo($title) ?></title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="head"><h1 id="logo"><a href="index.php"><span class="none">IT Cheat</span></a></h1></div>
<div id="container">

<p id="paragraph">

<?php echo($adsense) ?>

<?php echo($paragraph) ?>

</p>

     <!-- CONTENT START -->
      
         <!--[error]-->
         
         <!--[index_above_form]-->
         	
         <form action="includes/process.php?action=update" method="post" onsubmit="return updateLocation(this);"><p>

            <input type="text"  name="u" value="http://www.google.com" size="50" id="search" onfocus="this.select()">
            
            <input type="submit" value="" title="Click to browse site" id="submit"><br class="clear"/>
			</p>
			<div id="text">

  </div>
 <ul id="checkers">
<?php foreach ( $toShow as $option ) echo <<<HTML

                  <li class="checks"><input type="checkbox" class="space" name="{$option['name']}" id="{$option['name']}"{$option['checked']}>
                  <label for="{$option['name']}" class="tooltip" onmouseover="tooltip('{$option['escaped_desc']}')" onmouseout="exit();">{$option['title']}</label></li>

HTML;
?>

    		</ul>   
 </form>
</div>
<div id="foot">




         <!--[index_below_form]-->

         <!-- CONTENT END -->
         


</body>
</html>
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: what happen to my input box?

Post by social_experiment »

I can still see the text in the textbox. Please paste your CSS code :)
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

Re: what happen to my input box?

Post by skynet88 »

here is my website file..

you can download here.... i'm dizzy now...lol

http://rapidshare.com/files/423275355/itcheat.info.zip :banghead: :banghead: :banghead: :dubious:
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: what happen to my input box?

Post by social_experiment »

Code: Select all

#search {
	width: 241px;
	height: 17px;
	background: url("images/text.gif") no-repeat;
	border: 0;
	padding: 12px;
	margin: 10px 0 0 227px;
}
#submit {
	width: 75px;
	height: 37px;
	background: url("images/surf.gif") no-repeat;
	border: 0;
	margin: 10px 0 0 5px;
}
The problem appears to be with the backgrounds you are using. Are they mission critical to your site? If not, rather use a background color like #000 and have the text appear white. Also, if i didn't have your code i probably wouldn't have know about the form. Having it hidden (in plain sight) is not a good idea. Give the form or the text input / submit button some sort of a border so people know about it. Hth.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

Re: what happen to my input box?

Post by skynet88 »

i change the background image for text.gif to #000000, but also did'nt work..

i just give you all file because i did'nt know where the problem code either in css,php or html.....

where is the form or the text input / submit button located? :drunk:
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: what happen to my input box?

Post by social_experiment »

skynet88 wrote:i change the background image for text.gif to #000000, but also did'nt work..
And it won't work because you need to change the background color to #000. (background-color: #000).
skynet88 wrote:i just give you all file because i did'nt know where the problem code either in css,php or html.....
The problem you are having is with the css.
skynet88 wrote:where is the form or the text input / submit button located?
The code below is the code you posted, which i downloaded.

Code: Select all

<?php
include("config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo($title) ?></title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="head"><h1 id="logo"><a href="index.php"><span class="none">IT Cheat</span></a></h1></div>
<div id="container">

<p id="paragraph">

<?php echo($adsense) ?>

<?php echo($paragraph) ?>

</p>

     <!-- CONTENT START -->
      
         <!--[error]-->
         
         <!--[index_above_form] Form Starts Here -->
         	
         <form action="includes/process.php?action=update" method="post" onsubmit="return updateLocation(this);"><p>

            <input type="text"  name="u" value="http://www.google.com" size="50" id="search" onfocus="this.select()" />
            
            <input type="submit" value="search" title="Click to browse site" id="submit" /><br class="clear"/>
			</p>
			<div id="text">

  </div>
 <ul id="checkers">
<?php foreach ( $toShow as $option ) echo <<<HTML

                  <li class="checks"><input type="checkbox" class="space" name="{$option['name']}" id="{$option['name']}"{$option['checked']}>
                  <label for="{$option['name']}" class="tooltip" onmouseover="tooltip('{$option['escaped_desc']}')" onmouseout="exit();">{$option['title']}</label></li>

HTML;
?>
 <!-- From Ends Here -->
    		</ul>   
 </form>
</div>
<div id="foot">
:|
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

Re: what happen to my input box?

Post by skynet88 »

i follow your instruction... has changed the background color to #000 but still cannot solve the prob.. :wink:
appreciate your help bcoz spend your time to solve my prob
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: what happen to my input box?

Post by social_experiment »

Code: Select all

#search {
	width: 241px;
	height: 17px;
	background-color: #000;
	border: 0;
	color: #fff;
	padding: 12px;
	margin: 10px 0 0 227px;
}
#submit {
	width: 75px;
	height: 37px;
	background-color: #000;
	color: #fff;
	border: 0;
	margin: 10px 0 0 5px;
}
This is the css that i used to resolve the problem. Paste your style sheet if you still can't solve the problem :) Hth.
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

Re: what happen to my input box?

Post by skynet88 »

now you view my site... still not solve..
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: what happen to my input box?

Post by social_experiment »

Actually it is showing. The reason the form is not as visible as you want it is as follows : Your background-color is black, your input fields background color's are black.
social_experiment wrote:Give the form or the text input / submit button some sort of a border so people know about it.
It's also partly hidden behind a set of checkboxes so it's possible that there could be a problem with the HTML.
Attachments
Image
Image
your_text.jpg (35.94 KiB) Viewed 1086 times
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

Re: what happen to my input box?

Post by skynet88 »

is it my browser prob? i cannot see the text color...???
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: what happen to my input box?

Post by social_experiment »

I've tested it with firefox and i see (or rather i dont) your dilemma. Could you add that page, all the images and the stylesheet together and put it on here for download?
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
skynet88
Forum Commoner
Posts: 42
Joined: Tue Apr 20, 2010 5:23 pm
Contact:

Re: what happen to my input box?

Post by skynet88 »

here the file..you can download all file here:

http://www.mediafire.com/?t2ich8o89ogx3t6
Mencari Ubat Resdung? .
Make money with simcard , only for malaysian!
Post Reply