Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  adding elements to html forms and passing hidden vars

phpMyEdit General     adding elements to html forms and passing hidden vars
Post new topic   Reply to topic    
 
hlslaughter     Joined: 02 Jul 2003   Posts: 12   Location: San Diego, CA
Post 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
Post 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
Post 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
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy