englishtom Posted November 17, 2006 Share Posted November 17, 2006 Hi everyone,Iv been lurking the forums for a good few months but this is my first post.. Im having a problem with using include to call a form. The way it is suppost to work is the parent page calls the correct include page based on entries in a database so the layout of a page is easilly customisable, the problem Im having is that one of the pages Im trying to include is a form which needs data passed to it from the previous page and using $_GET in the included page doesnt try to get from the parent page's url, it tries to get from its own url which is no good as I havent passed the data there!Iv tried passing the data in a session and passing it in the url to the parent page then defining it as a variable but neither work :SAny thoughts?Thanks in advance!Tom Link to comment https://forums.phpfreaks.com/topic/27563-problem-getting-variables-from-url-with-an-included-file/ Share on other sites More sharing options...
englishtom Posted November 17, 2006 Author Share Posted November 17, 2006 Ahh got the solution thanks to Installer on the phpbuilder forums, I was using an absolute address to include my files, I just needed to use a relative one instead!Hope that helps someone if they ever get the same problem I had. Link to comment https://forums.phpfreaks.com/topic/27563-problem-getting-variables-from-url-with-an-included-file/#findComment-126151 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.