I have string parameter with apostrophes that I need to pass it to another php page. My code is:
echo \'
What's happening is that the URL parser is breaking on the single quotes. Check out the URLEncode
method, to encode your query string parameters.
http://us3.php.net/urlencode
echo '<form name="submitForm2" action="creatDocument.php?$formulation='.urlencode(utf8_encode($formulation)).'" method="POST">
<input type="submit" value="pass"/>
</form>';