| Index
» Projects
» phpMyEdit
» Forum
» adding elements to html forms and passing hidden vars |
 |
hlslaughter
Joined: 02 Jul 2003
Posts: 12
Location: San Diego, CA
Posted: 2004-05-12 18:25
Back to top
Reply with quote
|
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
Joined: 02 Jul 2003
Posts: 12
Location: San Diego, CA
Posted: 2004-05-12 19:26
Back to top
Reply with quote
|
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
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2004-05-12 21:15
Back to top
Reply with quote
|
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
Joined: 02 Jul 2003
Posts: 12
Location: San Diego, CA
Posted: 2004-05-12 22:05
Back to top
Reply with quote
|
thanks a lot, guys.
was able to get the info i wanted using $this
harry
|
|
Post new topic
Reply to topic
|
|
|
|