Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Html Frames, how do i wrap html into php
Raven
post 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 blink.gif
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 ph34r.gif
Go to the top of the page
 
+Quote Post
gizmo291
post 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.
Go to the top of the page
 
+Quote Post
Galahad
post 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 } ?>
Go to the top of the page
 
+Quote Post
eiteljoh
post 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>
Go to the top of the page
 
+Quote Post
nancmu
post 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;?>">
Go to the top of the page
 
+Quote Post
splehati
post 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 blink.gif
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  ph34r.gif
*



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
Go to the top of the page
 
+Quote Post
Roly
post 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.
Go to the top of the page
 
+Quote Post
faceofdie
post 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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Html To Php Questions(3)
  2. Html Font Tags In Php(11)
  3. Executing Scripts Without Include() Function(3)
  4. Best Php/html(2)
  5. Parsing .html Pages(9)
  6. Html Within Php Coding(11)
  7. Php And Asp.net Form(6)
  8. Adapting Html Code Embed To Work On Phpnuke(7)
  9. Parsing Html As Php(7)
  10. Php And Disabling Html Tags(10)
  11. Logging Dowload Files From Your Server Onto A Html File(1)
  12. [help]: Php To Html (static) Converter(3)
  13. Help With Moving Html Form Results To Shopping Cart?(3)
  14. <?php ?> Marking Up With Php(0)
  15. Script To Translate Into Bbcode From Html Tags(1)
  1. Html Site With Login(2)
  2. Html Code Tester. Online Script(15)
  3. File Checker-how To Check File Whith Html Through Html?(2)
  4. How Do I Get The Result To "stick" And Add Html Tags?(14)
  5. Html Form!(4)