Webmaster Forum

Lionsanime Directory   High Bandwidth Dedicated Servers   V7N Directory
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Reply
 
LinkBack Thread Tools Display Modes
Old 03-25-2004, 11:50 AM   #1 (permalink)
Inactive
 
Join Date: 10-13-03
Location: Nova Scotia, Canada
Posts: 63
iTrader: 0 / 0%
Latest Blog:
None

Devil's Angel is liked by many
Send a message via ICQ to Devil's Angel Send a message via MSN to Devil's Angel
Replacing " in ASP

Hi guys!

I hope someone can help me with this....I have an online form with textareas. If someone enters double quotes " everything after doesn't enter into the database. If there are quotes around something like "something" that word does not enter into the database but everything else does (before and after).

Does anyone know how to replace this. I can replace the ' quote but I'm having a hard time replacing the double.
Devil's Angel is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 03-25-2004, 03:57 PM   #2 (permalink)
Inactive
 
Join Date: 02-29-04
Location: Indiana
Posts: 464
iTrader: 0 / 0%
Latest Blog:
None

alpha3m is on the right pathalpha3m is on the right path
Send a message via ICQ to alpha3m Send a message via AIM to alpha3m Send a message via MSN to alpha3m Send a message via Yahoo to alpha3m
just use the asp function for instr

do a find, and replace. check and see if the " character is in the string, if it is, replace it with the '
alpha3m is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-25-2004, 09:35 PM   #3 (permalink)
Inactive
 
Join Date: 10-13-03
Posts: 275
iTrader: 0 / 0%
Latest Blog:
None

Distorted is on the right pathDistorted is on the right path
Or just use & quot; without the space.

You may also be able to use /" instead of "

I'm pretty sure that you can do that in PHP, but not sure with ASP.
Distorted is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-26-2004, 04:53 AM   #4 (permalink)
Moderator
 
LazyJim's Avatar
 
Join Date: 10-13-03
Location: UK
Posts: 2,819
iTrader: 0 / 0%
Latest Blog:
None

LazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to allLazyJim is a name known to all
Send a message via MSN to LazyJim
\" = " in text output from scripts
" = " in HTML
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
LazyJim is offline  
Add Post to del.icio.us
Reply With Quote
Old 03-26-2004, 07:10 AM   #5 (permalink)
Inactive
 
Join Date: 10-13-03
Location: Nova Scotia, Canada
Posts: 63
iTrader: 0 / 0%
Latest Blog:
None

Devil's Angel is liked by many
Send a message via ICQ to Devil's Angel Send a message via MSN to Devil's Angel
Thanks guys!

I was on the right track just the wrong syntax. This code works:

Dim strCoverLetter
strCoverLetter = Trim(Request.Form("CoverLetter"))
strCoverLetter = Replace(strCoverLetter, CHR(34), "& quot;")
CoverLetter = strCoverLetter

I had to use CHR(34)
Devil's Angel is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
<meta http-equiv="Pragma" content="no-cache" /> FGTH SEO Forum 4 06-21-2007 11:29 AM
Home page with "latest news", "news archive" and "update" tekitouni Web Design Lobby 1 09-19-2006 07:39 PM
"v7ndotcom elursrebmem" already bigger than "Nigritude Ultramarine"! Jim Westergren SEO Forum 31 01-21-2006 12:26 PM
Adwords replacing sprinks ppc burgi82 Google Forum 0 10-29-2003 05:56 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:48 AM.
© Copyright 2008 V7 Inc