+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: PHP and HTML combined...

  1. #1
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Exclamation PHP and HTML combined...

    Can they be combined??

    For example...

    <?php
    SOMETHING ?>
    <HTML>
    SOMETHING
    </HTML>
    <?php>
    SMOETHING
    ?>

    And like that as many times i want...
    Can it be done?
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

  2. #2
    Corey's Avatar
    Corey is offline VPS Migration Professional Corey is a glorious beacon of lightCorey is a glorious beacon of light
    Join Date
    Dec 2004
    Location
    Northfield, NH
    Posts
    17,152

    Re: PHP and HTML combined...

    Yes

    Code:
    <?php
    include('/include/here.php');
    ?>
    <HTML>
    Random HTML txt Here
    <?
    echo 'using PHP now';
    ?>
    </HTML>

  3. #3
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: PHP and HTML combined...

    Thanks!
    I can make more things with my website now :P
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

  4. #4
    Richard's Avatar
    Richard is offline x10 Elder Richard is an unknown quantity at this point
    Join Date
    Feb 2005
    Location
    South Africa
    Posts
    1,014

    Re: PHP and HTML combined...

    You can even use it in loops and If's

    // For loop
    Code:
    <?php
    for ($x = 1; $x <= 10; $x++) {
    ?>
        <div>This is div tag #<?php print $x ?></div>
    <?php
    }
    ?>
    OR

    // IF, THEN, ELSE
    Code:
    <?php
    if ($x = 1) {
    ?>
        <div>x is equal to 1</div>
    <?php
    }else {
    ?>
        <div>x is not equal to 1</div>
    <?php
    }
    ?>
    sourcewave.net -- Linux is like a teepee, no Windows, no Gates, Apache inside.

  5. #5
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: PHP and HTML combined...

    Hey Richard!!!
    That's too complicated for mee
    Let me handle it in the other way which is easyer :P
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

  6. #6
    Richard's Avatar
    Richard is offline x10 Elder Richard is an unknown quantity at this point
    Join Date
    Feb 2005
    Location
    South Africa
    Posts
    1,014

    Re: PHP and HTML combined...

    Thats just one step up from what Corey posted.
    sourcewave.net -- Linux is like a teepee, no Windows, no Gates, Apache inside.

  7. #7
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: PHP and HTML combined...

    Yes... :P
    But i only know HTML...
    I use Nukestilo (A PHP-Nuke changed version)... So i only add/modifie things with HTML...
    And i also consider myself an expert in HTML...
    I would love to learn HTML and PHP really good...
    But most tutorials are not really good..
    If you know about ony usefull from HTML or PHP let me know please! :D
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

  8. #8
    oab's Avatar
    oab
    oab is offline
    x10 Lieutenant oab is an unknown quantity at this point
    Join Date
    Apr 2005
    Location
    Olympia, WA
    Posts
    459

    Re: PHP and HTML combined...

    http://www.teamoab.com

    aim:dknigh73
    msn:d_knight_3@hotmail.com

  9. #9
    dharmil's Avatar
    dharmil is offline x10 Elder dharmil is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Avenel New Jersey
    Posts
    828

    Re: PHP and HTML combined...

    PHP Manual
    http://www.php.net/docs.php

    This is Good Tut Engin:
    Pixel2Life

  10. #10
    Fedlerner's Avatar
    Fedlerner is offline Retired Fedlerner is an unknown quantity at this point
    Join Date
    Aug 2006
    Location
    Buenos Aires, Argentina
    Posts
    12,923

    Re: PHP and HTML combined...

    Thanks!!! :D
    I'll take a look at them
    Federico Lerner
    Former x10Hosting Administrator - Staff Manager

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  2. My pages in php and html don`t work
    By splinter in forum Free Hosting
    Replies: 6
    Last Post: 05-09-2006, 04:34 PM
  3. Include php into Html
    By Tyler in forum Scripts & 3rd Party Apps
    Replies: 11
    Last Post: 07-13-2005, 08:50 PM
  4. PHP or HTML?
    By xAdReNaLiNx in forum Free Hosting
    Replies: 3
    Last Post: 02-17-2005, 07:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers