I would like to compare the 1st parameter with the word internet and if true, load a php page like this:-
page1.php?keyword=second_param
If false I want to load another page like this:-
page2.php?keyword=second_param
Since I have very little knowledge of Perl I'd like any help you can give me in scripting this bit of logic.
thanks, WebWalla.
www.xyz.com/cgi-bin/myscript.pl?first_param=apples&second_param=oranges
To get the parameters into variables this is probably your best bet:
use CGI:
$cgi = CGI->new;
$firstParam = $cgi->param("first_param");
$secondParam = $cgi->param("second_param");
$firstParam will now contain "apples" and $secondParam will contain "oranges". Then do your test.