Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

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


ASKER CERTIFIED SOLUTION
Avatar of Bembi
Bembi
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

No, that does no work...
User generated image
User generated image
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
EXPERT CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.

$url = urlencode($url);

Open in new window


This will encode... transform... many human readable characters as required to be correctly encoded.