Re: Need help with an if statement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, April 24, 2006 12:24 am, Pub wrote:

> I am really new to all this and I am really hoping I can get some
> help PLEASE...
> I am making a website with x-cart which uses PHP and Smarty templates.
>
> I need to make an " if " statement that puts a little arrow gif in
> front of the link that is clicked on! make any sense?
>
> In other words:
>
>     item 1 (not selected)
>     item 2 (not selected)
>  > item 3 (selected)
>     item 4 (not selected)
>
> This is what I have now, but I don't know what to call my {if ?????}
>
> {if ?????}<A href="{?????}"><FONT class="buttontextonly"><IMG
> src="{$ImagesDir}/arrow.gif" width="9" height="7" border="0"
> align="abstop">{$menu_content}</FONT></A>
> {else}
> <FONT class="VertMenuTitle">{$menu_content}</FONT>
> {/if}</TD>

You're making sense, but we've got NO IDEA either, as we have NO IDEA
what the user is clicking on or how it got transmitted from page to
page.

Your best bets, in preference order, are to:

#1.
Use print_r($_GET) and print_r($_POST) to see if those have the info
you need to know what is clicked on.
Also print($_SERVER['PHP_SELF']) to see if that has what you need.

#2.
Re-post your question, WITH some sample URLs to the x-cart and/or
Smarty lists, forums, or whatever support channels they have.  Your
question may involve information specific to those packages, and they
are best suited to answer it.

#3.
If #1 and #2 fail, re-post here, with the example URL, telling us that
you did #1 and #2 already, and are still stuck.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux