Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 30th, 2004, 11:53 PM
Authorized User
 
Join Date: Jun 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tp194
Default 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
%>

 
Old December 1st, 2004, 02:10 AM
Friend of Wrox
 
Join Date: Sep 2004
Posts: 104
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to sureshbabu Send a message via Yahoo to sureshbabu
Default

Hi,
     Here you have the two form elements with sama name as "pricing".

Change the Comments Text Area's name to "Comments" and then try to print..
Request.form("pricing")
Request.form("Comments")

Thanks
suresh

 
Old December 1st, 2004, 10:45 AM
Authorized User
 
Join Date: Jun 2003
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tp194
Default

Thanks Suresh

Such a simple mistake...good catch!

T--






Similar Threads
Thread Thread Starter Forum Replies Last Post
I added a column to a table, but, I can't see it. furjaw SQL Language 1 July 3rd, 2007 09:24 PM
Dynamically Added Control ID changes pauliehaha ASP.NET 2.0 Basics 14 April 4th, 2007 08:56 AM
UserControls can be added in datagridTextBoxColumn HemaChaudhry VB.NET 6 October 29th, 2006 10:30 PM
Knowing what is added/deleted in subform? nmccamy Access 2 September 21st, 2004 02:42 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.