--- shawn <[EMAIL PROTECTED]> wrote:
> I've been scrounging the internet for this answer, but can't find one....
>
>
> <html code>
>
> <a
> href="edit.pl?submit=edit&id=$$row{'id'}&title=$$row{'title'}&description=$$
> row{'description'}&model=$$row{'model'}&serial=$$row{'serial'}&value=$$row{'
> valuation'}&status=$$row2{'description'}&manufacturer=$$row3{'name'}&categor
> y=$$row4{'name'}&catnum=$$row{'category'}¬es=$$row{'notes'}">EDIT</a>
>
>
> </html code>
>
> This code works, if, and only if there are _no_ double_quotes( " ) received
> from the database. Yes you guessed it, there are some things that have ("'s
> i.e. 17" monitor, 24" cable). As you know, double quotes end the href
> string.
>
> Question being, how to include a double quote into the href string(s)?
>
> Thanks,
> Shawn
If the query string needs something like Curtis "Ovid" Poe, it gets encoded like this:
name=Curtis%20%22Ovid%22%20Poe
Check out the URI::Escape module for information on how to handle this properly.
And before Randal chews us out for not mentioning this :), the ampersands in your href
should be
changed to & For example:
color=red&color=blue&name=Curtis "Ovid" Poe
Becomes
color=red&color=blue&name=Curtis%20%22Ovid%22%20Poe
Cheers,
Curtis "Ovid" Poe
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]