[pmwiki-users] Fwd: Fwd: Passing Variables in a Markup

The Editor editor at fast.st
Thu Mar 23 12:37:56 CST 2006


I'm coming along in my markup--but it's still not working exactly
right.  In the markup, I want to add an optional pagename parameter to
determine where users are forwarded to once the script is run.

Using some syntax I lifted off (:thumb:) I was able to get a bit
closer.  What was:

Markup('htpasswdform', '<split', '/\\(:membership:\\)/ei',
"HtpasswdForm(\$pagename)");
function HtpasswdForm($pagename,) {

Is now:

Markup('htpasswdform', '<split', '/\\(:membership(\\s+.*?):\\)/ei',
"HtpasswdForm(\$pagename,\$1)");
function HtpasswdForm($pagename,$nextpage) {

Everything seems to work but when I trigger the part of the script
that uses $nextpage
( HandleBrowse($nextpage); ) it just forwards me to a blank page. My
template is there, but no page, sidebars, headers, etc.

Any suggestions?

Cheers,
Caveman




More information about the pmwiki-users mailing list