It sounds like the OP is trying to format the text within an input
field. This is not supported by the browser.
On 8/16/2023 7:18:23 AM, william wrote:
On 8/15/2023 5:31 AM, e-letter wrote:
Readers,
A css file contains
"
@font-face {
font-family:fontname;
src:url('./font.ttf') format ('truetype');
}
"
A php file contains:
"
<form action='file.php' method='post'>
text: <input type='text' name='text'>
<input type='submit'>
</form>
"
Another php file:
"
<?php
echo $_POST["text"];
?>
Please what is the correct syntax to apply the css file to the text
entered by the user?
If I understand you question, you can't.
When in a variable the text in question is pure ascii (or equivalent
in other character sets).
CSS is used to format the _display_ of the information.
The font information is not carried with the textual information.
https://www.php.net/manual/en/mysqlinfo.concepts.charset.php