Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 18, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  How possible to use $_GET parameters in URL?

phpMyEdit General     How possible to use $_GET parameters in URL?
Post new topic   Reply to topic   Goto page 1, 2, 3 ... 1118480, 1118481, 1118482  Next  
 
v_kroxa     Joined: 31 Jan 2011   Posts: 1  
Post Posted: 2011-01-31 07:55
Back to top  Reply with quote     

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     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2011-02-02 13:10
Back to top  Reply with quote     

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

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



Last edited by doug on 2011-02-02 13:13, edited 1 time in total

 
Post new topic   Reply to topic   Goto page 1, 2, 3 ... 1118480, 1118481, 1118482  Next  

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy