butterflywings73 Posted June 20, 2010 Share Posted June 20, 2010 I am having issues with my comments section of my website. I added the functionality of posting comments but have been bots crawling through and posted all kinds of http links on the site. I've attempted to put a verification process to the site with the help of the HeadFirst Php & MySQL book, but not having luck. I've narrowed it down to the sessions variable not being passed. I have attached the files I think taht are necessary someone to help me resolve the issue. The art_page.php is the main page where the verification would take place. The captcha_code.php is the code that creates the image and assigned the session variable for verification. The header.php file I also included, as it seems as though that can sometimes be an issue for sessions. Thanks in advance for your help... coming from an artist first and programmer second . heidi www.artbyheidi.com [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/205342-session-variables-not-transferring-between/ Share on other sites More sharing options...
ram4nd Posted June 20, 2010 Share Posted June 20, 2010 Ok what is it you want anyways? Link to comment https://forums.phpfreaks.com/topic/205342-session-variables-not-transferring-between/#findComment-1074688 Share on other sites More sharing options...
butterflywings73 Posted June 20, 2010 Author Share Posted June 20, 2010 I need to know how to pass the session variable correctly. The art_page.php doesn't seem to know what the session variable is. Link to comment https://forums.phpfreaks.com/topic/205342-session-variables-not-transferring-between/#findComment-1074691 Share on other sites More sharing options...
kratsg Posted June 20, 2010 Share Posted June 20, 2010 At the very top of the page, place <?php session_start(); require_once('connectvars.php'); //... //... ?> Link to comment https://forums.phpfreaks.com/topic/205342-session-variables-not-transferring-between/#findComment-1074692 Share on other sites More sharing options...
butterflywings73 Posted June 20, 2010 Author Share Posted June 20, 2010 Thank you!!! Ok, I feel silly now Link to comment https://forums.phpfreaks.com/topic/205342-session-variables-not-transferring-between/#findComment-1074700 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.