Results 1 to 4 of 4

Thread: variable HTML
      
   

  1. #1
    omjo is offline Corporal
    Join Date
    May 2007
    Posts
    10

    Default variable HTML

    Hi, i want to put a value from a variable on the screen. How to define the exact position and how to get it on the screen.

    Johan

  2. #2
    omjo is offline Corporal
    Join Date
    May 2007
    Posts
    10

    Default Re: variable HTML

    hi, how do i put a string at a specific position on the screen.

    when i write

    echo $total;

    it is printed at the top of the screen

    JOhan

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: variable HTML

    Create a html box in your page. Place the code in the html box. The code must be:

    <?
    echo $total;
    ?>

    Move the box wherever you want.

    You can also format the text as you like, both as font type / size / colour / style and as background. The code would be:

    <font style="font-size:15px;BACKGROUND-COLOR:#FFFF00" color="#FF0000" face="Arial"><b><i><u><? echo $total;?></u></i></b></font>

    the tags <b> </b> <i> </i> <u> </u> are for Bold, Italics, and Underlined.



    Trick: write whatever text you want in BV. Format and colour it as you like. Then rig***lick on the text, and select "html". You will see something like:

    <font style="font-size:15px;BACKGROUND-COLOR:#FFFF00" color="#FF0000" face="Arial"><b><i><u>Text to display</u></i></b></font>

    Change the part in red with <? echo $total;?> and you are done.

    Please note that this is php, so only when the page is published you will be able to see the text, not in preview.



    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  4. #4
    omjo is offline Corporal
    Join Date
    May 2007
    Posts
    10

    Default Re: variable HTML

    wow! thanks you soooooo much. its working. :)

    Johan

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49