Re: Change font in PHP
- From: "howdy" <info@xxxxxxxxxxxxxxxx>
- Date: 30 May 2006 11:44:35 -0700
Yeah that's fairly easy: 2 parts.
1) PHP is executable code, it does not contain fromatting instructions
for webpages so it cannot apply or change a font in the browser.
Further, unlike JavaScript PHP runs on the server itself 'before' the
html is sent across the internet to your browser.
Stating that however it can be used to output html and css to the
browser.
( JavaScript can modify html 'after' it arrives at your browser because
it runs on the client machine rather than the server. )
2) You want to change text in a form element.
If the form element is <textarea> add this <textarea
style='font-family:arial;'>
If it is an input such as <input type='tex't name='whatever'
value='whatever'> do the same <input type='tex't name='whatever'
value='whatever' style='font-family:arial;'>
If you want php to out put that use
<?
print ("<input type='tex't name='whatever' value='whatever'
style='font-family:arial;'>");
?>
durstbj@xxxxxxxxx wrote:
Hi,
I have what is probably an easy question for anyone that knows PHP...
I'd like to change the font in a form that is using PHP. In HTML you
just type font face=arial and that does the trick, but it doesn't work
in PHP. So what should go there instead? :) Thanks in advance!
Branden
.
- References:
- Change font in PHP
- From: durstbj
- Change font in PHP
- Prev by Date: Re: Tree array
- Next by Date: Re: I need help deciding on what php forum software is best...
- Previous by thread: Re: Change font in PHP
- Next by thread: Really basic question
- Index(es):
Relevant Pages
|