View Single Post
  #4 (permalink)  
Old 05-05-2008, 07:24 AM
Jordan's Avatar   
Jordan Jordan is online now
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Posts: 7,328
Last Blog:
Tramp Variables
Credits: 1
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default Re: Getting PHP to execute from a form

You are passing ?code=<? echo "test"; ?> ? Why not pass the value "test" and then echo $code?

If you are really intent on passing PHP code via the URL (which is not recommended) use the eval function. PHP: eval - Manual

Also, you should include <?php on your beginning tag.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Reply With Quote