Pi_Mastuh Posted January 14, 2007 Share Posted January 14, 2007 I have a text box to enter a signature, but it's only storing the first word in the variable. I'm using text format in the database. Anyone know what's wrong? ??? Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/ Share on other sites More sharing options...
ted_chou12 Posted January 14, 2007 Share Posted January 14, 2007 have you tried different length of the text? like no matter how long the first word is, does it stores the whole word completely?Ted Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/#findComment-160272 Share on other sites More sharing options...
Pi_Mastuh Posted January 14, 2007 Author Share Posted January 14, 2007 Yes. It just cuts it at the first space. Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/#findComment-160274 Share on other sites More sharing options...
kenrbnsn Posted January 14, 2007 Share Posted January 14, 2007 Please post your code surrounded by [nobbc][code][/code][/nobbc] tags.Ken Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/#findComment-160277 Share on other sites More sharing options...
corbin Posted January 14, 2007 Share Posted January 14, 2007 Or better yet surrounded by \[php\]\[/php\] tags with out the \'s :p Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/#findComment-160280 Share on other sites More sharing options...
Pi_Mastuh Posted January 14, 2007 Author Share Posted January 14, 2007 [code=php:0]<form method=post action=secure/boardpreff2.php> <input type=text name='siggy' value=<? echo $siggy; ?> size=50><br> <input type=submit value=Submit name=submit></p></form>[/code] Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/#findComment-160282 Share on other sites More sharing options...
ted_chou12 Posted January 14, 2007 Share Posted January 14, 2007 Insert Quote<form method=post action=secure/boardpreff2.php> <input type=text name='siggy' value="<? echo $siggy; ?>" size=50><br> <input type=submit value=Submit name=submit></p></form> Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/#findComment-160283 Share on other sites More sharing options...
Pi_Mastuh Posted January 14, 2007 Author Share Posted January 14, 2007 Thanks. It's funny how a mistake as simple as that can mess it up like that, :P Link to comment https://forums.phpfreaks.com/topic/34089-its-only-saving-1-word/#findComment-160288 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.