bccamp
Technical User
- Jan 20, 2005
- 69
I'm having trouble with "'" in my drop down menu. I've got a value: "Women's Stuff" in 2 drop down menu's. One is a static javascript menu:
<option value="page.php?cat=Women's Stuff">Women's Stuff
and page.php picks up the cat with no problem.
Other menu is DB driven:
while ($author=mysql_fetch_array($result)) {
$aid=$author['name'];
$aname=htmlspecialchars($author['name']);
echo "<option value='$aid'>$aname</option>
</select><submit> so on and so on
but only ?cat=Women gets passed through. Thought about ereg_replace, but that still doesn't pass "'" through.
Where and how can I fix this?
<option value="page.php?cat=Women's Stuff">Women's Stuff
and page.php picks up the cat with no problem.
Other menu is DB driven:
while ($author=mysql_fetch_array($result)) {
$aid=$author['name'];
$aname=htmlspecialchars($author['name']);
echo "<option value='$aid'>$aname</option>
</select><submit> so on and so on
but only ?cat=Women gets passed through. Thought about ereg_replace, but that still doesn't pass "'" through.
Where and how can I fix this?