View Single Post
Old 6th January 2004, 04:08 AM   #1

Username: koblerda
Rank: WF101 Newbie
Join Date: Jan 2004
Location: Denver, CO
Posts: 3
Points: 0.00
Send a message via Yahoo to koblerda
Default Passing quotation marks a url parameter

I'm trying to send some text as a parameter to a php page, and I'm not able to get the quotation marks or aphostrophes to look normal.

src="main.php?text=Many of these images are taken with 'low tech'
cameras, including the Diana Camera as well as Agfa's version of a
plastic camera.&picture=statue"

This comes out as:

Many of these images are taken with \'low tech\' cameras, including the
Diana Camera as well as Agfa\'s version of a plastic camera.

Quotation marks won't work at all for obvious reasons, but is there a way to get PHP to parse this correctly?
koblerda is offline   Reply With Quote