note 62793 deleted from function.parse-url by didou

From: Date: Sat, 03 Feb 2007 03:07:08 +0000
Subject: note 62793 deleted from function.parse-url by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-122613@lists.php.net to get a copy of this message
Note Submitter: peyn at tlen dot pl ---- a little bugfix to greg dot linton at gmail dot com function: you have to change: <?php else { $ending = $var[ 0 ] . '=' . urlencode( $var[ 1 ] ); } ?> with <?php else { if( $action == '+' ) { $ending = $var[ 0 ] . '=' . urlencode( $var[ 1 ] ); } } ?> otherwise when using function like this <?php $url = ChangeQuery( '-', 'test' ); echo $url; ?> you will see: index.php?t=e best regards

« previous php.notes (#122613) next »