PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Passing a URL as a variable

  1. Is there any particular reason why I shouldn't be able to pass a URL as a variable to another form? I'm doing it on one site, but on another site (different Web host), it doesn't work. In some cases, as soon as I get to the double-slash part of the address, the variable fails to go through. In another case, as soon as a get to the "." in the address, it doesn't go through.

    Any ideas?

    Posted 12 years ago on Friday August 24, 2012 | Permalink
  2. If it works on one host but not the other, it's likely something in the host configuration doing that. Can you show us how you're passing the URL and what the result is?

    Are you passing the URL in a query string? If that's the case, the URL should be URL encoded.

    http://php.net/manual/en/function.urlencode.php

    Posted 12 years ago on Saturday August 25, 2012 | Permalink