|
|
Using PHP-Pages with passing arguments?
- Development Posted by quakesilver (Tuesday October 24 2000 @ 02:43AM EDT) views: 161 |
Hi, now with the pages stored in the T_Blocks table, I have a problem using php-pages with passing arguments. In the version 0.3.0 file location (/www/.../htdocs/page1.php) had to be specified. If I named this page "Showpage1" it was possible to use passing arguments with http://XY/phpweblog/pages.php?page=Showpage1&variable1=value. Then the variable1 could be used in the source-code page1.php. Now with the new code (0.4.1) the URL of the page1.php has to specified (http://XY/page1.php). The result is, when I call the page (http://phpweblog/pages.php?page=Showpage1&variable1=value) the variable "variable1" is not forwarded the code of page1.php.
Do you have any suggestions how to solve this probem? THX.
|
|
By jason (Tuesday October 24 2000 @ 12:42PM EDT)
|
Edit include/common.inc, and change line 542 to read:
$tmp = empty($url['path']) ? "/index.html" : $url['path'] . "?" . $url['query'];
This was a bug in 0.4.2, and is fixed now. thanks!
|
[ reply | parent ]
|
By Randi Andersen (Wednesday May 09 2001 @ 05:55PM EDT)
|
Is this problem back? I've got a page http://vevkjerring.no/pages.php?page=leilegheit and I would like it to be called again using ...pages.php?page=leilegheit&bilete=number
where the number is passed from an imagemap on that page (hover over some of the numbers on the image map to see the resulting URLs). I would like to change the thumbnail and large picture according to which "camera" the user chooses. I start the script with an if(!isset($bilete)) {$bilete=1;} which is why image 1 comes up. Without this nothing comes up of course (as expected). It's late here and I might not be thinking straight, but the number is not passed now. Any insightful comment welcome.
TIA, Randi A.
|
[ reply | parent ]
|
|
|
|