Jump to content

php to check url or something ?


pooker

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.