sknagesh Posted March 14, 2011 Share Posted March 14, 2011 Hi all I am populating a List menu with values from Mysql table. The values are populated correctly. Once a selection is made and upon submit when I display POST submit values using print_r($_POST) the result is correct only when the value do not contain spaces. For example if the list selection is "One" the $_POST[sel] value is correct. But if the selection is "Two Three" it is only first part before space. How do I get it to give complete value as in the list. Thanks and Regards SKN Link to comment https://forums.phpfreaks.com/topic/230617-_post-truncating-values/ Share on other sites More sharing options...
PFMaBiSmAd Posted March 14, 2011 Share Posted March 14, 2011 Most likely, your HTML is missing some quotes around the values and the space character is serving as a break character rather than as part of the data. Link to comment https://forums.phpfreaks.com/topic/230617-_post-truncating-values/#findComment-1187432 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.