sphinx Posted September 6, 2011 Share Posted September 6, 2011 For some reason, this include function is putting a "1" on my website, why? <?php $link ='index.php?sent'; if (!isset($_GET['sent'])) echo include('contact.php'); ?> Thanks! Quote Link to comment Share on other sites More sharing options...
WebStyles Posted September 6, 2011 Share Posted September 6, 2011 what's in contact.php ? Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted September 6, 2011 Share Posted September 6, 2011 include returns a 1 on success, and you're echoing it. Simply: include 'contact.php'; is all that's needed. Quote Link to comment Share on other sites More sharing options...
dougjohnson Posted September 6, 2011 Share Posted September 6, 2011 Then do any "echoing" inside the contact.php include. Quote Link to comment Share on other sites More sharing options...
sphinx Posted September 6, 2011 Author Share Posted September 6, 2011 Thanks!! 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.