| Index
» Projects
» phpMyEdit
» Forum
» Change screen via url reference call |
 |
rscl.mumbai
Joined: 17 Nov 2011
Posts: 6
Posted: 2012-01-05 16:22
Back to top
Reply with quote
|
Hi,
Is it possible to open the "Change" screen via a url href call.
Something like
| Code: |
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
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2012-01-06 12:18
Back to top
Reply with quote
|
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
Joined: 17 Nov 2011
Posts: 6
Posted: 2012-01-06 12:54
Back to top
Reply with quote
|
| doug wrote: |
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
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2012-01-06 13:59
Back to top
Reply with quote
|
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.
| Code: |
$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
Joined: 17 Nov 2011
Posts: 6
Posted: 2012-01-06 14:27
Back to top
Reply with quote
|
Thx Doug. This was brilliant!!
Thx a ton again.
Sans
|
|
Post new topic
Reply to topic
|
|
|
|