1
Development / Is there a way to have two search URLs in scripts?
« on: January 28, 2012, 06:21:28 pm »
Hello guys.
I wonder if scripts could check 2 search strings.
The site I'm doing the script for have a search string like " www.site.com/search.php?actor='actorname'&director='directorname' ".
Since scripts have only one search string, in this case a string like " www.site.com/search.php?actor=%s&director=%s " will fail its purpose.
I would have to check two strings like this:
" www.site.com/search.php?actor=%s&director='' "
" www.site.com/search.php?actor=''&director=%s "
So I could gather all search results from this two searchs.
Is it possible? How?
I wonder if scripts could check 2 search strings.
The site I'm doing the script for have a search string like " www.site.com/search.php?actor='actorname'&director='directorname' ".
Since scripts have only one search string, in this case a string like " www.site.com/search.php?actor=%s&director=%s " will fail its purpose.
I would have to check two strings like this:
" www.site.com/search.php?actor=%s&director='' "
" www.site.com/search.php?actor=''&director=%s "
So I could gather all search results from this two searchs.
Is it possible? How?