What is the difference between "&" and "?" in
http://www.website.com/count.php&sessionid=myid
and
http://www.website.com/count.php?sessionid=myid
Thanks,
ikel
What is the difference between "&" and "?" in
http://www.website.com/count.php&sessionid=myid
and
http://www.website.com/count.php?sessionid=myid
Thanks,
ikel
Well, for as far as I know the ? indicates the start of a query string, while & indicates the start of a new key/value pair inside that query string. E.g.:
website.com?key=value&key2=value2&this=that
The ? indicates the start, the & separates the key/value pairs.
You're right! I just tried to search for a string in php.net website. My address bar changed to: http://us3.php.net/manual-lookup.php?pattern=setting+session&lang=en&scope=quickref
It seems that ?
indicate beginning of a search and &
is used to separate key/value pairs.
Thanks.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.