Hi All,
I need to be able to send data from the iPhone to a php script.
This has been working remarkably until I tried sending a string with an "&" symbol.
Naturally, this works fine:
Code:
mysite.com/test.php?var1=hello world&var2=hello world
but of course this doesn't:
Code:
mysite.com/test.php?var1=hello world & universe&var2=hello world
I have been using
Code:
NSString *addString = [NSString stringWithFormat:@"http://mysite.com/test.php?var1=%@&var2=%@",myVar1,myVar2];
Any ideas?
Cheers,
Tim