MS-Morgan Posted November 15, 2007 Share Posted November 15, 2007 I am passing some post variables to add information to a mysql db. I have it setup where the information is entered in the form and then the person clicks Save and the info is inserted. My issue is that any of the strings with a space in it are getting chopped off so that only the first word is entered. Does anyone know what would cause this? Thanks Quote Link to comment Share on other sites More sharing options...
Barand Posted November 15, 2007 Share Posted November 15, 2007 Gazing into my crystal ball I see that somewhere there is an attribute like value=$var If $var contains "foo bar" this will give value='foo' If, however, you use quotes value='$var' Then this will give value = 'foo bar'; As you don't provide any code, this is pure guesswork, but it's one possible cause. Quote Link to comment 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.