Hi:
I have done a phpSurveyor Mod/Hack that works (All Questions in One) with
PostNuke. There are still some few areas that I need to convert
PHP to
PN module calls.
For example, I replaced this:
. "<a href='{$_SERVER['PHP_SELF']}?sid=$surveyid&move=clearall'>"._CLEARRESP."</a>\n"
with this:
. "<a href='.$myurl.'/modules.php?op=modload&name='.$ModName.'&file=index&sid=$surveyid&move=clearall'>"._CLEARRESP."</a>\n"
I need help with the following string:
echo "\n<form method='post' action='{$_SERVER['PHP_SELF']}' id='phpsurveyor' name='phpsurveyor'>\n"
Could I replace it with..?:
echo "\n<form method='post' action='.$myurl.'/modules.php?op=modload&name='.$ModName.'&file=index&sid=$surveyid' id='phpsurveyor' name='phpsurveyor'>\n"
The problem I am having is that, the program, at some instances, is referring to SELF and not to index... lossing the module functonality and going 'out of
PN' to the standalone app...
I have doubts with the ' and ", I believe is needs another one ' after action='... Sorry for the basic question...
This is very basic but my goal is to have a fully (or almost fully) functional phpSurveyor Mod/Hack solution for
PN. Once I can have the Question by Question survey type working it should be done. Next, I would like to make some tests with PHP/SWF Chart library...
The ideal should be to have a pnphpSurveyor Standard
PostNuke module but that is far right now. I am not a programmer, so I need to learn... try.. and learn.. and so on.
TIA
edited by: edfel, Jun 13, 2006 - 10:30 PM