RE: Weird comma added to form value
Hey everyone, I've got a real weird thing happeing.
Whenever I submit two textarea form elements, with hardcoded values, ASP always displays a coma. When I take the second textarea out, the coma is gone...please help!
Thanks
T--
Here's the form code: (The asp code follows)
<form name="update" method="post" action="updateSql.asp">
<tr>
<td colspan="4"><em>*</em>Pricing: </td></tr>
<td colspan="4"><textarea name="pricing" rows="3" cols="100">This is a test</textarea></td>
</tr>
<tr>
<td colspan="4"><em>*</em>Comments: </td></tr>
<td colspan="4"><textarea name="pricing" rows="3" cols="100"></textarea></td>
</tr>
</table>
<input type="submit" name="subimt">
</form>
Here's the asp code:
<%
Dim objConn
'CREATE A COMMAND OBJECT
Set objConn = Server.CreateObject("ADODB.Connection")
'CREATE A CONNECTION TO DATABASE
objConn.Open = strConnect
Dim pricing, comments
pricing = Request.Form("pricing")
comments = Request.Form("comments")
response.write pricing
%>
|