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

Home » Imported messages » comp.lang.php » Almost done - Just need a way to assign a variable
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Almost done - Just need a way to assign a variable [message #172457 is a reply to message #172456] Sat, 19 February 2011 03:24 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 2/18/2011 8:57 PM, richard wrote:
> Figured out a simple way of doing this monster.
> By using list()=explode() works perfectly.
>
> The problem I have now is, getting the variable I need to correspond to the
> clicked link.
> <li> <a href='#' class='basic'>A FOOL IN LOVE<?php $show=$a[1]; ?></a><br>
> Ike and Tina Turner</li>
> This way works fine, except that $show takes on the value of the last item
> given.
>
> Just how is this done properly?

You can't. Such a link is local to the browser; no request is made to
the server.

As others have told you - you need a browser-side solution. That is not
PHP.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Adult only
Next Topic: mktime() changes days when it should't
Goto Forum:
  

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

Current Time: Sat Nov 23 07:43:00 GMT 2024

Total time taken to generate the page: 0.07272 seconds