Please help me to solve this.
I am trying to insert a variable inside the link
the $keyword
variable stands for keywords to search in a specific website here is my code:
$keyword =$_COOKIE['keyword'];
$digikeyurl = 'http://www.digikey.com/product-search/en/capacitors?keywords="'.$keyword. '"';
it doesn't have any error but my problem is, it is not executing properly.
thanks and more power!
try this:
$digikeyurl = 'http://www.digikey.com/product-search/en/capacitors?keywords='.$keyword;
Try this code
$keyword =$_COOKIE['keyword'];
$digikeyurl = 'http://www.digikey.com/product-search/en/capacitors?keywords='.$keyword;
And get that variable using $_GET['keywords']
Try this
echo "<script language='javascript'>location.href='http://www.digikey.com/product-search/en/capacitors?keywords='.$keyword. '"'</script>";
Try this code
$keyword =$_COOKIE['keyword'];
$digikeyurl = "http://www.digikey.com/product-search/en/capacitors?keywords=$keyword";