[Pmwiki-users] Another quirk I just found

Chad Lupkes chadlupkes
Tue Aug 17 08:13:51 CDT 2004


I know this is going to be an easy fix, but I?m not sure how to do it.  I?m
not familiar enough with Regular Expressions.

I have the following command in a dynamic file:

echo ("<p class=\"narrow\" align=\"center\">Are we missing something
important?  Do you know something about this county that you wish to
share?<br><a
href=\"http://www.democracyforwashington.com/pmwiki-1.0.5/pmwiki.php?pagena
me=Main.".$countyname."County\">Add it to the ".$countyname." County Wiki
page!</a></p>");

This works great, except when the county name has a space in it, like
?Grays Harbor?.  I think the space is what makes it fail.  What can I do to
take that space out?  The data is pulling from an array, called by:

$countyname = $county[$filename-1][name];

Any ideas?

Here is the County Map page:

http://www.democracyforwashington.com/reps/countymap.php

And each of the resulting pages has a link to the wiki on the bottom.  If
you go to Grays Harbor or Pend Orielle, you can see the problem.

Chad Lupkes
chadlupkes at earthlink.net
http://www.democracyforwashington.com
PCO SEA-46-2324
206-440-1592

We are the ones that we have been waiting for.
A society of sheep will soon beget a government of wolves.
In a democracy, agreement is not essential; participation is.


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.735 / Virus Database: 489 - Release Date: 8/6/2004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users_pmichaud.com/attachments/20040817/d96f1d03/attachment-0001.htm


More information about the pmwiki-users mailing list