[pmwiki-users] Still on markup

Marco Ferretti marco.ferretti at gmail.com
Fri May 5 04:36:53 CDT 2006


Hi all .

since I didn't get any answer on my previous post ( regarding a markup that 
creates 2 input fields ) I just supposed it was not possible. 
Now, if I use forms in my page how do I redirect the submit button to a php 
function ? 
Namely, having :
(:input form "test":)
Date:(:input text date size=10 value="{$Today} ":)
Title:(:input text title:)
(:input submit value="Create Page":)
(:input end:)

How do I redirect the informations provided to the function NewPageBox 
( contained in the modified newpageboxplus.php of the cookbook BlogSimple ) ?

What I want to do is to have a blog creation page that has 2 separate fields 
for date and blog-entry title; in the very end I want to simulate 

# add markup (:newpagebox:)
Markup('newpagebox', 'directives',
  '/\\(:newpagebox\\s*(.*?):\\)/ei',
  "NewPageBox(\$pagename, PSS('$1'))");

passing to the function NewPageBox the content of the field date plus the 
content of the field title.


Is it possible ? Is there a better approach ?

Please forgive me, I am a newby on php & pmwiki experimenting in order to 
understand the whole thing .


cheers 

Marco


-- 
Q:	Why do ducks have big flat feet?
A:	To stamp out forest fires.

Q:	Why do elephants have big flat feet?
A:	To stamp out flaming ducks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : /pipermail/pmwiki-users/attachments/20060505/c01e7764/attachment.bin 


More information about the pmwiki-users mailing list