View Full Version : Form field passing no spaces
ecnarongi
12-10-2002, 09:38 PM
I am having trouble with my form fields on my page not passing spaces to my DB or my sub pages. It passes the data, but if the data is "Sally runs down the street" the form passes "Sallyrunsdownthestreet". Has ne1 had this problem? I think its a server issue and if so, what. mime association?
all help is appreciated, thanks.
glenngv
12-11-2002, 01:55 AM
Did you debug by printing the value first before saving to the db?
response.write(request.form("formfield"))
whammy
12-11-2002, 01:59 AM
It definitely sounds like the data is being altered before being passed to the database...
ecnarongi
12-11-2002, 04:18 AM
what I did was just have the form go to a page that response.write the values out and my problem was still there. So I know its not the DB so I am thinking its the server, but what might that be?
glenngv
12-11-2002, 05:13 AM
post the code and if possible the output
ecnarongi
12-11-2002, 09:51 PM
when I alert() the values I get the correct values with the spaces. I think it might have something to do with the fact that I use .submit() to submit my form. Even stranger though, is the fact that the same exact code works on a different server. I just moved the files over and for some reason I getting this issue. Thanx people for your time already.
from which page are u asking for code.
ecnarongi
12-11-2002, 10:22 PM
neither clients nor bosses no our pain. It was a server script issue, I have some funky redirection stuff going on. I am sorry once again to confuse you all. Thanks for all your help.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.