urlencode - Convert string to URL readable in php html form -
i'm trying convert string included in link href tag. have now:
<?php $title = urlencode(the_title()); ?> <form> <input type="button" value="submit resume" onclick="window.location.href='..../../submit-resume/?job=<?php $title ?>'"> </form> i can 'the_title()' post url, problem title might have characters such "r&m technician" "&" cutting off string 1 time parse through url , can't finish value.
output should r%26m%20techncian. i'm getting r&m%20technician, without %26.
any help much appreciated.
thanks
urlencode
No comments:
Post a Comment