[pmwiki-users] Help with markups

Vincent Boucher vin.boucher at gmail.com
Sat Jan 14 14:42:52 CST 2006


Hello,

I'd like to put a form on my Pmwiki. I generate the form by php.

So I call the php code in the wiki through (:ostincontact:)

here is my cookbook (simplified):

<?php if (!defined('PmWiki')) exit();

Markup("ostincontact",'<[-',"/\\(:ostincontact:\\)/", ostincontact());

function ostincontact(){
  $maforme="<form enctype='multipart/form-data' action=''
method='post'><input type='hidden' name='pagename' value='Contact.Contact'
/>
  <table border='0'>
  <tr ><td  align='right'>Pr&eacute;nom:</td><td  align='left'><input
name='' value=''> </td></tr>
  <tr ><td  align='right'>Nom:</td><td  align='left'><input name=''
value=''> </td></tr>
  </table>
  <p class='vspace'></p>
  <p><input type='submit' name='ok' value='&nbsp;&nbsp;Envoyer&nbsp;&nbsp;'
></p>
  </form>
";

return $maforme;
}


The problem: the text returned by the function ostincontact() is after
reinterpreted by the other markups  (in particular single quotes ''  in
emphased style)

the following returns the same as before but surrounded by <pre> ... </pre>

Markup("ostincontact",'inline',"/\\(:ostincontact:\\)/", ostincontact());

Is there a way to not interpret the code returned by the function
ostincontact()?

Like the wikini syntax {{php_script_name}} .

Cheers,

Vincent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060114/66873957/attachment.html 


More information about the pmwiki-users mailing list