Jump to content

[SOLVED] Includes with $_GET URLs


papaface

Recommended Posts

Hello,

I have this code:

include(CreatePath("templates/registerform.php?error=".$_GET['error']));

The CreatePath function basically prepends the actual path on the server to the include.

Anyway. I get this error:

Warning: include(/home/**/public_html/qss/templates/registerform.php?error=p)

How can I send $_GET's through an include?

 

Link to comment
https://forums.phpfreaks.com/topic/83416-solved-includes-with-_get-urls/
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.