Html Frames - how do i wrap html into php

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Html Frames - how do i wrap html into php

Raven
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

Reply

gizmo291
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.

Reply

Galahad
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 } ?>

Reply

eiteljoh
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>

Reply

nancmu
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;?>">

Reply

splehati
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

 

 

 


Reply

Roly
Exactly why do you want to use frames? Unless you don't have absolutely any other alternative you should use frames.

Reply

faceofdie
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

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. html iframes "single html" - 1.61 hr back. (1)
  2. how to enable iframes in php nuke - 53.38 hr back. (1)
  3. php wrap html - 105.32 hr back. (1)
  4. wrap html around php - 106.88 hr back. (1)
  5. wrap html in php - 154.15 hr back. (1)
  6. what do html frames do? - 183.47 hr back. (1)
  7. how to 2html pages into 1 asp page without using any frameset - 185.99 hr back. (1)
  8. html frames vertical align - 285.88 hr back. (1)
  9. frames con php y html - 300.52 hr back. (1)
  10. php wrap html file - 301.86 hr back. (2)
  11. html frames with php - 327.64 hr back. (1)
  12. sample questions for html frames - 474.40 hr back. (1)
  13. "print frameset" perl - 501.79 hr back. (1)
  14. picture gallery php "using frames" demo - 511.85 hr back. (1)
Similar Topics

