Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    html blocks in php

    Is there a guideline or special rule when intermingling the two for instance, to center a printed (echoed) message? Read an article on this and im interested, but i haven't found a source other then that.
    Last edited by thefuzmixman; 04-16-2004 at 04:28 AM.

  • #2
    Regular Coder
    Join Date
    Apr 2004
    Location
    Birmingham, MI
    Posts
    131
    Thanks
    0
    Thanked 0 Times in 0 Posts
    With Print or Echo, you can use anything you would put in a normal html file. Such as:
    PHP Code:
    <?php
    print '<p style="text-align:center;">Some Centered Text</p>';
    ?>

  • #3
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post
    PHP Code:
    <?php 
    echo "<p style=\"text-align:center;\">Some Centered Text</p>"
    ?>
    and the echo statement ...

  • #4
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my personal view on things

    http://www.codingforums.com/showthre...highlight=mode --> last post + included link there
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •