wepnop Posted June 3, 2011 Share Posted June 3, 2011 How i can pass complex strings with spaces using $_POST? see for example: $string = 'I have spaces'; <input type=hidden value=$string> The value will be only I. Any suggestion for these things? Quote Link to comment https://forums.phpfreaks.com/topic/238308-pass-complex-strings-with-_post/ Share on other sites More sharing options...
arbitter Posted June 3, 2011 Share Posted June 3, 2011 You need to put quotations around the string: <input type='hidden' value='$string' /> Quote Link to comment https://forums.phpfreaks.com/topic/238308-pass-complex-strings-with-_post/#findComment-1224641 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.