Jump to content

How to edit dmw's $_SERVER['QUERY_STRING']?


Tjorriemorrie

Recommended Posts

Hey! I used the insert record which is provided by Dreamweaver. And i have a page insertcomplete.php where it redirects to after it was inserted.

 

However, now i need to also carry over 2 variables via GET.

 

Here's the default code:

  $insertGoTo = "insertcomplete.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));

 

I have to add the $kingdom and $zone variables to that, e.g.

"insertcomplete.php?kingdom=$kingdom&zone=$zone"

, but ofcourse that doesn't work.

 

any help appreciated!!

Link to comment
https://forums.phpfreaks.com/topic/113719-how-to-edit-dmws-_serverquery_string/
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.