Re: apply css font face to post command

From: Date: Wed, 16 Aug 2023 11:18:23 +0000
Subject: Re: apply css font face to post command
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-328248@lists.php.net to get a copy of this message
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

« previous php.general (#328248) next »