| Index
» Projekty
» phpMyEdit
» Fórum
» Change screen via url reference call |
 |
rscl.mumbai
Založený: 17.11.2011
Príspevky: 6
Zaslal: 2012-01-05 16:22
Návrat hore
Odpovedať s citátom
|
Hi,
Is it possible to open the "Change" screen via a url href call.
Something like
| Kód: |
http://www.domain.com/phpmyedit/list.php?action=change&sr=123
|
Accessing the above link should open the CHANGE screen for record with sr=123
I hope I have been able to explain this.
Thx
Sans[/code]
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2012-01-06 12:18
Návrat hore
Odpovedať s citátom
|
Enter the Change mode normally and copy the URL from the browser's address bar. Probably something like this:
list.php?PME_sys_fl=1&PME_sys_fm=0&PME_sys_sfn[0]=3&PME_sys_operation=PME_op_Change&PME_sys_rec=123
|
rscl.mumbai
Založený: 17.11.2011
Príspevky: 6
Zaslal: 2012-01-06 12:54
Návrat hore
Odpovedať s citátom
|
| doug Napísal: |
Enter the Change mode normally and copy the URL from the browser's address bar. Probably something like this:
list.php?PME_sys_fl=1&PME_sys_fm=0&PME_sys_sfn[0]=3&PME_sys_operation=PME_op_Change&PME_sys_rec=123 |
Not sure why, but in my case, the url only shows the main phpmyedit file ... list.php and no GET variables.
Am I missing something somewhere ?
Thx
Sans
|
doug
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2012-01-06 13:59
Návrat hore
Odpovedať s citátom
|
Selecting Change mode in all my forms displays the required variables in the URL. You could temporarily plug in the following in the header to see which variables are passed when clicking Change.
| Kód: |
$print_r_text = preg_replace('/\n/s', "\r\n", print_r($_REQUEST, true));
echo !stristr($print_r_text, ']') ? '' : "\n".'<p>$_REQUEST</p><pre>'.htmlspecialchars($print_r_text).'</pre>'; |
|
rscl.mumbai
Založený: 17.11.2011
Príspevky: 6
Zaslal: 2012-01-06 14:27
Návrat hore
Odpovedať s citátom
|
Thx Doug. This was brilliant!!
Thx a ton again.
Sans
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|