Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14525

Re: can one link reference two seperate files?

From "Christoph M. Becker" <cmbecker69@arcor.de>
Newsgroups comp.lang.php
Subject Re: can one link reference two seperate files?
Date 2014-11-10 18:19 +0100
Organization solani.org
Message-ID <m3qs33$t8a$1@solani.org> (permalink)
References <mn1jm36vp2n5.bryfbmjsjuzb$.dlg@40tude.net>

Show all headers | View raw


richard wrote:

> <A href="page1.php">
> 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
<http://www.catb.org/esr/faqs/smart-questions.html>.

-- 
Christoph M. Becker

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

can one link reference two seperate files? richard <noreply@example.com> - 2014-11-10 10:41 -0500
  Re: can one link reference two seperate files? richard <noreply@example.com> - 2014-11-10 10:45 -0500
  Re: can one link reference two seperate files? "J.O. Aho" <user@example.net> - 2014-11-10 18:05 +0100
    Re: can one link reference two seperate files? Matthew Carter <m@ahungry.com> - 2014-11-10 12:10 -0500
      Re: can one link reference two seperate files? "J.O. Aho" <user@example.net> - 2014-11-10 20:25 +0100
        Re: can one link reference two seperate files? Arno Welzel <usenet@arnowelzel.de> - 2014-11-17 13:40 +0100
  Re: can one link reference two seperate files? "Christoph M. Becker" <cmbecker69@arcor.de> - 2014-11-10 18:19 +0100
  Re: can one link reference two seperate files? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2014-11-10 19:07 +0000
  Re: can one link reference two seperate files? Denis McMahon <denismfmcmahon@gmail.com> - 2014-11-10 21:24 +0000
  Re: can one link reference two seperate files? Norman Peelman <npeelman@cfl.rr.com> - 2014-11-18 06:42 -0500

csiph-web