|
|
|
|
![]() ![]() |
Dec 27 2004, 10:47 PM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 3 Joined: 23-December 04 Member No.: 2,889 |
hi all what i want to know is does anybody know a way to input html code into php
because i want to bulid a website using frames but i wish for with to run using php or if theres a way of creating frames using php that would be better for me. if any of u people got some good advice or links please reply. Thanks |
|
|
|
Dec 27 2004, 11:02 PM
Post
#2
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 32 Joined: 12-December 04 Member No.: 2,668 |
Yes I have some links Iam not entirlly sure so I will give you the links w3schools.com and mabie php.net Warning DO NOT put php.com.
|
|
|
|
Dec 28 2004, 02:07 AM
Post
#3
|
|
|
Neurotical Squirrel ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 590 Joined: 4-November 04 From: Novi Sad, Vojvodina Member No.: 2,127 |
If I understood You correctly, You want to put HTML into PHP...
Try using echo command CODE echo "<P>This is a new paragraph</P>"; This will output <P>This is a new paragraph</P> when you look at the source... Using this method, you can enter any code you want... Or, as an alternative, you can use following method: CODE <?php if($variable == 1) { ?>
<P>Variable <STRONG>$variable</STRONG> equals 1</P> <?php } else { ?> <P>Variable <STRONG>$variable</STRONG> is not 1</P> <?php } ?> |
|
|
|
Dec 28 2004, 05:22 AM
Post
#4
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 101 Joined: 3-December 04 Member No.: 2,521 |
just starting to look into php right now, but i've delayed for quite a while just cause i'm comfortable with perl / cgi. so with perl, and i assume it's very similar to php, simply print out what html you want through your script ... ie:
<frameset> <frame name=blah target=blah2> </frameset> you simply achive this with print "<frameset><frame name=blah target=blah2></frameset>" ; maybe there's fancy way of doing it, but doesn't matter. ie print br; = print <br> |
|
|
|
Dec 28 2004, 05:40 AM
Post
#5
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 136 Joined: 20-October 04 From: Thailand Member No.: 1,840 |
For my understood...., you want to put php by html frames.
>> Try this... CODE <FRAMESET rows="50%,50%"> <FRAME SRC="pag_01.php" NAME="frame1"> <FRAME SRC="pag_02.php" NAME="frame2"> </FRAMESET> but if you want to send variable with frame, you can not do it. CODE //this code can not sent variable... <FRAME SRC="pag_01.php?value=$variable" NAME="frame1"> I use iframe to solve this problem.... CODE // use iframe to send variable... <a href=page1.php?variable=001 target=iframe1> <iframe name=iframe1 src="page1.php?value=<?=$variable;?>"> |
|
|
|
Dec 28 2004, 07:32 PM
Post
#6
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 35 Joined: 28-December 04 Member No.: 2,987 |
QUOTE(Raven @ Dec 28 2004, 12:47 AM) hi all what i want to know is does anybody know a way to input html code into php because i want to bulid a website using frames but i wish for with to run using php or if theres a way of creating frames using php that would be better for me. if any of u people got some good advice or links please reply. Thanks From my example, i advice u to use IFRAMES, u have examples down in other posts, but u can also dynamicly create html pages with php echo (also example in posts down) give yourself and imagination. Why IFRAMES because you will not so having problems with google.com link to tutorials: php tutorials |
|
|
|
Dec 29 2004, 06:48 AM
Post
#7
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 144 Joined: 24-July 04 From: Arizona Member No.: 189 |
Exactly why do you want to use frames? Unless you don't have absolutely any other alternative you should use frames.
|
|
|
|
Dec 29 2004, 10:19 AM
Post
#8
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 65 Joined: 16-November 04 Member No.: 2,306 |
First make your web page in html file and save in html format fike
then open with notepad and save with .php no .htm and .html save with .php thats all and now you have php site |
|
|
|
![]() ![]() |
Similar Topics