I have a problems passing variables between 2 files. Here how it looks like
Config.php
<?
$imdb_search='http://us.imdb.com/Name?<?echo "$last,+$first";?>';
<?
Index.php
<?php include("config.php");?>
$first="Joe";
$last="Black";
<a href="<?echo $imdb_search;?>"></a>
When I do this, the output for the link is
http://us.imdb.com/Name?,+
I was wondering why the variables weren't passed and what's the solution? I don't know PHP well.
Thanks