unidox Posted September 28, 2007 Share Posted September 28, 2007 How would I make an input field have no black border, and just be plain old white? Same with a check box. How? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/ Share on other sites More sharing options...
MadTechie Posted September 28, 2007 Share Posted September 28, 2007 using CSS ie <style type="text/css"> <!-- input { color: #781351; background: #fee3ad; border: 1px solid #781351 } --> </style> <label> <input type="text" name="textfield"> </label> PS this is a HTML/CSS question not a PHP one Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/#findComment-356886 Share on other sites More sharing options...
unidox Posted September 28, 2007 Author Share Posted September 28, 2007 didnt work, I am basically trying to hide the texzt box, so you have to highlight it to see it Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/#findComment-356898 Share on other sites More sharing options...
MadTechie Posted September 28, 2007 Share Posted September 28, 2007 it works fine!! check the CSS is in the head! <style type="text/css"> <!-- input { border: 0px solid #000000; } --> </style> <label> <input type="text" name="textfield"> </label> Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/#findComment-356904 Share on other sites More sharing options...
unidox Posted September 28, 2007 Author Share Posted September 28, 2007 Works, how do I make a checkbox and submit butten hidden? Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/#findComment-356915 Share on other sites More sharing options...
jbingman Posted September 29, 2007 Share Posted September 29, 2007 <input type="check" /> <input type="submit" /> Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/#findComment-357620 Share on other sites More sharing options...
AndyB Posted September 29, 2007 Share Posted September 29, 2007 Works, how do I make a checkbox and submit butten hidden? The best way to hide stuff is not to put it on the internet. What's the point of a form with mysterious invisible inputs and controls, except to irritate users (who know where to find the 'back' button and leave your site)? Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/#findComment-357656 Share on other sites More sharing options...
ToonMariner Posted September 30, 2007 Share Posted September 30, 2007 why are you not simply using input type="hidden" for these fields? if you want something to not show then don't show it in the firts place. danger is ofcourse that people can play around with html by saving the source on their machine, editiong it and then viewing the page in their browser and submitting. in theses case you should try and check the refering page (not always possible) and do some good validation on the datasubmitted. Quote Link to comment https://forums.phpfreaks.com/topic/70977-solved-input/#findComment-358313 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.