jdock1 Posted June 18, 2010 Share Posted June 18, 2010 This is pissing me off. Im trying to make it so when a button is clicked it displays phpinfo. I dont understand what Im doing wrong here. It should be working. First, heres my code. <?php $phpinf= phpinfo(); if (@$_GET['submit'] == "phpinfo") { echo "$phpinf"; } ?> At first I didn't create a variable for it, and had simply echo "phpinfo()" That worked, however instead of displaying the actual php info function it just echoed the text phpinfo(), lol. So I figured this would solve that problem. But no, of course, php has to screw me again! Im sure there is a simple solution to this please help! Quote Link to comment Share on other sites More sharing options...
jdock1 Posted June 18, 2010 Author Share Posted June 18, 2010 Oh jesus, I got it haha shit sorry. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.