note 82069 added to function.output-add-rewrite-var
| From: | neo at nowhere dot com | Date: | Wed, 26 Mar 2008 18:51:05 +0000 |
| Subject: | note 82069 added to function.output-add-rewrite-var | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137603@lists.php.net to get a copy of this message | ||
As a small side note, when there are values in the output_add_rewrite_var() function, these values
are applied to all dynamic addresses (with in the limits posted above), including addresses that
already have that variable set.
Example:
<?
output_add_rewrite_var("page", "admin");
echo '<a href="?a=signup&page=home">Signup</a>';
?>
The above will output the following:
<a href="?a=signup&page=home&page=admin">Signup</a>
However, this is easy to get around, using output buffering inside of output buffering. Because in
my case, I couldn't remove the rewrite variable, as I have no idea if the next address would
need it or not.
----
Server IP: 209.41.74.194
Probable Submitter: 24.107.178.47
----
Manual Page -- http://www.php.net/manual/en/function.output-add-rewrite-var.php
Edit -- https://master.php.net/note/edit/82069
Del: integrated -- https://master.php.net/note/delete/82069/integrated
Del: useless -- https://master.php.net/note/delete/82069/useless
Del: bad code -- https://master.php.net/note/delete/82069/bad+code
Del: spam -- https://master.php.net/note/delete/82069/spam
Del: non-english -- https://master.php.net/note/delete/82069/non-english
Del: in docs -- https://master.php.net/note/delete/82069/in+docs
Del: other reasons-- https://master.php.net/note/delete/82069
Reject -- https://master.php.net/note/reject/82069
Search -- https://master.php.net/manage/user-notes.php