Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Removing standard grey text boxes
Old 03-02-2009, 05:28 AM Removing standard grey text boxes
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Hi team,

I am trying to remove the standard grey box that comes up when a text entry field is specified.

It is in wordpress so I don't know if it is a css, html or php problem.

I have attached an image of my dilemma.

Thanks for any help.

DB
Attached Images
File Type: jpg Image2.jpg (38.9 KB, 8 views)
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-02-2009, 05:59 AM Re: Removing standard grey text boxes
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Don't use a text input.
use a hidden form element to hold the data
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-02-2009, 07:59 AM Re: Removing standard grey text boxes
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Hi Chris, thanks for that but I cant seem to find a decent reference on the 'net as to what the hidden field does and how it helps me.

I have found out that it hides a text area where text shouldn't be entered, but if that is the case how is the text entered on the form.

Here is the form section of the file.

Code:
 <div class="form_input"><input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" tabindex="1" /></div>
<label for="author">Name <?php if ($req) echo "(required)"; ?></label>

<div class="form_input"><input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" tabindex="2" /></div>
<label for="email">Mail (will not be published) <?php if ($req) echo "(required)"; ?></label></p>

<div class="form_input"><input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" tabindex="3" /></div>
<label for="url">Website</label></p>



<?php endif; ?>

<!--<p><small><strong>XHTML:</strong> You can use these tags: <?php echo allowed_tags(); ?></small></p>-->

<p><textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea></p>

<p><input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
</p>
<?php do_action('comment_form', $post->ID); ?>
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 08:03 AM Re: Removing standard grey text boxes
stoot98's Avatar
Ultra Talker

Posts: 427
Name: Stuart
Location: Glasgow, Scotland
Trades: 0
Why not just use CSS to style the actual text field to look like the underlying images and then you can just do away with the background?
stoot98 is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 09:05 AM Re: Removing standard grey text boxes
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Hey Stoot, I dont see how I can change the look of that grey box when it is a standard html text 'box'...... or am I wrong in that assumption?

Cheers

Last edited by pathfinder_05; 03-02-2009 at 09:06 AM.. Reason: bad spelling, again!
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
Old 03-02-2009, 09:31 AM Re: Removing standard grey text boxes
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Aha, reading the text on your image it looked as if you had a working method of getting user input withou the text field (there is BTW but it will only work in IE)

Just make the input box effectively invisible.

HTML Code:
<div id="input" style="height:30px;width:20%;background-color:orange;">
<input type="text" style="background-color:transparent;height:100%;width:100%;border:0px;">
</div>
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-02-2009, 11:52 AM Re: Removing standard grey text boxes
pathfinder_05's Avatar
Experienced Talker

Posts: 38
Name: DB
Trades: 0
Thanks Chris,

Am now looking into that?
pathfinder_05 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Removing standard grey text boxes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.34353 seconds with 13 queries