v_kroxa
Založený: 31.01.2011
Príspevky: 1
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)
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
|
|
|