Keywords : html, frames, wrap, html, php

  1. Html Form!
    Using MySQL?! (4)
  2. How Do I Get The Result To "stick" And Add Html Tags?
    Help please? (14)
    $changepage = $_REQUEST ; echo " $changepage "; ?> Okay, I need a
    way for any information typed in my textarea to "stick" on the page in which it "posts". Since I am
    creating a way for my registered users to decorate their "homepages". So any help, tutorials, etc.
    would be greatly appreciated. ^^ Thanks.....
  3. File Checker-how To Check File Whith Html Through Html?
    (2)
    edit:sorry for the mistake it is php not html and its with not whith my code checking script= CODE
    <?php $file = '$CHECK'; if (file_exists($file)) {
        echo "The file $filename exists"; } else {     echo "The file $filename
    does not exist"; } ?> my question is how to check the file whith html example:on a page
    a text box is provided and a button the user writes a file name (or website) the user clicks on the
    submit button then it checks and show it (with the code above) i got the code C....
  4. Html Code Tester. Online Script
    (15)
    Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
    this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
    Current script: CODE <?php //Save this as something like htmltest.php function
    CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
    input $html_safe=str_replace("<?php"," ",$html_unsafe);
    //Starts security measures $html_safe=str_replace("?>","
    ",$html_sa....
  5. Html Site With Login
    Is it possible? (2)
    Hello. I´m building my own site and I need some help... Is it possible to use a login sistem in php
    and mysql database in a html site? ....
  6. Script To Translate Into Bbcode From Html Tags
    (1)
    I was wanting to know how to make a form like they use here for the website form. I want to be able
    to turn stuff in to bbcode. If you know how or would be willing to write the script for me could
    you email me. will@darkzone3.com . I am william to give all credit to who ever makes it. and i can
    put a link back to a site if you want. Please be specific with the topic title. "Help" is never a
    good topic title. This is explained in our forum rules. Title modified. ....
  7. <?php ?> Marking Up With Php
    How to simply add HTML tags with PHP (0)
    Just a simple function to mark your queries /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> CODE <?php $uzorak = 'Hosting credit'; //use
    post to get $uzorak variable $tapeti = "Hosting credits are collected by posting at
    the forums. The hosting credits are given after your posts are filtered and depending on its size,
    you get proportional hosting credits. Once you get the required credits you can post an application
    for hosting. One of our admins will then approve your application after which you c....
  8. Help With Moving Html Form Results To Shopping Cart?
    (3)
    Hello All- So I think I'm tackling a pretty big project here and was looking for some help... I
    am fairly new to extensive coding (beyond HTML and a little bit of JavaScript) and wanted to know
    how I can recall HTML form results on the next page (in a shopping cart) with a price based on the
    choices picked in the form. It sounds complicated...look at this example: Check out this page:
    http://www.plugcomputers.com/intelprobuild.php See how when the user goes through and picks all
    their computer parts a price at the bottom shows the system price based on their sel....
  9. [help]: Php To Html (static) Converter
    I need help to use PHP to HTML Conversion (3)
    Hello Guys, I want to use PHP 2 HTML Conversion for my PHP-Nuke CMS And my PHPbb or IPB Forum, but
    don't know or does't have any idea about it. If any know about it than please tell me. In
    Trap17.com forum PHP to HTML (Static) conversion example is their, you can see it on your Address
    bar, Same thing i want to use with my PHP Codes........ Thanks in advance, i am waiting for your
    suggestion....
  10. Logging Dowload Files From Your Server Onto A Html File
    (1)
    Well, i had the idea of logging the downloads from my web in a html file few weeks ago, and i solved
    it with a lil php page included in my homepage. You could name the links with a name like
    "download.php?file=filename.ext" and then, in the download.php put the next code: (well you put
    the html and head and body tags if u want, i only write the php here) CODE <? if
    (isset($_GET['file']))
    $file=$_GET['file']; //so it gets the GET data from url
    (file=filename.ext); $ip=$_SERVER[....
  11. Php And Disabling Html Tags
    how can i do this? (10)
    Hello everyone Im TRYING to make a forum and obviously for security i need to disable HTML tags
    being used in posts. i know how to use the str_replace() function but to be honest i think id have
    to do that for every single tag. I also trued using the html CODE <XMP> stuff
    </XMP> tag but i need to be able to use the new line tag to make a new line as all the
    posts are stored as HTML. if this isnt clear let me give an example: QUOTE NEW POST PAGE >
    user makes new post and posts it > PHP PROCCESSOR PAGE MAKES HTML FILE > NEW HTML FILE CONTAINI....
  12. Parsing Html As Php
    and XAMPP as the server version on Windows (7)
    On my Trap17 account here, I have an .htaccess file with the following declaration which (I think)
    forces all html files to be parsed by the PHP Parsing engine and therefore I can insert snippets of
    php scripts into html files. CODE AddType application/x-httpd-php .html .htm However, when I
    add an .htaccess file to the local directory of the version of XAMPP on my local machine, it fails.
    I have tried to add the .htaccess file to the htdocs folder and elsewhere, but it still doesn't
    work to parse html through the php parser. Any ideas on how to get these htm....
  13. Adapting Html Code Embed To Work On Phpnuke
    Help With This Html Code Pls (7)
    QUOTE how can get this html code to work on my phpnuke site? what tags would i
    have to enable in the $Allowable HTML part of my config.php file?? Edited topic title. Moved
    to Programming. ....
  14. Php And Asp.net Form
    server control html component (6)
    does this sort of feature can be done in php. http://www.w3schools.com/aspnet/aspnet_forms.asp or
    how and what are the differences.. thanks /huh.gif' border='0' style='vertical-align:middle'
    alt='huh.gif' /> ....
  15. Html Within Php Coding
    Is there a way to read HTML Code? (11)
    Is there a way to have PHP read a text file, which contains HTML Code, not text to display. This
    way i have a simple code in every page, linking to this text file, and then if i'm wanting to
    change the code, i only need to change the code in the text file. If that all makes sense?
    /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> I get the feeling it
    can be done, but the only code i have seen is one that displays the contents of the text files.....
  16. Parsing .html Pages
    (9)
    This isn't really that urgent but I was wondering, I read somewhere that you can configure you
    server to pars all html pages for php code, and I was wondering if that was true, and if trap17 has
    that feature enabled?....
  17. Best Php/html
    (2)
    I'm wondering what open source converters are out there already. I'm generating legal
    documents that require names addresses etc. I want the ability for the end user to modify the base
    document whenever they require. I plan to use the TinyMCE WYSIWYG editor to let the users edit each
    page. I will populate names and addresses dynamically based on tags in the text. Is there something
    good out there that will convert the html to pdf reliably? ....
  18. Executing Scripts Without Include() Function
    php function to execute a script w/o showing html markup (3)
    Hi guys. I have another newbish PHP question. /laugh.gif' border='0' style='vertical-align:middle'
    alt='laugh.gif' /> Today, I decided to make a new navigation bar for my site. It doesn't look
    good because I just started learning Flash today, so I was basically feeling my way around the
    application. Anyways, if you use Flash and you try to validate your site at http://w3.validator.org
    , you get a lot of errors for some weird reason. So I was thinking about separating the markup for
    embed Flash from the rest of the site's source code. The problem with that i....
  19. Html Font Tags In Php
    editing fonts using html? (11)
    I have a php script thats is fully written in php (no html at all). Now for my question, how can i
    edit the fonts? Ill make it easier to understand, the following is a data script (found the
    script): CODE <? $mese[0]="-"; $mese[1]="January";
    $mese[2]="February"; $mese[3]="March";
    $mese[4]="April"; $mese[5]="May";
    $mese[6]="June"; $mese[7]="July";
    $mese[8]="August"; $mese....
  20. Html To Php Questions
    (3)
    Hi, I would like to know if it is safe to change HTML files to PHP files by just changing the
    dotHTML extension to dotPHP?? I tried it to a single html file because i used a php code of blog,
    and it worked. I'm using Internet Explore version 6 and it's working fine. I would like to
    know if the PHp files would work for other browsers after changing dotHTML to dotPHP extension.
    Thanks....
  21. Nice Gallery Script?
    Specificially w/ frames... (9)
    I'm looking for one that has the thumbnails in frames, while you can view the real picture in
    another..and auto thumbnails the files you have in a folder. Do you know any scripts like that?
    Thanks in advance.....
  22. ansi 2 html
    (1)
    well im starting to use my old ansi parser to display ansi charactors on websites as though they
    were txt.. php is neat about lett me doing that... except i forgot exactly how i did it before.. if
    anyone has any idea where to get started let me know please....

    1. Looking for html, frames, wrap, html, php

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for html, frames, wrap, html, php

*MORE FROM TRAP17.COM*
advertisement



Html Frames - how do i wrap html into php



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE