Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.ag!ecngs!feeder2.ecngs.de!46.4.82.166.MISMATCH!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.php Subject: Re: can one link reference two seperate files? Date: Mon, 10 Nov 2014 18:19:31 +0100 Organization: solani.org Lines: 20 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1415639971 29962 eJwFwYEBgDAIA7CXZNBSzhEc/59gAqdxMggGFjvsYlU+movdM3V7hILveT1b1u2C0vajFD8huhD/ (10 Nov 2014 17:19:31 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Mon, 10 Nov 2014 17:19:31 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 X-User-ID: eJwVyskRwDAIBLCWzLWEchxg+y8hE70VBkGnI+DBYLUd7/UDY85eiP8Doc9kklVXl/Ieg46GfA9YEHY= In-Reply-To: Cancel-Lock: sha1:wPSou1SDDY0oKot0RzazpNxhyyQ= X-NNTP-Posting-Host: eJwFwYEBwCAIA7CXAGnLzlEm/59ggkVnKwkmBuMhbaqdt8iIpfLdhWzeY0b/cY+qP9BhEw//nBAY Xref: csiph.com comp.lang.php:14525 richard wrote: > > Is the normal way of linking. > What if I need to send a value to page1 and another value to page2? > With just one click. A hyperlink is not meant to send a value to a page, but rather to make the client (e.g. the browser) to request a resource. Ask yourself: which resource would be fetched, if there were two URIs? Or better: why should two resources be requested, if only one would be presented? Either you need XHRs (so-called Ajax requests), or you should reconsider the structure of the website -- or something else. That depends on what you want to accomplish. You are likely to get better answers, if you ask smarter questions, see . -- Christoph M. Becker