When I paste this into the body of the node...

print "mac: " . $_POST["mac"] ."<br/>";

I get this when I view it...

print "mac: " . $_POST["mac"] ."<br/>";

I have looked around but can not find any where on how to get php commands like this to work.
Any help?

[Moved to appropriate forum: nevets]

Comments

nevets’s picture

Have you enable the 'PHP filter' module?

Under Input filters (for body text) did you select 'PHP Code'?

whte’s picture

I've also faced the same problem,

and I've untick the Convert line breaks into HTML (i.e.
and

)

and the authenticated user
at the PHP filter configuration

and everything works fine now.