Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

comma appended to output

Status
Not open for further replies.

txchristina43

Programmer
Aug 30, 2005
3
US
Hi All,

I have a simple ASP page with a submit button.

When I click submit it goes to a page where the form inputs are displayed for review.

Why do I get a space and a comma appended before the text? For example:, test here

Any help would be greatly appreciated. Thanks!
 
without seeing your code...its hard to tell...but for sure you are putting a space and comma somewhere in the code ;)...

post your code...

-DNG
 
it could be a issue with what is submitted or it could be that everything is submitted correctly but the page that displays for review has an error in the output logic.

lets start looking at the code for the review page
 
Its because you have forms the same name most likely, but like Sheco said its hard to debug anything without seeing code.

Jason
 
show the part where you actually output addtlInfo, instructions, cancelText, and fullText for reviewing
 
Look through all of the inputs in your form. As snowboardr suggested above, the most common reason for getting the comma space is because you have more than one form input with the same name. In this case I would guess that either:
a) The form element is somewhere above the span your showing us
b) You received the data from another form post, and there are two inputs on that page

Ctrl+F is your friend.

-T

signature.png
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top