Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  How possible to use $_GET parameters in URL?

phpMyEdit General     How possible to use $_GET parameters in URL?
Odoslať novú tému   Odpovedať na tému    
 
v_kroxa     Založený: 31.01.2011   Príspevky: 1  
Príspevok Zaslal: 2011-01-31 07:55
Návrat hore  Odpovedať s citátom     

Hi, I need help with parameters in URL-string.

I generate code for table1. So, now I have table1.php.
For use it, I need to call http:/mysite.com/myfolder/table1.php. This working good.

But, I need to send parameters and set filter for table1.

Fields in table1:
1. id
2. name
3. type (values= one of 1,2,3...)

I need filter for table1 for field type. I try to make it so:
I call PHP like this: http:/mysite.com/myfolder/table1.php?type=3

in table1.php I add my code for check $_get['type'] and set filter.

So this working too but only for the first time. After click any button I'll loose my parameter in URL and loose my filter too.

How possible to decide this problem. Thanks.

 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-02-02 13:10
Návrat hore  Odpovedať s citátom     

Make it persistent. Use the forum's Search feature to find more examples, search for persist or persistent.

Kód:
$opts['cgi']['persist'] = array('user_id' => $your_user_id);



Naposledy upravil doug dňa 2011-02-02 13:13, celkom upravené 1 krát

 
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