3.12. Javascript and DHTML

CGI sys and data name prefixing may especially be useful if you want to display two instance of phpMyEdit on the same page. But you will require to prefix Javascript and DHTML tags as well, to make phpMyEdit forms truely independant.

Javascript functions are default prefixed by PME_js_ string. DHTML ID tags are defaultly prefixed by PME_dhtml_ string. You may change this using the syntax below.

Example 3-34. Custom name prefix for JS and DHTML

$opts['js']['prefix'] = 'js_prefix_'; 
$opts['dhtml']['prefix'] = 'dhtml_prefix_';

Bootstrap phpMyEdit PHP Form Generator