| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Soon to be RICHdoggie! Join Date: Jan 2005 Location: UK
Posts: 2,408
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Remove variable from $_SERVER['QUERY_STRING'] I need to remove the variable $m from my querystring... the querystring is variable, and $m is never always in the same place, and never the same variable. I want to make a link from search.php?m=blah&q=blah2 etc... to search.php?m=something_else_now&q=blah2 < same again. Now, there could potentially be hundreds of variables in my querystring, and $m could be anywhere in there, so I can't just take the first x letters off. Also the value of $m varys in length depending on the the user's preferences. Is there any way I can take the $m value out of the querystring? Thanks Tom Hey, I put my mind to it, and I got it! ![]() if anyone wants the code: here it is: PHP Code: |
| |
| | #3 (permalink) |
| NamePros Expert Join Date: Nov 2003 Location: Scotland
Posts: 5,069
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | alternatively you could do the following:- PHP Code: |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| javascript problem: undefined variable | Shad | Programming | 3 | 08-20-2005 05:44 AM |
| read ms access database, store value in javascript variable | Niko2005 | Programming | 0 | 05-15-2005 09:37 PM |
| Remove REGISTRAR-LOCK? | marcuss | Domain Name Discussion | 6 | 11-12-2004 10:58 AM |