Link to home
Create AccountLog 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
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of curiouswebster

ASKER

No, that does no work...
User generated image
User generated image
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
EXPERT CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
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.