RE: [PHP] Passing more than one variable with alink

From: Date: Tue, 02 Jul 2002 06:33:01 +0000
Subject: RE: [PHP] Passing more than one variable with alink
Groups: php.general 
Request: Send a blank email to php-general+get-104846@lists.php.net to get a copy of this message
For the link to work correctly, only the first parameter should be seperated by a ?, the remaining ones should be seperated by &. For eg: http://localhost.com/sample.php?firstparam=1&secondparam=XYZ Hope this helps, Sachin -----Original Message----- From: Peter Goggin [mailto:pgoggin@smartchat.net.au] Sent: Tuesday, July 02, 2002 12:01 PM To: php-general@lists.php.net Subject: [PHP] Passing more than one variable with alink I need to pass more than one variable with a link. I cannot see the syntax listed anywhere. I am using : printf ("<a href=\"catalogueitemslist.php?catitempage=%s;?catrange=%s\"><IMG SRC=\"/jpg/buttons/nextset.jpg\" HEIGHT=25 BORDER=0></a><LEFT>",$catitempage,$catrange); Obviously the separators between the two variablesare incorrect. i.e. I have: ?catitempage=%s;?catrange=%s Can anyone tell me what it should be or where I can find a reference to these sort of syntax problems. Regards Peter Goggin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#104846) next »