#31647 [Opn->Fbk]: output_add_rewrite_var and multiple vars

From: Date: Mon, 24 Jan 2005 03:43:12 +0000
Subject: #31647 [Opn->Fbk]: output_add_rewrite_var and multiple vars
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72722@lists.php.net to get a copy of this message
 ID:               31647
 Updated by:       sniper@php.net
 Reported By:      jeff at wecreate dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Output Control
 Operating System: Linux / Apache
 PHP Version:      4.3.10
 New Comment:

So what exactly should happen (in your opinion) when you call this
function twice for same variable?

I don't think we'll "fix" this since there isn't really anything to fix
here. IMO.



Previous Comments:
------------------------------------------------------------------------

[2005-01-21 21:54:55] jeff at wecreate dot com

Description:
------------
multiple calls to output_add_rewrite_var() with identical vars creates
multiple entries on the link.

Reproduce code:
---------------
output_add_rewrite_var("var","a");

output_add_rewrite_var("var","b");


echo '<a href="test.php">test</a>';


Expected result:
----------------
<a href="test.php?var=b">test</a>

Actual result:
--------------
<a href="test.php?var=a&var=b">test</a>

this is useless as var can only have one value.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31647&edit=1


Thread (6 messages)

« previous php.bugs (#72722) next »