[pmwiki-users] zap alphanumeric chars

noskule noskule at gmx.net
Sun Jul 22 18:06:01 CDT 2007


hi list/dan
is it somehow possible to remove all none-alphanumeric chars (inkl
spaces) from a field entry?

I want do do a "new page box". "posteditname" should be cleaned from
everything not pagenamecompatible.

(:zapform:)
(:input text "posteditname":)\\
(:zap editname={posteditname}:)
(:zap if1="equal '{button}' 'New Blog Post' ?
nextpage=ContentForms.Blog?editgroup={*$Group}?editname={editname}":)
(:input submit button "New Blog Post":)
(:zapend:)

btw, is there a php function that does that?

grz nos



More information about the pmwiki-users mailing list