Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Please help me with php including!
Hello world !!!
I need your help!! I have a website at http://DimasNet.com and I want to add “php poll” script there.
I know that I can include php scripts so: <txp:php>include ('script.php');</txp:php>
My script is here http://files.dimasnet.com/poll/anketa.php, it works.
When user clicks on the link (a) it calls adress: http://files.dimasnet.com/poll/anketa.php?odpoved=a
But when I insert it script into my textpattern page for example http://dimasnet.com/test and click (a) link it calls href http://dimasnet.com/test?anketa?odpoved=a
But it does not work, it just displays 404 page. I changed script to use ?odpoved= instead of http://dimasnet.com/test?anketa?odpoved=a but it still does ot work.
Please help me,
thx!
Offline
Re: Please help me with php including!
What exactly does not work now and how should it work?
Offline
Re: Please help me with php including!
ruud wrote:
What exactly does not work now and how should it work?
Just try to open http://DimasNet.com/test – there is the poll I am talkng about. When you click one of its poll links: Super, Dobre etc.. It will open new page with succesefull voting, but I want to script to work inside textattern page. Do u understand me???
Offline
Re: Please help me with php including!
The links in the poll look like this: <a href="http://files.dimasnet.com/poll/anketa.php?odpoved=a">.
You’ll probably have to change that to <a href="http://dimasnet.com/test?odpoved=a">
Last edited by ruud (2007-04-10 18:34:14)
Offline
#5 2007-04-10 17:57:58
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Please help me with php including!
(I think Ruud means that the other way ‘round.)
Offline
Re: Please help me with php including!
Although I’ve been known to make horrible typo’s, I think this time I meant what I wrote ;)
The anketa.php file is outside TXP, so if he wants to show the results inside TXP, he shouldn’t link to an external script, but instead include that script within a TXP page (assuming the script plays nice with including).
Offline
#7 2007-04-10 18:26:29
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Please help me with php including!
(<a href="href http) ?
Offline
Re: Please help me with php including!
Um, yeah, I guess that’s one of the horrible typo’s I was referring to (fixed).
Offline
Re: Please help me with php including!
Ok, but it still does not work. http://dimasnet.com/test
http://dimasnet.com/test?odpoved=a
does nothing :(
Last edited by neoformat (2007-04-11 07:56:25)
Offline
Pages: 1