PDA

View Full Version : Passing URL in URL header through include..


awiekupo
01-07-2004, 09:37 AM
I know this sound confusing.. but this is what I had in mind..

I got this link that whole page is generated by a cgi files called viewcinema.cgi. This mean everytime I click this URL, it will automatically run the cgi script.

http://www.catcha.com.my/cgi-bin/movies/hollywood/viewcinema.cgi?selcinema=GSC&seldate=1%2F10%2F2004

Now if u click on this link you will see a working example that I've had done.

Now my problem is when I tried to include this whole data from (http://www.catcha.com.my/movies/hollywood/viewcinema.cgi?selcinema=GSC&seldate=1%2F10%2F2004) into another template that i have structured..

I had done 1 example and its ok so far.. take a look here..

http://www.catcha.com.my/newlook/movies/content_page.phtml?main=http://www.catcha.com.my/cgi-bin/movies/nowshow/viewNew_nl1.cgi?dir=king

If u look carefully, main is actually the middle content of this page. So I successfully called http://www.catcha.com.my/cgi-bin/movies/nowshow/viewNew_nl1.cgi?dir=king in this link. Now why cant i do the same for this..

http://www.catcha.com.my/newlook/movies/content_sub.phtml?main=http://www.catcha.com.my/cgi-bin/movies/hollywood/viewcinema_nl.cgi?selcinema=GSC&seldate=1%2F11%2F2004

Anyone got the solution? Is it because my passing argument in the URL is wrong? or is it not allowed to do this?

ps/ Please take note that content_page.phtml and content.sub.phtml uses the same structure to buld this page. (It doesnt differ at all)

dswimboy
01-07-2004, 04:30 PM
the first link you posted (http://www.catcha.com.my/movies/hollywood/viewcinema.cgi?selcinema=GSC&seldate=1%2F10%2F2004) leaves me at a 500 server error (http://misc.catcha.com/error500.html)

awiekupo
01-08-2004, 02:22 AM
Ok, sry for the mistake.. I've corrected the link.. pls try again (from my 1st post)..