problem with awk script

Hi,
I have two files
Hi,
I have two files

file1 :>

Code:
val="10" port="localhost:8080"httpadd="http:\\192.168.0.239"
file2 :>

Code:
val=${val} val="pdssx" port=${port}port="1324"httpadd=${httpadd}httpadd="raamraav"fileloc=${fileloc}

file3(or file2) should have following output(input from fileone)
file3

file2(or file3)
val="10"val="pdssx" port="localhost:8080"port=="1324"httpadd="http:\\192.168.0.239"httpadd="raamraav"fileloc=${fileloc}
I have tried following code ...
awk -F= 'NR==FNR {_[$1]=$2; next} [$1] {print $1,[$1]; next}1' OFS="=" f1 f2
but my code is replcaing as below..

val="10"
val="10"
port="localhost:8080"
port="localhost:8080"
httpadd="http:\\192.168.0.239"
httpadd="http:\\192.168.0.239"
fileloc=${fileloc}

need ur inputs on this...

i named your files as t1.txt and t2.txt.
take a look codes below:

kent$ awk -F'"|=' '{for(i=1;i<=NF;i++)print $i}' t1.txt|sed '/^$/ d' |
awk 'FNR==NR{
    t[FNR]=$0;
        for(i=1;i<=length(t);i+=2){
            gsub(" ","",t);
            a["\\${"t"}"]="\""t[i+1]"\"";
        }
    } NR>FNR{
        for (x in a){
            gsub(x,a[x],$0);
        }
        print $0;
    }' - t2.txt
val="10" val="pdssx" port="localhost:8080"port="1324"httpadd="http:\\192.168.0.239"httpadd="raamraav"fileloc=${fileloc}