Jump to content

Speed bump page not processing URL variable


sigmadog

Recommended Posts

I'm building a simple Speed Bump page for a client that takes a third-party web site URL and links to a caution page before allowing the user to continue or go back. It's pretty standard stuff, but the test page's PHP script is not being processed correctly. I've tested the same exact script on my web site and it works fine, but it is not working at all on the client's site. I suspect some oddity with their server, which is Windows NT (my server is Linux/Apache), but I lack the skill to determine exactly why it isn't working.

 

Here is the link to the test page on the client's server:

http://www.globalcu.org/bump_test.html

 

Here is the link to the test page on my server:

http://www.sigmadog.com/clients/global/bump_test.html

 

The following are the PHP scripts that works on the URL variable:

The test page link that points to the PHP page for processing:

<a href="bump.php?linkURL=http://www.apple.com" target="_blank">Apple Computers</a>

 

PHP page:  head section:

<?php $link= $linkURL; ?>

 

PHP page: the link:

<a href="<?php print($link); ?>">Proceed to third-party web site.</a>

 

Any help figuring this out will be greatly appreciated.

I'm building a simple Speed Bump page for a client that takes a third-party web site URL and links to a caution page before allowing the user to continue or go back. It's pretty standard stuff, but the test page's PHP script is not being processed correctly. I've tested the same exact script on my web site and it works fine, but it is not working at all on the client's site. I suspect some oddity with their server, which is Windows NT (my server is Linux/Apache), but I lack the skill to determine exactly why it isn't working.

 

Here is the link to the test page on the client's server:

http://www.globalcu.org/bump_test.html

 

Here is the link to the test page on my server:

http://www.sigmadog.com/clients/global/bump_test.html

 

The following are the PHP scripts that works on the URL variable:

The test page link that points to the PHP page for processing:

<a href="bump.php?linkURL=http://www.apple.com" target="_blank">Apple Computers</a>

 

PHP page:  head section:

<?php $link= $linkURL; ?>

 

PHP page: the link:

<a href="<?php print($link); ?>">Proceed to third-party web site.</a>

 

Any help figuring this out will be greatly appreciated.

 

Yes, you have globals enabled on your Linux server which is EXTREMELY dangerous.

 

Try using:

 

<?php $link= $_GET['linkURL']; ?>

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.