Try this
$var = 'your value'; echo '<input type="text" name="name1" value="'.$var.'">';
If you want textarea
echo '<textarea class="box">'.$var.'</textarea>';
But CSS is used for designing. It depends on yourself how you want to design it. An example for designing the textarea by box class
<style> .box{ border: 1px solid #aaa; /*getting border*/ border-radius: 4px; /*rounded border*/ color: #000; /*text color*/ } </style>
Related Posts:
- How to use PHP inside css file
- PHP Include Nav-bar For Every Page Techniques?
- How to make a monopoly board using css grid?
- How to horizontally center an element
- count(): Parameter must be an array or an object that implements Countable error in php
- How do I vertically align text in a div?
- Hide scroll bar, but while still being able to scroll
- How can I center text (horizontally and vertically) inside a div block?
- Draw Circle using css alone [duplicate]
- Why does z-index not work?
- Transparent CSS background color
- xajax expanding list query
- Is there any way to change input type=”date” format?
- Is element block level or inline level?
- How to center a “position: absolute” element
- Set the table column width constant regardless of the amount of text in its cells?
- Two divs side by side – Fluid display
- CSS Display an Image Resized and Cropped
- What is sr-only in Bootstrap 3?
- How do I make a placeholder for a ‘select’ box?
- FontAwesome icons are not showing, Why?
- localhost/test.php returns nothing
- Remove border from IFrame
- CSS color vs. background-color vs. background?
- CSS horizontal scroll
- Getting “Failed to load resource: net::ERR_FILE_NOT_FOUND” when trying to load a background image
- CSS: background-color only inside the margin
- Stretch background image css?
- Set cellpadding and cellspacing in CSS?
- Disable Scrolling on Body
- How do I set a background-color for the width of text, not the width of the entire element, using CSS?
- CSS Background Image Not Displaying
- Changing image sizes proportionally using CSS
- How to give the background-image path in CSS?
- How to overlay image with color in CSS?
- CSS Background image not loading
- Outline radius?
- text-overflow: ellipsis not working
- How to reference nested classes with css?
- Why is there an unexplainable gap between these inline-block div elements?
- right align an image using CSS HTML
- CSS Background Image Not Displaying
- How to align content of a div to the bottom
- html not linking css
- How to draw a dotted line with css?
- Removing border from table cells
- How to stick text to the bottom of the page?
- How to make blinking/flashing text with CSS 3
- Why doesn’t height: 100% work to expand divs to the screen height?
- How can I position my div at the bottom of its container?
- Why doesn’t height: 100% work to expand divs to the screen height?
- How can I position my div at the bottom of its container?
- How to overlay one div over another div
- How to get CSS to select ID that begins with a string (not in Javascript)?
- Setting table row height
- How do I disable the resizable property of a textarea?
- Is it possible to set the equivalent of a src attribute of an img tag in CSS?
- Document Root PHP
- Place input box at the center of div
- How to display a gif fullscreen for a webpage background?
- Padding a table row
- how to do a line break in Bootstrap 3.3.7
- How to align 3 divs (left/center/right) inside another div?
- Vertical align not working on inline-block
- Align an element to bottom with flexbox
- How can I change the thickness of my
tag - Is it possible to put CSS @media rules inline?
- Make padding responsive
- Vertically align text next to an image?
- How to create spoiler text?
- How do I center text in a span?
- HTML not loading CSS file
- Change the color of glyphicons to blue in some- but not at all places using Bootstrap 2
- How can I center my ul li list in css?
- Is it possible to use css to shrink text to automatically fit the size of the div
- CSS !important not working
- How to best set a CSS3 transition to none?
- Why is vertical-align: middle not working on my span or div?
- ow to change the style of the title attribute inside an anchor tag?
- Flex align-items: center not centering items
- How can I align text directly beneath an image?
- HTML vs SHTML vs PHTML
- jQuery find element by data attribute value
- How do I clear the content of a div using JavaScript?
- WordPress footer menu floating with height of footer
- Style reply form different than comment form
- WordPress Shortcode and Dynamic CSS
- Style the last element having a specific class [closed]
- How to display a value from a radio button in the options menu in wordpress
- An unwanted inline style is added to my body tag
- Add Codepen animation as Preloader to WordPress
- WP Website is shown in HTML
- how to add functions to my function.php using a child theme?
- How to include different html tags in the header for different pages?
- Font-Family does not looks like how it should be [closed]
- Where to find the html for WordPress site? [closed]
- How Can I Center the Logo in the Navigation Menu? [closed]
- Cant get theme to change footer color through theme customizer
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress