Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Utorok, 24. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  passing filter arguments through url

phpMyEdit Configuration     passing filter arguments through url
Odoslať novú tému   Odpovedať na tému    
 
patronaki     Založený: 10.04.2004   Príspevky: 2  
Príspevok 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
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov