Re: [benedict] search using criteria in URL
Hi Benedict
Glad to hear we are almost there :).
I think what you'll want to do with this one is HTML encode the values when you create the link itself. What I mean by that is take this bit of code:
<a href="library_newslist.php?service=<?php echo $servicesRecord['title'] ?>">Click here</a> to read all news items related to <?php echo $servicesRecord['title'] ?>
and replace it with this:
<a href="library_newslist.php?service=<?php echo htmlspecialchars($servicesRecord['title']) ?>">Click here</a> to read all news items related to <?php echo $servicesRecord['title'] ?>
That should help. If it doesn't, could you give me more details on what you mean by it doesn't work?
Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/