| Index
» Projekty
» phpMyEdit
» Fórum
» passing filter arguments through url |
 |
patronaki
Založený: 10.04.2004
Príspevky: 2
Zaslal: 2004-09-18 08:29
Návrat hore
Odpovedať s citátom
|
I have the following problem:
I want to pass filter arguments through the url. In one table I have a column called "xxx" and when someone clicks on it I want to post the "xxx" value to the other php_myadmin page to look it up.
My problem is that the value that is posting is not properly encoded and half of my searches are not found.
For example xxx field contains '+' signs, then the browser interpretes + as spaces and the search fails.
Is there any way to urlencode the value of the field? (when I refer to the $link value?
see example:
$opts['fdd']['xxx']['URL'] = 'page.php?qf2=$link';
$opts['fdd']['xxx']['URLtarget'] = '_blank';
When I click on the hyperlink I want to go to:
page.php?qf2=urlencode($link)
Any suggestions please?
Thanks,
Socrates
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-09-18 22:29
Návrat hore
Odpovedať s citátom
|
there are two possibilities i see:
patch core class from bug #127/238 and have a custom php function urlencoding as desired
or hack core class to urlencode.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|