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? 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' /> 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
Archived
This topic is now archived and is closed to further replies.