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! Link to comment https://forums.phpfreaks.com/topic/205119-simple-question-looking-for-a-quick-simple-solution-if-statement-not-executing/ 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. Link to comment https://forums.phpfreaks.com/topic/205119-simple-question-looking-for-a-quick-simple-solution-if-statement-not-executing/#findComment-1073684 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.