chrisjmears
asked on
How do I get a web URL formatted correctly in a string?
It keeps cutting it off the url at about the <?php echo ltrim when displayed in the <a href=<?php echo $url ?>>
if (substr($misc,0,1) == 'g')
$url = 'org.php?id=<?php echo ltrim($misc,"g")?>&ts=<?php echo $time?>&h=<?php echo md5($misc.$time.$secret); ?>';
else
$url='pro.php?id=<?php echo ltrim($misc,"u")?>&ts=<?php echo $time?>&h=<?php echo md5($misc.$time.$secret); ?>';
Show us a sample of what you want it to say, please. Thanks, ~Ray
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Perfect thanks!
Great! I always find that simple statements are easier to write and debug compared to compound statements. This usually leads to two responses. One is from new programmers. They say, "but that's so simple..." The other is from experienced programmers. They say, "Very clear..." Either way, I save a lot of time debugging!
;-)
Ray
;-)
Ray
ASKER
I like your style! Easy is better! thanks again!
Roger that!
Best regards, ~Ray
Best regards, ~Ray