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

Home » Imported messages » comp.lang.php » redirect on zend
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
redirect on zend [message #178892] Mon, 20 August 2012 22:58 Go to next message
rhymejerky is currently offline  rhymejerky
Messages: 1
Registered: August 2012
Karma: 0
Junior Member
Hi,

I have 2 pixel tracking pages, page 1 has a link like <a href=tracking/?page=1&url=host1.com> and the other has <img src=tracking/?page=1&url=host2.com>. I am using Zend as my stack.

When I click on the href in page 1, it does the pixel tracking and redirects the page to host1.com. I did it using the gotoUrl() with the zend redirect helper

For page 2, the pixel tracking code is loaded when the src image is requested. I can see it hits the tracking code, but it doesn't do the redirect like page 1. The 2 pages are essentially calling the same code. The only diff is 1 uses a href and the other is an img src. Another know why I am not redirecting with <img src>?

TIA
R
Re: redirect on zend [message #178893 is a reply to message #178892] Mon, 20 August 2012 23:27 Go to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma: 0
Senior Member
On 8/20/2012 6:58 PM, rhymejerky wrote:
> Hi,
>
> I have 2 pixel tracking pages, page 1 has a link like <a href=tracking/?page=1&url=host1.com> and the other has <img src=tracking/?page=1&url=host2.com>. I am using Zend as my stack.
>
> When I click on the href in page 1, it does the pixel tracking and redirects the page to host1.com. I did it using the gotoUrl() with the zend redirect helper
>
> For page 2, the pixel tracking code is loaded when the src image is requested. I can see it hits the tracking code, but it doesn't do the redirect like page 1. The 2 pages are essentially calling the same code. The only diff is 1 uses a href and the other is an img src. Another know why I am not redirecting with <img src>?
>
> TIA
> R
>

An image is not an href. You can't redirect from an image.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: json_decode problem
Next Topic: anybody has an experience
Goto Forum:
  

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

Current Time: Sun Nov 24 05:05:22 GMT 2024

Total time taken to generate the page: 0.02002 seconds