xoops forums

Alex_Grey

Just popping in
Posted on: 2009/1/6 2:59
Alex_Grey
Alex_Grey (Show more)
Just popping in
Posts: 43
Since: 2007/6/16
#11

Re: passing paramaters

if we use this thread as an example of how GET is used. the current url is something similar to xoops.org/modules/newbb/viewtopic.php?topic_id=67209&forum=27

if we $_GET['topic_id'] that value would be 67209 . if we $_GET['forum'] that value is 27 .

here is also a link to some more info about GET http://www.tizag.com/phpT/postget.php

and the most important is to be careful of MySQL injection. someone else will have to provide a better example.

Hope that helps.

also, allow_call_time_pass_reference shouldn't have to be changed. call time pass by reference is when you pass the variables by reference when you are calling the function. and not when it is defined as such.
“There is nothing impossible to him who will try.” ~Alex The Great~
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

CS_Swan

Just popping in
Posted on: 2009/1/6 21:23
CS_Swan
CS_Swan (Show more)
Just popping in
Posts: 28
Since: 2008/11/28
#12

Re: passing paramaters

this is still not working

it would be nice if someone could take this php file and turn it into a module that created a new block for each feed.
i am still looking for a workaround.
to get the file rss2html.php to accept parameters from a block intead of from the address bar.