[Pmwiki-users] passing variables between php programs

Crisses crisses
Sat May 15 06:32:14 CDT 2004


I can figure out how to send GET method variables from one php program 
to the other -- that's easy.

I'm having a lot more trouble (and pouring over documentation) for how 
to pass POST variables without having to make a form with the variables 
and have a user click on the form.

here's the idea:

I'm going to encode a small form in a corner of a pmwiki template.  
There will be a text box there, and when people submit that form, it 
will send the input to another php program.  That program is going to 
take the text and parse it, and I want it to pass the information back 
to an edit wiki page.  Then the user can choose a title for the page, 
and verify the information before it is saved.  I have the other 
program written with a separate html interface entirely: I want to 
eliminate the html output interface and run it where the only html 
output would be either verification screens or error screens; the rest 
goes to the wiki (actually verification and errors could also go to the 
wiki).

This allows me to drop (via cut&paste) all kinds of odd text into a 
textbox, have my hand-crafted 3rd party program strip and format it, 
and the user can then make sure it's ok, name it, and post it.

So: any idea how another php program can call a URL and pass text to 
the wiki via Post data without the user having to hit "submit"?


After that I have another related project:  I want to do this with 
files & mail too, but I'll have to figure out how to get that to work.  
There's a nice program called "AntiWord" I've already installed to test 
-- one type of document I'd like to be able to parse and put into a 
wiki page is .doc/word documents and I figured I could pipe a stream to 
AntiWord, and then into the wiki.  Unfortunately the bash script for 
shoving text files or emails into the wiki is missing (the site is down 
that it was on).  [Also, as far as pmwe is concerned, I'm not using 
Perl.  I could if I had to.]  This would make a great compliment to the 
Excel/OpenOfficeSpreadsheet -> wiki table parser in the Cookbook.

Anyone able to give me a hand here?

Crisses
----
You've already won me over in spite of me,
Don't be alarmed if I fall head over feet.
Don't be suprised if I love you for all that you are:
I couldn't help it -- it's all your fault!
  -- Head Over Feet, Alanis Morisette




More information about the pmwiki-users mailing list