Please Help Me Guys

Started on the old forum in March 2011 · view the original in the archive · old links redirect here

#execute #php #prevent

7 replies · 490 views · started 15 years ago · 1 min read

6 participants
CuteAmit Junior · 35 posts #1

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

For Latest Technology Tips & Tricks Click Here

something else Fellow · 2,296 posts #2

Your opening php in the wrong place

<?php
echo "<textarea>";
$id = $uid;
echo "</textarea>";
?>

or better:

<textarea>
<?php
$id=$uid;
?>
</textarea>
Azwan Junior · 18 posts #4

nice share i have problem like that to..

CuteAmit Junior · 35 posts #5

Its Not Working.................... Same Problem.

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

For Latest Technology Tips & Tricks Click Here

frostymarvelous Senior · 266 posts #6
<textarea>
<?php
$id = $uid;
...............................................
.........................................
.......................
?>
</textarea>

Perfection comes at a cost

I accept liberty!

something else Fellow · 2,296 posts #8

CuteAmit wrote: 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:

?>
<textarea> 
<?php 
$id=$uid; 
?> 
</textarea>
<?php

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close