navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

save form not saving correct if there is an apostrophe

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> save form not saving correct if there is an apostrophe
Page: [1]
 
travismp

 

Posts: 233
Joined: 2/1/2002
From: hutchinson ks USA
Status: offline

 
save form not saving correct if there is an apostrophe - 4/18/2008 11:25:47   
I have a form that loads a field from my DB from a previous page. The field name is [Contractors] the new form allows my users to enter new records and it saves the new record with the [Contractor] field. However if there is an apostrophe it drops the rest of the company name.

value='<%=Request("Contractors")%>'></font>


Example:
STEVE'S EXCAVATION

Only saves:
STEVE

Can I add anything to my code above to resolve this issue? Thanks.
rdouglass

 

Posts: 9167
From: Biddeford, ME USA
Status: offline

 
RE: save form not saving correct if there is an apostrophe - 4/18/2008 12:15:09   
quote:

value='<%=Request("Contractors")%>'></font>


Try using double quotes instead:

value="<%=Request("Contractors")%>"></font>

_____________________________

Don't take you're eye off your final destination.

ASP Checkbox Function Tutorial.

(in reply to travismp)
travismp

 

Posts: 233
Joined: 2/1/2002
From: hutchinson ks USA
Status: offline

 
RE: save form not saving correct if there is an apostrophe - 4/18/2008 12:25:33   
That worked GREAT. Thank you so much.

(in reply to rdouglass)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> save form not saving correct if there is an apostrophe
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts