|
Posted by flamer die.spam@hotmail.com on 07/24/06 22:46
Pat wrote:
> Hello,
>
> I have a question in regards to the use of php and html. The question
> is: can someone write a script separate from the html page and then call
> the script in like in a css style and use the values in the html page?
> If so how?
>
> I am just learning php and am not ignorant to programming, but I would
> use a function or created class in the separate file but how would you
> call the php file into the html file is what's killing me.
>
> I hope that makes sense and I hope someone can at least point me in the
> right direction to find the answer; because, to me putting all the code
> in an html document is redundant especially on the oop side.
>
> Thank you,
> Patrick
You can include an html page into you php file, just by doing
include("file.ext"); you can't call php into html, im not sure exactly
what you mean by use the values in the html.. you can set a variable in
php, include an html page and within that html page have <input
type='name' value=' <?php echo $something; ?>'>
Flamer.
Navigation:
[Reply to this message]
|