Forum Moderators: coopster

Message Too Old, No Replies

target attribute picked up on end of get querystring

         

jackvull

11:58 am on Jun 24, 2005 (gmt 0)

10+ Year Member



Can anyone see anything wrong with this PHP code:
echo "<td width='32'><a href='download.php?filename=".$FileDownload."&type=".$type." target = 'iframedownload' class='main'>Download</a>&#160</td>";

When I click this the querystring appears to have the HTML target attribute in it, whioch it shouldn't because this is needed to load the page into the iframe.

Thanks

jackvull

3:50 pm on Jun 24, 2005 (gmt 0)

10+ Year Member



so the resulting html link is:
[127.0.0.1...] target =

Surely the target = shouldn't be appearing?
If I swap the target attribute to the fron, i.e. a target = 'iframedownload' href = etc. then the iframe text appears on the page but it is supposed to be hidden, so something is wrong here.

jackvull

3:54 pm on Jun 24, 2005 (gmt 0)

10+ Year Member



Forget that!
I left a ' for the page to link to.

jatar_k

4:28 pm on Jun 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> I left a ' for the page to link to.

I assume that means you noticed you left out a '

glad you got it sorted jackvull