You are here:  » specific text

Support Forum



specific text

Submitted by rolli1 on Tue, 2006-10-24 09:32 in

Hi David,

how could I manage that with each search a text is loaded with content about that specific search string.

Regards

Roland

Submitted by support on Tue, 2006-10-24 09:42

Hi Roland,

Throughout the script, the current query (or product name) is always in the $q variable; so you can generate any content you like using this value. So for example, within a PHP section you could use:

<?php
  
print "You searched for ".$q." on mysite.com!";
?>

...or, within an HTML section you would use:

You searched for <?php print $q?> on mysite.com!

Cheers,
David.

Submitted by rolli1 on Tue, 2006-10-24 13:25

Thanks David,
your help is always great.

Roland