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 #183667 is a reply to message #183665] Thu, 07 November 2013 20:37 Go to previous messageGo to previous message
Mr Oldies is currently offline  Mr Oldies
Messages: 241
Registered: October 2013
Karma:
Senior Member
On Thu, 07 Nov 2013 19:58:20 +0000, Ben Bacarisse wrote:

> 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?

Thanks for the fresh eyes.
I had overlooked the closing quote and couldn't understand why
target="show" was showing up in the url.
Now I do.
[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: Thu Nov 28 01:04:55 GMT 2024

Total time taken to generate the page: 0.04258 seconds