views:

142

answers:

1

i need to know how to pass everything after the .php part in this link

"http://wreckedclothing.net/help/[email protected]&t=985559"

to a iframe on the same page. "hosted on the same site" like this

"<iframe>
      src="http://www.wreckedclothing.net/[email protected]&amp;t=985559"
      frameborder="0"
      width="829"
      name="tree"></iframe>

see how it adds everything to the link in src

A: 

$_SERVER['QUERY_STRING'] contains the query string ("everything after the .php part", except the "?", that is).

So if you're in a php-page, you could do something like this:

<iframe src=[YOUR_URL_HERE]?<?php echo $_SERVER['QUERY_STRING']; ?>></iframe>

to pass the whole query-string that has been send to the page containing the iframe to the src of the iframe.

Select0r
omg thank you i been looking for hours for how to fix this. man that was so simple too lol. thnx again
john