Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.php Subject: Re: can one link reference two seperate files? Date: Mon, 10 Nov 2014 19:07:58 +0000 Organization: A noiseless patient Spider Lines: 26 Message-ID: <87ioim7u29.fsf@bsb.me.uk> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="14741"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kpuMInoSexvdGEjuQaDnIpS9O/wQV5Zo=" Cancel-Lock: sha1:zFj96i8Vb9t7UMKuxY2ZRVQ2KC0= sha1:F6Dvygmwul1Wa+azVLkk/b7wX6g= X-BSB-Auth: 1.f6ec69d6443cb6b9a9b4.20141110190758GMT.87ioim7u29.fsf@bsb.me.uk Xref: csiph.com comp.lang.php:14526 richard writes: > > 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. > Or can they be nested? > link As has been explained (and you've also concluded yourself) they can't be nested. But if what you really want is for some action to be performed on the server before loading page1.php, you can make page2.php perform the action and reply with an HTTP redirect header for page1.php. Alternatively, if the order is not very important (maybe you are logging actions of some sort), the PHP for page1.php can reply with the page as normal but include within it something like an invisible image: or a link to a page2.php as a stylesheet in the header. As always with this sort of question, the best answer will depend on what you are really trying to do. -- Ben.