Ok quick question with some php code and i have no idea how to have it do what i want Im retreiving these 3 vars from a previous page: $name = $HTTP_POST_VARS['Name']; $class = $HTTP_POST_VARS['Class']; $level = $HTTP_POST_VARS['Level']; Which are then emailed to me, the email contains a link to a different page what has some HTTP_GET_VARS on it http://www.webpage.cc/test.php?name=$name&class=$class&level=$level That all works out fine. My problem is, on the main page where people put the information in the textboxes, is some of the stuff they need to put spaces, commas, etc in, and in the email that breaks the link, how do i have it encode the url removing the spaces/commas/other symbols so it comes out as a whole link in the email? I know this is probably pretty simple, but im still just learning PHP