How do I get the full path of Page B, which has URL parameters generated by Page A (a PHP form with method = GET)?
$_GET only seems to work if one is getting variables from within the same page and include seems to include the entire page (which is not what I want)..
Get Full Path of Page
Moderator: General Moderators
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Code: Select all
<pre><?php print_r($_SERVER);?></pre>Edit: Misread the question.
You have to pass get variables along from page to page if you want to keep them.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
This is a good way to get all $_GET variables:
Code: Select all
$getVars = '?';
foreach($_GET as $id => $data)
{
$getVars .= $id . '=' . $data . '&';
}
$getVars = substr($getVars, 0, (strlen($getVars) - 1));- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Yeah, due to monetary issues, I haven't touched the company site in a while. I've other projects that make my survival possible.violet wrote:Everyone's been so helpful here. Thanks again!
By the way I see a:
/>
on the upper left side of your page.
I'm wondering if it's just my browser because Opera's weird sometimes..
My fave layout is 'YourCompany' ^_^ Spiffy!