Re: Calling a function from a hyperlink

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

 



The problem I have is this:

I have built a shopping cart using a session. I have an addItem() function,
and I was wondering if it were possible to call this function using a
hyperlink.
At the moment when a user clicks to add an item they are directed to the
"add.php" page as below:

<a href=\"add.php?dvd_no={$row['dvd_no']}\">+</a>

I want to have my addItem() function in all shopping pages but I only want
it accessed via a link. Is this possible?

"Kaizer Boab" <kaizer_boab@yahoo.co.uk> wrote in message
20040110140234.27505.qmail@pb1.pair.com">news:20040110140234.27505.qmail@pb1.pair.com...
> Is it possible to call a function from a hyperlink, and if so how do you
go
> about it?
>
> Thanks in advance,
> Boab

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux