[dokuwiki] Help with javascript & php

  • From: Ignazio Mostallino <gnagno@xxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 18 Oct 2005 11:25:40 +0200

Hi all,
I have a problem with dokuwiki version 2005-09-22.

I'd like to make a script in php to show a nice calendar with some custom
funcitons on a page, so I am trying to pass some values trought pages with
post.

I added a local.php configuration file with this directives:
$conf['htmlok'] = 1;
$conf['phpok'] = 1;

$conf['phpok'] = 1; is not a problem because this page will run on my
computer or on my intranet, so no problems with hackings...


the code I added to the page is:

<html>

<form name="form" method="post" action="http://localhost/dokuwiki/doku.php";>
<input name="ciao" type="hidden" id="ciao" value="123456">
</form>
<a href="javascript: document.form.submit();">link</a>

</html>

<php>
echo $_POST["ciao"];
</php>


I expected to show the string "123456" just after I click on the link
"link", but on IE the string is always shown, like if dokuwiki activated the
submit of the form and passed the value by post...

can anyone help me with this problem?

Is there a better way to pass variables trought pages in dokuwiki for
creating modules?

Thanks in advance.
Gnagno

--
" Al mondo esistono 10 tipi di persone, quelli che conoscono il sistema
binario e quelli che non lo conoscono!"

Other related posts:

  • » [dokuwiki] Help with javascript & php