curiouswebster
asked on
What's wrong with my URL?
sub.domain.com?vid=105008499&fn=JOHN&ln=SMITH&str=29 ROYAL DR&cty=TALLAHASSEE&st=FL&zp=30309&company=BMI&title=CTO
When I tried to make this URL into a Link in my email client, it ignored it. Is it obvious what the problem is?
Thanks
When I tried to make this URL into a Link in my email client, it ignored it. Is it obvious what the problem is?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
EXPERT CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ah! @Dr. Klahn's eyesight is better than mine, as he caught the spaces in "str=29 ROYAL DR".
URLs must be "encoded", so ever occurrence of whitespace collapses into %20.
More likely this is the problem than the missing https:// protocol selector.
The fix for this will be to build a URL, then do this in your PHP code.
This will encode... transform... many human readable characters as required to be correctly encoded.
URLs must be "encoded", so ever occurrence of whitespace collapses into %20.
More likely this is the problem than the missing https:// protocol selector.
The fix for this will be to build a URL, then do this in your PHP code.
$url = urlencode($url);
This will encode... transform... many human readable characters as required to be correctly encoded.
ASKER