Please Help Me Guys

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Please Help Me Guys

    Hello Guys,

    Iam a newbie in this forum, i hope all are doing well.

    I need a help from you i think here many experts are available to help me.


    I want to put a php code into my page but it do not execute, i mean the users can copy the php code from my site.

    i do like this


    echo "<textarea>
    <?php

    $id = $uid

    ...............................................
    .........................................
    .......................

    ?></textarea>";


    after putting this code the php code is executing.....


    how to prevent this ???


    anyone can help me ???

    i hope you understood my problem

    #2
    Your opening php in the wrong place
    PHP Code:
    <?php
    echo "<textarea>";
    $id $uid;
    echo 
    "</textarea>";
    ?>
    or better:
    PHP Code:
    <textarea>
    <?php
    $id
    =$uid;
    ?>
    </textarea>

    Comment


      #3
      May be he mean how to display html/php code as text
      have connected with http://adexchat.com ?
      Fun up with
      http://forum.adexchat.com

      Comment


        #4
        nice share i have problem like that to..

        Comment


          #5
          Its Not Working....................
          Same Problem.


          Anyone Can Help Me (Hope GumSlone Can & Others Also)

          Comment


            #6
            PHP Code:
            <textarea>
            <?php
            $id 
            $uid;
            ...............................................
            .........................................
            .......................
            ?>
            </textarea>
            Perfection comes at a cost



            I accept liberty!

            Comment


              #7
              can u upload that page here.. ?Where you want to use this ...
              Then its easy to understand
              Free Web Hosting @HostersPoint.com
              php Hosting with Web Builder

              Buy - Sell ADs
              ADMOLA ADs Network
              Monetize Your Site Traffic

              Comment


                #8
                Originally posted by CuteAmit View Post
                Its Not Working....................
                Same Problem.


                Anyone Can Help Me (Hope GumSlone Can & Others Also)
                if you have php already open then the above codes wont work....
                you can close php and re-open it after the code eg:
                PHP Code:
                ?>
                <textarea> 
                <?php 
                $id
                =$uid
                ?> 
                </textarea>
                <?php

                Comment

                Working...
                X