![]() |
| ||
| string not working I have the following checkbox on my site but it dosen't work, tried to solve it before but still having trouble. this is the code from my first page <P>Do you want to take pets with you? <INPUT type=CHECKBOX name = "PETS" value = "Y">Yes<br> This is the code from my second page IF strPETS = "Y" THEN strSQLLOC = strSQLLOC & " AND fldPETS = 'Y' " ELSE strSQLLOC = strSQLLOC Please help!!! |
| ||
| Re: string not working Quote:
<% |
| ||
| Re: string not working Is a checkbox really sending a string value or is it not a boolen value? |
| ||
| Re: string not working Actually, it's a string value, and so is everything send via an HTTP GET or POST. It is up to you, the developer to cast the strings to explicit types. You must assign the value of the posted form field to your variable, strpets. Either that, or do this: IF request.form("PETS") = "Y" THEN strSQLLOC = strSQLLOC & " AND fldPETS = 'Y' " |
| All times are GMT -4. The time now is 2:34 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC