Forum Moderators: coopster

Message Too Old, No Replies

& in url problem

         

giraph

12:36 am on Mar 19, 2006 (gmt 0)



My problem is that i have a url that consists of the title of items in a list. As in

www.example.com/display?t=part one
www.example.com/display?t=part two
www.example.com/display?t=part one & three

When i try to follow the third link it does not work, could someone explain why? Well I know it's because it thinks it's an additional variable i'm sending but how would I get around it thinking that? Also, offtopic, why do people have to pay for their e-mail address to use this site?

suman haldar

3:51 am on Mar 19, 2006 (gmt 0)

10+ Year Member



Dear giraph,
encode the url first.
here is a code snippet.

<?php

$string1 = "suman & shawon";
echo urlencode($string1);

?>


I wish it will help.