Jump to content

Problem getting variables from URL with an included file


englishtom

Recommended Posts

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 :S

Any thoughts?

Thanks in advance!

Tom
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.

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.