cyberspace
Technical User
I have several user-updatable text areas in a system i am developing.
An issue i have noticed is that whenever it is updated, extra spaces are entered before the string starts so it's gradually moving accross the box.
This has gotten worse (i think) since i entered code to prevent issues with special characters such as ' being entered by the user.
What is it that i need to do to overcome this? a code example for escaping special characters:
thanks![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
'When all else fails.......read the manual'
An issue i have noticed is that whenever it is updated, extra spaces are entered before the string starts so it's gradually moving accross the box.
This has gotten worse (i think) since i entered code to prevent issues with special characters such as ' being entered by the user.
What is it that i need to do to overcome this? a code example for escaping special characters:
Code:
$var_special = $_POST['whatever'];
$var = mysql_real_escape_string($var_special);
thanks
'When all else fails.......read the manual'