pooker Posted July 12, 2008 Share Posted July 12, 2008 Ok I run an array that displays 100's of items in a dropdown menu, when something is selected it goes onto a next page and uses include('sss') on the next page to keep the original dropdown. The problem is when it calls the script again it doubles whatever was in the dropdown, i.e. two of everything. Is there a function or something that can test what page you are on in a php script? I was thinking that would be the best way like if ( url = chapter.php ) then it could invoke the dropdown or somthing , that would keep it from populating it twice. Link to comment https://forums.phpfreaks.com/topic/114388-php-to-check-url-or-something/ Share on other sites More sharing options...
Third_Degree Posted July 12, 2008 Share Posted July 12, 2008 $_SERVER["SCRIPT_FILENAME"] Link to comment https://forums.phpfreaks.com/topic/114388-php-to-check-url-or-something/#findComment-588225 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.