Need a script to create specialized output file

I need a script to process the (space-separate) values for each line as seen in the below input file and then output the data into an output file as follows. We have been unable to create this using typical bash scripting and cold not find anything out on the internet similar to what we are trying to accomplish. Any help would be appreciated.

Input file example:

 
Name1 addr1 100 101
Name2 addr2 200 201

etc...

Output file example:

 
Name=Name1
Address=addr1
ID1=100
ID2=101
Name=Name2
Address=addr2
ID1=200
ID2=201

etc...

try:

while read name address id1 id2
do
   if [ -n "$name" ]
   then
      echo "Name=$name"
      echo "Address=$address"
      echo "ID1=$id1"
      echo "ID2=$id2"
   fi
done < infile

I tried to answer this, but ran into my own problems using sed

s/\([^ ]*\) \([^ ]*\) \([^ ]*\) \([^ ]*\)/Name=\1\nAddress=\2\nID1=\3\nID2=\4/

My input file:

Name1 adr1 100 101
Name4 add2 200 201

But my output came out like this: the backslash n didn't do anything.

Name=Name1nAddress=adr1nID1=100nID2=101
Name=Name4nAddress=add2nID1=200nID2=201

Thank you both for your responses.

rdrtx1 - Your code was exactly what was needed and is much appreciated.

Thanks much!!