Page 1 of 1
<-- complete noob - Ques. on PHP and HTML integration
Posted: Fri Jun 27, 2003 5:47 pm
by Klavier
Here's my problem, i have created an HTML interface for a site, and there is also PHP code. my job is to put both together. i am a complete PHP noob, i've never worked with it. so basically what i was told, is to put the Interface and the PHP together. How would i go about doing that?
thanks!
Posted: Fri Jun 27, 2003 6:00 pm
by m3rajk
it would help if i saw the two.. being a reative newb myself....
here's my suggestion:
<?php
/*php stuff you were given */
?> html stuff for the page
then look at what needs to cross.. ie: we get the page title fromthe php.. ok... then in the html, instead of <title>blahblahblah</title>
use <title><?php echo $php title info; ?>
i hope that helps some
Posted: Sat Jun 28, 2003 1:05 am
by Klavier
thanks!
Posted: Sat Jun 28, 2003 4:06 am
by qartis
If you have a .php script that has HTML in it, and you need to basically fill in some sections of the HTML with variable values, cut out the old static text, and replace it with
or
And then continue on with the HTML. Note that $variable has to be a real variable, containing the text you want to insert into the HTML at that point.
Posted: Sat Jun 28, 2003 7:35 am
by m3mn0n
Where is the arrow pointing in the topic line? heh
