Gossamer Forum
Home : Products : DBMan : Customization :

$ makes a space ?

Quote Reply
$ makes a space ?
Hello all,
I am running up the wall with this:
part code
------------
if ($search_terms) {
$cearch = "&keyword=$search_terms";
etc.....
-----------

When I print out $cearch in a link (<a href="$db_script_link_url$cearch&sb=4&view_records=1">) it keeps giving a space before the output (like: keyword= dance) resulting in "no matching records".

Anybody any ideas?

(code based on: http://webmagic.hypermart.net/dbman/sort1.txt)

Close Watch
LyricZ http://www.lyricz.12inter.net
NL
Quote Reply
Re: $ makes a space ? In reply to
Try:

if ($search_terms) {
$search_terms =~ s/^\s+//;
$cearch = "&keyword=$search_terms";

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: $ makes a space ? In reply to
thanx !

Close Watch
LyricZ http://www.lyricz.12inter.net
NL