I wonder how I can put a value with ampersand in a url like this: myPage.php?names=rodney & harry PHP: .
If I understand you correctly.... you want to put an ampersand into a URL, but you don't want that ampersand to be interpreted as another parameter to the URL? If so then you can escape it using %26 like this: myPage.php?names=rodney%26harry Code (markup):
just use the urlencode function on your data before sending it. The output will be what tflight posted, but it's easier for you.