FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » values won't transfer
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: values won't transfer [message #183665 is a reply to message #183663] Thu, 07 November 2013 19:58 Go to previous messageGo to previous message
Ben Bacarisse is currently offline  Ben Bacarisse
Messages: 82
Registered: November 2013
Karma:
Member
richard <noreply(at)example(dot)com> writes:
<snip>
> I am trying to pass the value in the url to the iframe.
> No matter what I try, it won't.
> I had to use the \" in order for the link to show properly.
> The iframe is named "show".

You quoting is wrong. In general, if you don't know exactly why you
needed some construct such as the \", it's better to go a read up on
that area. It's almost impossible to program by trial and error.

> My thinking is that the javascript has somehow destroyed that.

I think your question is purely a PHP one, so I've set followups
accordingly.

> Queswtion is, how do I make it work so that the value "tune" will pass
> properly?
<snip>
> $htp="http://mroldies.net/index.php?tune=".$play." target=\"show\"";
<snip>
> echo "<a class='aplay' href='".$htp."'
<snip>

If $play is, say, 42, the result of this will be:

<a class='aplay' href='http://mroldies.net/index.php?tune=42 target="show"'

Can you see how the show attribute is incorrectly inside the
single-quoted href attribute?

--
Ben.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Trying to create a .bat file for windows using fwrite(
Next Topic: $dom->loadHTMLFile() error
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 05:04:52 GMT 2024

Total time taken to generate the page: 0.04207 seconds