Re: apply css font face to post command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On 8/15/2023 5:31 AM, e-letter wrote:

A css file contains

@font-face {
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'>

Another php file:

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.

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux