Re: apply css font face to post command
| From: | JEFFRY KILLEN | Date: | Fri, 18 Aug 2023 14:09:34 +0000 |
| Subject: | Re: apply css font face to post command | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-328257@lists.php.net to get a copy of this message | ||
I noticed a syntax error in the code I sent:
>> if($_POST['text']) { print "<p class'(css class def goes
>> here)'>"$_POST['text']"</p>"}
should be
>> if($_POST['text']) { print "<p class'(css class def goes
>> here)'>" . $_POST['text'] . "</p>"}
I left out the . (string concatination dot)
> On Aug 18, 2023, at 4:22 AM, e-letter <inpost@gmail.com> wrote:
>
> On 16/08/2023, JEFFRY KILLEN <jekillen@prodigy.net> wrote:
>>
>> <?php
>> if($_POST['text']) { print "<p class'(css class def goes
>> here)'>"$_POST['text']"</p>"}
>> ?>
>
> The css class selector was successful with the source html and css
> files. The code did not work within php using the same css class
> selector name. Result was blank html web page.
>
> Thank you anyway.