| Index
» Projekty
» phpMyEdit
» Fórum
» adding elements to html forms and passing hidden vars |
 |
hlslaughter
Založený: 02.07.2003
Príspevky: 12
Bydlisko: San Diego, CA
Zaslal: 2004-05-12 18:25
Návrat hore
Odpovedať s citátom
|
i want to be able to add elements within the <form></form> section of my pages.
specifically i want to add
<input type="hidden" name="foo" value="bar" />
and i also want to be able to add dropdown menus or radio buttons whose values i can use in my trigger scripts.
it seems to me there's no way to do this without really hacking things up.
am i wrong?
tks
harry
|
hlslaughter
Založený: 02.07.2003
Príspevky: 12
Bydlisko: San Diego, CA
Zaslal: 2004-05-12 19:26
Návrat hore
Odpovedať s citátom
|
if i do:
$opts['cgi']['persist']['foo'] = 'bar';
in the template, then:
$foo = $opts['cgi']['persist']['foo'];
in my trigger, $foo is uninitialized.
one of the most confusing things about phpmyedit is all of these vars it uses. i'm not clear which are global, which aren't, which are persistent, which aren't.
it's a bit frustrating.
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-05-12 21:15
Návrat hore
Odpovedať s citátom
|
creating extra buttons:
either make $opts['display']['form'] = false; which will turn off <form> tags (so you have to display them manually)
or: see button display order bug report (and report how it behaves :) )
calling hidden variables in your triggers:
use of $this->get_cgi_vars is recomended (since variables can change from GET to POST and back)
|
hlslaughter
Založený: 02.07.2003
Príspevky: 12
Bydlisko: San Diego, CA
Zaslal: 2004-05-12 22:05
Návrat hore
Odpovedať s citátom
|
thanks a lot, guys.
was able to get the info i wanted using $this
harry
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|