K.F. Wu wrote:
However, since all products have one same product_info.php file template and the image's alt parameter comes from each product name that is stored in the database, I have no way to edit and have the ' escaped from each individual product_info file that is created in the fly.

The PHP function addslashes() will do this http://www.php.net/manual/en/function.addslashes.php

If you want to post some of product_info.php, where it's writing the javascript, I'll show what changes to make.

Also, you should file a bug report with whoever wrote the code.

Sheila

--
Sheila Fenelon
http://www.shefen.com/
CGI and Database Programming



____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] Send Your Posts To: [EMAIL PROTECTED]
To set a personal password send an email to [EMAIL PROTECTED] with the words: "set WDVLTALK pw=yourpassword" in the body of the email.
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub


________________ http://www.wdvl.com _______________________

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to